Property: Properties for Export

DIAdem 2018 Help


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

DOWNLOAD (Windows Only)


DIAdem 2015 Help
DIAdem 2017 Help
DIAdem 2018 Help
DIAdem 2019 Help
DIAdem 2020 Help

Returns in DIAdem REPORT all custom properties for the export of the layout. If you export the layout as an Office file in XML format, or as a PDF-, JPEG-, PNG- or TIFF-file, DIAdem saves these properties as meta properties in the document. Use Document <Data> to access the meta properties in exported documents.

Set oProperties = Object.Properties
ObjectExport
Object with this property
oPropertiesProperties
Returned object

The following example outputs the custom properties of the layout and of the master layout:

Dim sOutPut, oMyExport, oMyProperties, oMyProperty, oMyMasterProperties, oMyMasterProperty
Set oMyExport = Report.Settings.Export
Set oMyProperties = oMyExport.Properties
sOutput = "Export Properties of Layout: " & oMyProperties.Count & VBCrLf
For Each oMyProperty in oMyProperties
  sOutput = sOutPut & "Name: " & oMyProperty.Name & VBCrLf
  sOutput = sOutPut & "Value: " & oMyProperty.Value & VBCrLf
  sOutput = sOutPut & "Expression value: " & oMyProperty.ExpressionValue & VBCrLf
Next
Set oMyMasterProperties = oMyExport.MasterLayoutProperties
sOutput = sOutput & VBCrLf & "Export Properties of Masterlayoiut: " & oMyMasterProperties.Count & VBCrLf
For Each oMyMasterProperty in oMyMasterProperties
  sOutput = sOutPut & "Name: " & oMyMasterProperty.Name & VBCrLf
  sOutput = sOutPut & "Value: " & oMyMasterProperty.Value & VBCrLf
  sOutput = sOutPut & "Expression value: " & oMyMasterProperty.ExpressionValue & VBCrLf
Next
Call MsgBox(sOutPut)

 

WAS THIS ARTICLE HELPFUL?

Not Helpful