Method: ExportToPDF for Sheet
- Updated2024-09-12
- 1 minute(s) read
DIAdem REPORT > Methods > Method: ExportToPDF for Sheet
Method: ExportToPDF for Sheet
Exports a worksheet from DIAdem REPORT to a PDF file.
Object.ExportToPDF(FileName, Append)
| Object | Sheet Object with this method |
| FileName | String Specifies the path and the filename of the PDF file. |
| Append | Boolean Specifies whether DIAdem appends the worksheets to an existing PDF file (TRUE) or not (FALSE). |
You can sign a PDF file after exporting to secure your copyrights and to meet the increased security standards. Click here for further information about signing PDFs.
The following example generates a worksheet with a circle and exports this worksheet to the PDF file MySheet:
| VBScript | Python |
Dim oMySheet, oMyCircle Call Report.NewLayout() Set oMySheet = Report.Sheets.Add("NewSheet") Set oMyCircle = oMySheet.Objects.Add(eReportObjectCircle,"MyCircle") Call oMyCircle.BackgroundColor.SetPredefinedColor(eColorIndexGreen) oMyCircle.BorderLine.Width = eLineWidth0200 oMyCircle.BorderLine.LineType = eLineTypeSolid Call oMyCircle.BorderLine.Color.SetPredefinedColor(eColorIndexRed) Call oMySheet.ExportToPDF("MySheet", False)
See Also
Related Topics
Command: ExecuteExclusiveBegin | Command: ExecuteExclusiveEnd | Command: ExecuteExclusiveEndAll