I'm writing a piece of code in c# to generate a report in microsft word document.
- I have a table of wid 2 columns.
I select the 2nd column by
oMainTable.Cell(currentRowNumber, 2).Range
Every time I have to write something in that cell I use the above code with the combination of the Text property ,InsertParagraph(),InsertAfter() etc etc
Now lets say I have this content:
Some sample content Some sample content Some sample content Some sample content Some sample content Some sample content Some sample content.
New Paragraph Some sample content Some sample content Some sample
content Some sample content Some sample content Some sample content Some sample content
Some Title1 New Paragraph Some sample content Some sample content Some sample
content Some sample content Some sample content Some sample content Some sample content
New Paragraph Some sample content Some sample content Some sample
content Some sample content Some sample content Some sample content Some sample content
Some Title1
I want to apply underline and bold italics to someTitle1 and someTitle2 such that they don't apply to whole range; and remain limited to these two text lines only.
Any Help?
Thanks