Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
14 replies
Subscribers
9 subscribers
Views
5744 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Hi, We have a requirement to generate a PDF (as attached), wherein for
Rajeev Hugar
Certified Lead Developer
over 9 years ago
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
0
Rajeev Hugar
Certified Lead Developer
over 9 years ago
-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.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ambrishs
Certified Lead Developer
over 9 years ago
Thanks Rajeev. I am not sure which part in the document.xml need to be replaced by ###keyName###. If you can share start tag and end tag or a sample that would be very helpful.
document.xml
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Rajeev Hugar
Certified Lead Developer
over 9 years ago
Hi Ambrish,
Tags <w:p> to </w:p> for paragraph and <w:tbl> to </w:tbl> for table. You can check the attached screenshot of document.xml for "Invoice Format.docx" and "Invoice Format Template.docx" for reference.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ambrishs
Certified Lead Developer
over 9 years ago
Thanks Rajeev it helps
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
<