cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Translate the entire conversation x

Text disappears when creating document from word template

JM_12529808
12-Amethyst

Text disappears when creating document from word template

Version: Windchill 12.0

 

Use Case: Creating a word document from a word template


Description:

We have a word document template in our "templates" in windchill. In some fields in the footer (and sometimes the header), the text that is in the template is removed/deleted after the creation of the new document.

 

There is both some text, followed by a docprotery.

ACCEPTED SOLUTION

Accepted Solutions

Should anyone have the same problem, here is the solution I found on the mentioned Issue. 

The cell containing the text that got deleted, also included an old bookmark reference, possibly from inserting a Windchill Attribute (not using the docproperty). This reference can not be seen in plain text normally - I found it in the XML file. 

Here are two methods to find them

  1. In word: File > Options > Advanced > Show document content and check "Show bookmarks
    The bookmark shows up as a small grey bracket. 
  2. Rename the .docx to .zip and open the zip folder.
    1. Search through all files for "bookmark", and delete the ones associated with Windchill. 

View solution in original post

8 REPLIES 8
Fadel
23-Emerald I
(To:JM_12529808)

Do you see any error in  logs ?

Fede
JM_12529808
12-Amethyst
(To:Fadel)

Hi Fadel

 

Do you know which particular log to look in?

Fadel
23-Emerald I
(To:JM_12529808)

The regular Method and background method server  

Fede
JM_12529808
12-Amethyst
(To:Fadel)

There are no errors in the log, releated to this. Unfortunately

JM_12529808
12-Amethyst
(To:Fadel)

It could look like it first updates, and removes the part in question, when opened in the Desktop integration in word. Running version 121.20.07.31 with Office "Microsoft 365 Apps for business" Version 2601

This very strange. From what I know, creating a document from a template should just create a document object in Windchill and copy in the template Word file. No manipulation of the file should occur. I would take Windchill out of the equation. Perhaps there is something wrong with the Word document. Try some offline tests. Are these footers in any way tied to Windchill attributes? Desktop Integration could be the cause. Disable that in preferences and just use browser download. See if that makes a difference and we can narrow scope. DTI will push attributes into Word file so there is some touching of the file on download.

If I just download the file, it is straight up a copy of the template - without the attributes / docproperties updated. And it keeps the part in question. 

There is a docproperty right after the "Resp.:", but that should be kept. 

I tried adding an extra row to the footer, to trick it into deleting that cell, but it did not work.

Should anyone have the same problem, here is the solution I found on the mentioned Issue. 

The cell containing the text that got deleted, also included an old bookmark reference, possibly from inserting a Windchill Attribute (not using the docproperty). This reference can not be seen in plain text normally - I found it in the XML file. 

Here are two methods to find them

  1. In word: File > Options > Advanced > Show document content and check "Show bookmarks
    The bookmark shows up as a small grey bracket. 
  2. Rename the .docx to .zip and open the zip folder.
    1. Search through all files for "bookmark", and delete the ones associated with Windchill. 
Announcements
Top Tags