Click here to Skip to main content
15,888,102 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am developing a MS Word add-in using c#. The code processes some very large input file and converts it to a word document. I am able to generate data and store it in heading 1, 2, ... normal etc styles.

Now I also want to store some hidden text (containing some self-generated information) with each of these paragraphs. This hidden text should by no means be visible to someone who opens this file in MSWord. But this hidden text must be retrievable to convert this word file back to the original file. Is it possible to insert some hidden fields with each paragraph (and I want to have multiple such fields - say about 4 to 5).

I am using OpenXml to create the word file.

I am very anxiously looking for some solution. Or if it is not possible to do so, then I must look into some altogether different solution.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900