06-26-2023 11:26 AM
Hi,
Call Report.Sheets.ExportToPDF(OutPutPath & test.pdf, False)
How can update Title of PDF using DIAdem scripts? currently I have control over PDF name only. How other PDF document properties can be controlled using Diadem script, especially title of PDF.
Currently default title is "DIAdem-REPORT_NONAME.TDR" , PDF file having TDR as title and not giving proper meaning to user. It gives same title for all PDFs generated which is not expected.
PDF opened in chrome,
regards,
Durai
Solved! Go to Solution.
06-27-2023 03:01 AM
Hi Durai,
by default the title of the PDF document is set to DIAdem-Report_ plus the name of the currently loaded REPORT layout file. You can change this by adding export properties tor the report settings. You can change title, author, subject and keywords by adding these properties like follows:
call Report.Settings.Export.Properties.Add("Title", "My layout",ePropertyDataTypeString)
call Report.Settings.Export.Properties.Add("Author", "Me",ePropertyDataTypeString)
call Report.Settings.Export.Properties.Add("Subject", "My Test Export",ePropertyDataTypeString)
call Report.Settings.Export.Properties.Add("Keywords", "DIAdem, Report, Test",ePropertyDataTypeString)
regards
Rainer