Categories > OpenTBS with DOCX >

Generating .docx - Problem in formatting

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Cece
Date: 2012-04-17
Time: 11:45

Generating .docx - Problem in formatting

Hi all,

I am using tbs for generating .docx. The templates are actually around 5-6 Pages text, and only 10 words /onshow fields. 

Everything works nice except for some formatting in the generated file. For example on many places in between two words there isn't space, even though in the template the space exists.

Does anyone had this problem, or any idea what can I do to fix this.

Thanks in advance!

Cece

By: Skrol29
Date: 2012-04-18
Time: 02:50

Re: Generating .docx - Problem in formatting

Hi Cece,

This is a known problem, but it rarely happens.
Here is the explanation and the walk-around:

Explanation:
-----------------

In your Docx template, some TBS tags can be internally split by several special Ms Word markers because of Spelling and Review.
Since OpenTBS version 1.5.0, those special Ms Word markers are tracked and deleted as soon as the template is loaded.
Unfortunately, the cleaning process is not smart enough to manage space options when TBS tags are adjoined back.
This is a bit technical, but we can sum it up by "when text is internally split by Ms Word, then OpenTBS can lose some spaces at those places."

Walk-around:
-----------------

You can first try with OpenTBS 1.7.6 beta which brings a fix for this problem. But unfortunately, the fix works only for the main contents, and not for headers and footers.
You can download OpenTBS 1.7.6 beta here:
http://www.tinybutstrong.com/dl.php?f=tbs_plugin_opentbs_beta.zip&s=2

Otherwise, in order to avoid this behavior, you must do as following:

1)  Avoid internal Review markers:
- If you have Word 2003, go to the menu Tools, choose Options, then tab Security and uncheck the box “Store random number to improve merge accuracy”.
- If you have Word 2007 or higher, go to the Trust Center in the Word options, and turn off the setting: "Store random number to improve combine accuracy".
- If you have Office for Mac 2011, then unfortunately this option does not exist yet. Try to copy all the document and past in a new document.

2) Avoid Spelling markers:
Each time you enter a new TBS tag or each time you apply a format over a TBS tag, select it and click on the Review ribbon, in the Proofing group, click the Set Language button. In the dialog, make sure the "Do not check
spelling or grammar" box is checked.

By: Cece
Date: 2012-04-18
Time: 10:04

Re: Generating .docx - Problem in formatting

Hi Skrol,

Thanks a lot for your reply and very good explanation!
The new version of the plugin is perfect for me now! It fixed my problem and works really good!!! You saved my day :)

keep the good work! this project is amazing! ;)

Regards,
Cece
By: Abel Magana
Date: 2013-11-20
Time: 02:36

Re: Generating .docx - Problem in formatting

Yes, this is amazing and powerful for generating docx template.
By: Skrol29
Date: 2013-11-20
Time: 03:04

Re: Generating .docx - Problem in formatting

Thx :)