How to write text as Subscript?

Dec 18, 2012 at 10:57 AM


Firstly sorry for my poor english. Secondly thank you for DocX library its realy greate.

Is there some method or trick which will allow me to write text as subscript in my created document?

Will be grateful for answer.

Jan 11, 2013 at 10:55 AM

Apologies but I code in

You need to create a new formatting and assign the values you want to the font.

Dim fotext As New Novacode.Formatting

fotext.Script = Script.subscript


p.InsertText("Text here", False,fotext)

p being the paragraph that you're wanting to insert text into.

Jan 25, 2013 at 6:33 AM

Thank you.