Hi !
i’m french, excuse me for my english.
i’ve got word document, and i must add text bloc when conditions appears.
i’m in Visual Studio 2019, VB.net, website framework 3.5.
i’m using bookmark to go to text for add header and text paragraph.
my document have more paragraph and headers, i’ve just add next number of header
my code :
b.MoveToBookmark("optionAChiffrer", False, True)
b.Writeln()
b.ParagraphFormat.StyleIdentifier = StyleIdentifier.Heading2
'b.CurrentParagraph.ParagraphFormat.StyleName = "Heading 2"
b.Writeln("My header text")
b.ParagraphFormat.StyleIdentifier = StyleIdentifier.Normal
b.CurrentParagraph.ParagraphFormat.StyleName = "Normal"
b.Writeln()
b.Writeln("write normal text paragraph")
image.png (23.1 KB)
if i open the doc in word and clic my header, and the “header 2” style, it’s work (bold and properties)
same problem with all created header blocs.
Thanks for help.