Method: ExportToImage for ReportObject
- Updated2024-09-12
- 1 minute(s) read
DIAdem REPORT > Methods > Method: ExportToImage for ReportObject
Method: ExportToImage for ReportObject
Exports an object from DIAdem REPORT to a graphics file.
Object.ExportToImage(FileName, ImageType)
| Object | ReportObject Object with this method | |||||||||||||||
| FileName | String Specifies the filename of the graphics file. | |||||||||||||||
| ImageType | Specifies the graphics file type. Enumeration with the following selection terms:
|
The following example exports all selected objects to a graphics file:
| VBScript | Python |
Dim oMyReportObj, oMyReportObjects, i Report.Settings.ImageExport.PNG.BitsPerPixel = ePNGBitsPerPixelRGB24 Report.Settings.ImageExport.PNG.Width = 300 Report.Settings.ImageExport.PNG.UseRatio = True i = 0 Set oMyReportObjects = Report.ActiveSheet.Objects For Each oMyReportObj in oMyReportObjects If oMyReportObj.IsSelected Then Call oMyReportObj.ExportToImage(LayoutWritePath & "MyExportFile" & i, eImageExportTypePNG) i = i+1 End If Next
See Also
Related Topics
Command: ExecuteExclusiveBegin | Command: ExecuteExclusiveEnd | Command: ExecuteExclusiveEndAll