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
  • Don't use docxncolumntable if it does not work. You can create your own rule to generate table OOXML dynamically and place this in a word document.
    For this you should know the OOXML code for table to wrap it in a rule which can generate OOXML code for multiple report lines.
    To see the OOXML code for a table, create a table manually in a docx document and save it. Go to saved document (open it in winzip/winrar etc) and open document.xml from word folder. This file contains code for table, replace the code with ###key### and use a rule to put your logic to dynamically generate OOXML and save this file. Saved file should be used as a template.
Reply
  • Don't use docxncolumntable if it does not work. You can create your own rule to generate table OOXML dynamically and place this in a word document.
    For this you should know the OOXML code for table to wrap it in a rule which can generate OOXML code for multiple report lines.
    To see the OOXML code for a table, create a table manually in a docx document and save it. Go to saved document (open it in winzip/winrar etc) and open document.xml from word folder. This file contains code for table, replace the code with ###key### and use a rule to put your logic to dynamically generate OOXML and save this file. Saved file should be used as a template.
Children
No Data