DIAdem Help

Method: ExportToPDF for Sheet

  • Updated2024-09-12
  • 1 minute(s) read

Method: ExportToPDF for Sheet

Exports a worksheet from DIAdem REPORT to a PDF file.

Object.ExportToPDF(FileName, Append)
ObjectSheet
Object with this method
FileNameString
Specifies the path and the filename of the PDF file.
AppendBoolean
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:

VBScriptPython

 

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)