Skip to Content
0
Former Member
Dec 18, 2012 at 02:31 PM

Setting report title programmatically

236 Views

Hi,

If you have a PDF printer driver such as that in Adobe Acrobat Standard, then when you print to the PDF driver a dialoue box is displayed with a default file name of 'Crystal Reports - .pdf' followed by whatever is entered as the Title in the Summary Info. To read that Summary Title you can use the special field 'Report Title'. However, I would like to programmatically change the report title when I run the report so that an appropriate file name is displayed. Is this possible? I've tried creating a formula field with the command ReportTitle = 'ABC' but that just returns 'False' rather than setting the report title to 'ABC'.

Also, if you use the Export or Save As features the dialogue box is displayed with the reports file name as the default. Is it possible to set that file name programmatically?

Many thanks,

Colin Winton