Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: zalbina on November 21, 2012, 07:10:09 pm
-
Hello,
I'm using API for creation RTF report and running into the one problem: when I'm writing a new line I wanted to use a font style which is different from Normal style and after report generation I see the style is Normal anyway.
The code is:
EA.DocumentGenerator generator = new Repository.CreateDocumentGenerator();
generator.NewDocument("MyDocument");
generator.InsertText("BlaBla","Title"); //NOT Normal
Someone has any solutions for it?
Thanks.
-
Adding a "\n" to the text will help:
generator.InsertText("BlaBla\n","Title");
-
Thanks a lot. Soooooo simple :).