Hi, We have a requirement to generate a PDF (as attached), wherein for

Certified Senior Developer
Hi,
We have a requirement to generate a PDF (as attached), wherein for each set of vehicles, we need to display the repair line items details. We tried two approaches.
1. "MS Word 2007 Doc from Template" smart service: Since docxncolumntable can be used, when the number of tables are predefined, it didnt help our purpose as the no of tables for vehicle and repair line are dynamic.
2. "PDF From XML" smart service: Tried this service with sample xml and xsl file, but the pdf generated cannot be opened.

Please suggest.

OriginalPostID-202837

OriginalPostID-202837

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer
    -After performing step 1, change the extension to .zip. Then browse the zip file to get word/document.xml (dont unzip the file).
    -Copy the xml code for table which needs to be dynamically generated for step 3.
    -Replace that portion of code with ###keyName###
    -Put the modified file back to zip folder and change the extension to .docx which is same as Invoice Format Template.docx

    Rest of the steps are straight forward. Let me know, if you get stuck.
Reply
  • 0
    Certified Senior Developer
    -After performing step 1, change the extension to .zip. Then browse the zip file to get word/document.xml (dont unzip the file).
    -Copy the xml code for table which needs to be dynamically generated for step 3.
    -Replace that portion of code with ###keyName###
    -Put the modified file back to zip folder and change the extension to .docx which is same as Invoice Format Template.docx

    Rest of the steps are straight forward. Let me know, if you get stuck.
Children
No Data