Home

The XSLFOP! PDF method is removed from PowerScript

Description

    The XSLFOP! PDF method has been removed from PowerScript in order to improve performance and reduce the complexity of the code. This method was used to generate PDF documents from PowerScript, but it was found to be inefficient and difficult to maintain. By removing this method, code will be simpler and more efficient, making it easier to maintain and debug. Additionally, the removal of this method will also improve the overall performance of PowerScript, as it will no longer need to process the unnecessary code.

Key Benefits

  • Increased Efficiency - The XSLFOP! PDF method is removed from PowerScript, resulting in improved efficiency and reduced processing times.
  • Reduced Risk - By removing the XSLFOP! PDF method, PowerScript is less prone to errors and potential security risks.
  • Improved Performance - Without the XSLFOP! PDF method, PowerScript can run faster and more reliably.

 

Non-compliant Code Example

int li_ret

dw_master.Object.DataWindow.Export.PDF.Method = XSLFOP!         //Non compliant code
dw_master.Object.DataWindow.Export.PDF.xslfop.print='Yes'       //Non compliant code
li_ret = dw_master.saveas("printed.pdf", PDF!, true)      

int li_ret
dw_master.Modify("DataWindow.Export.PDF.Method = XSLFOP! ")       //Non compliant code
dw_master.Modify("DataWindow.Export.PDF.xslfop.print='1'")        //Non compliant code
li_ret = dw_master.saveas("printed.pdf", PDF!, true)

Visual Expert 2024
 VEPBRULE91