Click to See Complete Forum and Search --> : How to change crystal report document title dynamically?


Alex Rest
December 29th, 2005, 12:48 AM
I have ReportClass object of .Net CrystalReport
that uses .rpt file

ResCalc.SalesReport rpt = new ResCalc.SalesReport();
rpt.SetDataSource(dsSaleRep);

How to change crystal report document title dynamically?

Thanks,
Alex.

ashwin_doon
January 16th, 2006, 05:04 AM
Hi Alex,
i am new member of this forum....

you can try the following:

ReportDocument oRpt = new ReportDocument ();
oRpt.SummaryInfo.ReportTitle = yourinputcontrol.Text;

as in my case it was a checklist box so i did as follows

Reports.TIPSheetsSummary frmTIPSummaryReport = new TIPSheetsSummary();
frmTIPSummaryReport.oRpt.SummaryInfo.ReportTitle = "TIP Sheets Summary for Airplane Tab No. " + this.checkedListBox1.SelectedItem.ToString();

Regards,
Ashwini