Print Page | Close Window

Change the header programatically

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=653
Printed Date: 06 May 2024 at 3:53am


Topic: Change the header programatically
Posted By: Muralie
Subject: Change the header programatically
Date Posted: 12 May 2007 at 4:52pm
How can i set the text of the report header and page header in ASP.Net  programatically?



Replies:
Posted By: EdwardQ
Date Posted: 16 May 2007 at 6:33am
For the ASP Page title do.
Page.Title = "This is a Title.";
 
 
For the Report Title do.
(assumed you called your ReportDocument MainRpt)
 
MainRpt.SummaryInfo.ReportTitle = "This is a Title.";
 
 
YOu can also varible it.
 
strTitle = "This is a Title.";
 
Page.Title = strTitle;
 
MainRpt.SummaryInfo.ReportTitle =  strTitle;



Print Page | Close Window