Method: ExportToImage for Spider

DIAdem 2018 Help


Edition Date: June 2018
Part Number: 370858P-01
View Product Info

DOWNLOAD (Windows Only)


DIAdem 2012 Help
DIAdem 2014 Help
DIAdem 2015 Help
DIAdem 2017 Help
DIAdem 2018 Help
DIAdem 2019 Help

Exports a spider axis system from DIAdem REPORT to a graphics file.

Object.ExportToImage(FileName, ImageType)
ObjectSpider
Object with this method
FileNameString
Specifies the path and the filename of the graphics file.
ImageType
 1
eImageExportTypeEMF 
EMF file
 2
eImageExportTypePNG 
PNG file
 3
eImageExportTypeJPG 
JPG file
 4
eImageExportTypeGIF 
GIF file
 5
eImageExportTypeTIF 
TIF file

The following example exports all spider axis systems to graphic files:

Dim oMyReportObj, oMyReportObjects, i
Report.Settings.ImageExport.PNG.BitsPerPixel = ePNGBitsPerPixelRGB24
Report.Settings.ImageExport.PNG.Height = 300
Report.Settings.ImageExport.PNG.UseRatio = True
i = 0
Set oMyReportObjects = Report.ActiveSheet.Objects
For Each oMyReportObj in oMyReportObjects
  If oMyReportObj.ObjectType = eReportObjectSpider Then
    Call oMyReportObj.ExportToImage(LayoutWritePath & "MyExportFile" & i, eImageExportTypePNG)
    i = i+1
  End If
Next

WAS THIS ARTICLE HELPFUL?

Not Helpful