Crystal Report

G

Guest

Hi,

I'm using this code to export a crystal report to pdf and its working fine
with fields from one table called "Evaluation":

string SQLSearchText = "Select * from Evaluation WHERE ID =275";
daCache.SelectCommand = new CacheCommand(SQLSearchText, cnCache);

if (dsCache.Tables["Evaluation"] != null)
dsCache.Tables["Evaluation"].Clear();
daCache.Fill(dsCache, "Evaluation");

O_Report.Database.Tables[0].SetDataSource(dsCache);
O_Report.ExportToDisk(ExportFormatType.PortableDocFormat,
"C://AuditReport.pdf");

But the issue is, how can I include other fields from other tables, knowing
that have already set the connetion and included the tables in my Report
manually


Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top