Is there a size limit on the doc generated when we use create text doc from temp

Is there a size limit on the doc generated when we use create text doc from template smart service?

Also, can we have ###Image### tag in the doc to insert a doc in the template?

Thanks,

Anagha...

OriginalPostID-104903

OriginalPostID-104903

  Discussion posts and replies are publicly visible

  • 1. No size limit
    2. When you say: "to insert a doc in the template" do you mean, to insert an image? If that's the question then the answer is yes but you need an HTML Template Here is a sample application forum.appian.com/.../85010 You need to have the Base64 Utilities Plug-in available for download here in Appian Forum under the "Shared Components" section (forum.appian.com/.../components)- Expression Functions - View All Expression Functions.

    To test the example just run a new instance, pass an image and a text in the start form and a new task will let you download the resulting document. If you review the template you will see the trick is in the <img> tag:

    <img alt="Embedded Image" src="data:image/png;base64,###IMAGE_BASE64###" />

    then I use the HTML Doc From Template to populate the IMAGE_BASE64 key with convertdocumenttobase64(pv!image
  • ok, thanks. But we have already defined a template, and the values for the word doc template are mapped to PV's coming from a form. We need to give the user a capability of uploading docs on the same form and those being inserted in the doc template at predefined locations. Is this possible? If yes, how can we do this? And if we have to use HTML doc template only, then can we merge the doc created and html file created?
  • Oh I see, so you are not only talking about images but about any document as an attachment to the DOCx.

    Since the DOCx syntax is very Microsoft specific I don't think there's a simple way to accomplish this. You may want to search online in other Forums to see if somebody has done this with Java in which case you can create a custom plug-in to do so.

    Alternatively you can create a sample DOCx with an attachment, change its extension to .ZIP, unzip it and take a look at how Microsoft defines the attachment in the document.xml that holds the structure of the actual document to see if that gives you a better idea on how to achieve this but I'd rather keep the documents inside Appian and simply add links to those attachments stored in Appian by placing the links in the final DOCx.
  • I understand there should be no size limit on the generated document. I am using the Text Doc from Template smart service to generate a CSV file and running into the situation where the document is generated with precisely 10,000 rows/elements, while the expected size is much larger. My search of the custom.properties file didn't turn up any obvious explanations for this. What might be a likely cause of the smart service producing a document that seems to never exceed 10,000 rows?

    Thanks for your time.
  • Maybe the limit is with the expression functions you're using to build the rows or something listed here:

    forum.appian.com/.../Configuring_Data_Capping.html