How do I remove blank spaces in a generated document?

It is easy to remove blank spaces in an automatically generated document using JungleDocs. In this tutorial, you will learn how to do this.


The  problem

If a content control has no data to import (i.e., if the related SharePoint column is empty), it generates an empty space in a document: 

In such cases,  you will want to avoid blank spaces in your generated document. You will do this by modifying your document template. Let's get started

The solution

1. Select the whole row.

2. Insert all selection into Rich text content control and configure its properties.

3. Use  both  IfEmpty() and   DeleteControl()  functions  in the content control Tag field.
For example:  IfEmpty(JDCustomer:WorkZip; DeleteControl())

4. In the generated document this row will be deleted automatically if the Zip code field for a specific customer is empty.

Want to find out more about  the  DeleteControlIf  function ? Then click here.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us