|
|
|
Dealing with Blank Fields in Word Documents
Integra for Notes can be used to generate Microsoft Word documents picking values both from fields and computed fields and including these among normal text, tables and graphics in Word. If when exporting data, one or more of the fields being exported to Word is empty, then a blank space is normally left where the field is defined.
There two different scenarios which have to be tackled differently. In the first scenario a field or a series of fields is located in one paragraph, for instance the recipient's full name of an address label, which usually consist of the fields
<Title> <Name> <Surname>
The second scenario a field or series of fields is located in a sequence of paragraphs, for instance the address part of the same address label, which usually consist of the fields
<Address1>
<Address2>
<City><POC>
<Country>
Scenario 1
Scenario 2
For the second scenario there is only one option, using computed fields:
The problem with this scenario is that using a similar formula like the one discussed above will not do the trick. This as it will not avoid the blank paragraph that for obvious reasons will not be automatically removed. To solve the problem we need to combine the fields into one computed field, which formula will add the content of the required fields to a multi-value content that when exported is normalised using the multi-value character (separator) defined in the Integra profile. Which in this context should be CR for a carriage return.
So in the above pictured scenario instead of having 5 fields (<Address1>,<Address2>,<City>,<POC>,<Country>) we create one computed field having a formula such as:
cityPOC := @If( POC = "" | City = "" ; City + POC ; City + ", " + POC );
fullAddress := Address1:Address2:cityPOC:Country;
@Explode( @Implode( fullAddress ; @NewLine) ; @NewLine ; 0 );
The disadvantage of this method is that the entire address will appear in the Word document in the same font formatting. If it is for instance desired to have the Country field in bold and underlined it should be kept out of the above formula and exported as separate field having the desired formatting in its own paragraph.
|
. |
|
FAQ# 0015
|
|
|
|   | |
| QUICK LINKS | |
| | |
|
| |
|   | |
| | |
|   | |
|   |