CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2002
    Location
    Ukraine
    Posts
    228

    Question How to change crystal report document title dynamically?

    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.

  2. #2
    Join Date
    Jan 2006
    Posts
    1

    Thumbs up Re: How to change crystal report document title dynamically?

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured