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
    Hi,
    Vinit, Vishnu and Marky, thanks for the suggestion.

    @Akhilesh, I tried the one mentioned by you. I created 2x2 table in xmlTable.docx and then copied the contents in document.xml and put it in a rule (using concat()), then replaced the table with ###keys### in xmlTable.docx and used the template in "MS Word 2007 Doc from Template" smart service.
    But I am not able to open the generated Details.docx (as attached). Just to experiment, I replaced the contents in document.xml from Details.docx with contents from xmlTable.docx, still I am not able to open the file.

    So please advise if I missed any step.

    xmlTable.docx

    Details.docx

Reply
  • 0
    Certified Senior Developer
    Hi,
    Vinit, Vishnu and Marky, thanks for the suggestion.

    @Akhilesh, I tried the one mentioned by you. I created 2x2 table in xmlTable.docx and then copied the contents in document.xml and put it in a rule (using concat()), then replaced the table with ###keys### in xmlTable.docx and used the template in "MS Word 2007 Doc from Template" smart service.
    But I am not able to open the generated Details.docx (as attached). Just to experiment, I replaced the contents in document.xml from Details.docx with contents from xmlTable.docx, still I am not able to open the file.

    So please advise if I missed any step.

    xmlTable.docx

    Details.docx

Children
No Data