Method: ExportToImage for Sheet
- Updated2024-09-12
- 1 minute(s) read
DIAdem REPORT > Methods > Method: ExportToImage for Sheet
Method: ExportToImage for Sheet
Exports a worksheet from DIAdem REPORT to a graphics file.
Object.ExportToImage(FileName, ImageType)
| Object | Sheet Object with this method | |||||||||||||||
| FileName | String Specifies the path and the filename of the graphics file. | |||||||||||||||
| ImageType | Specifies the graphics file type. Enumeration with the following selection terms:
|
The following example exports all worksheets to individual graphics files:
| VBScript | Python |
Dim oMyReportObj, oMyReportObjects, i Report.Settings.ImageExport.PNG.BitsPerPixel = ePNGBitsPerPixelRGB08 Report.Settings.ImageExport.PNG.Height = 300 Report.Settings.ImageExport.PNG.UseRatio = True i = 0 Set oMyReportObjects = Report.Sheets For Each oMyReportObj in oMyReportObjects Call oMyReportObj.ExportToImage(LayoutWritePath & "MyExportFile" & i, eImageExportTypePNG) i = i+1 Next
See Also
Related Topics
Command: ExecuteExclusiveBegin | Command: ExecuteExclusiveEnd | Command: ExecuteExclusiveEndAll