|
Several settings can be done as method calls prior to the creation command.
|
|
|
Header / Footer image
|
|
setHeaderLogo(filename)
setFooterLogo(filename)
|
|
When wanting to use customer related brands, logos or any other image, the default header and / or footer files can be overwritten by using the setHeaderLogo(filename) or setFooterLogo(filename) methods. This should be used in combination with the path setting to the create command.
|
|
pdf = ReportUtility()
myPath=”C:\\...\\Technologies\\TechnologyCommon\\Standard\\AuxiliaryCommands\\Logos\\"
pdf.setHeaderLogo("MyCustomerHeader.jpg")
pdf.setFooterLogo("MyCustomerFooter.png")
pdf.createAutoExecutePDFReport(Operator, myPath)
|
|
|
Report language
|
|
setLanguage(language)
|
|
All relevant items (parameters, names, dimensions, etc.) are translated into the common E2 languages : English, French, Chinese, Japanese and German. The E2 language setting unfortunately cannot be transferred to the Python script.
To get the desired report language, the setLanguage(language) method call has to be used.The parameter English "EN", German "DE", French "FR", Chinese "CN" or Japanese "JP" has to be passed. When nothing has been defined, the default language will be English..
|
|
pdf = ReportUtility()
myPath = "C:\\Users\\...\\TechnologyCommon\\Standard\\AuxiliaryCommands\\Logos\\"
pdf.setHeaderLogo("MyCustomerHeader.jpg")
pdf.setFooterLogo("MyCustomerFooter.png")
pdf.setLanguage("CN")
pdf.createAutoExecutePDFReport(Operator, myPath)
Example: Chinese setting
|
|
|
Costs (per meter)
|
|
setCosts(value)
|
|
For costs calculation the value of the costs per meter can be set using setCosts(value) method call. This is only relevant if the Costs column is going to be displayed in the report.
This is only relevant when the report script is called from the AutoExecute command. A call by Auxiliary Commands will be set in another way
As parameter the cost value has to be passed.
|
|
pdf = ReportUtility()
myPath = "C:\\Users\\...\\TechnologyCommon\\Standard\\AuxiliaryCommands\\Logos\\"
pdf.setHeaderLogo("MyCustomerHeader.jpg")
pdf.setFooterLogo("MyCustomerFooter.png")
pdf.setCosts(2.56)
pdf.createAutoExecutePDFReport(Operator, myPath)
|
|
|
Currency sign
|
|
setCurrency(currency)
|
|
For costs calculation the sign of the required currency can be set using setCurrency(currency) method call. This is only relevant if the Costs column is going to be displayed in the report.
This is only relevant when the report script is called from the AutoExecute command. A call by Auxiliary Commands will be set in another way
Available currencies are: Euro "E", Dollar "D", Pound "P", Yen/Yuan "Y". If no currency has been defined here, the Euro € becomes default.
|
|
pdf = ReportUtility()
myPath = "C:\\Users\\...TechnologyCommon\\Standard\\AuxiliaryCommands\\Logos\\"
pdf.setHeaderLogo("MyCustomerHeader.jpg")
pdf.setFooterLogo("MyCustomerFooter.png")
pdf.setCosts(2.56)
pdf.setCurrency("D")
pdf.createAutoExecutePDFReport(Operator, myPath)
|
|