Joined: Wed Apr 15, 2009 11:01 am Posts: 1 Has thanked: 0 time Have thanks: 0 time
Dear All,
Using C# and word object model, i am automate the process, where based on the tag name present in the document its corresponding style has to be applied for the paragraph. For instance: <H1>This is Heading1 <Para>This is Paragraph sample...
Our task is to find the <H1> tag and replace it with "H1" style for the whole document.
Below is the code where I can open the document and add the template styles into the current file.
Code:
ApplicationClass objWordApp = new ApplicationClass(); Document objWordDoc = new Document();