Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: mcoletti on July 30, 2014, 03:25:45 am
-
Hi, I have to perform the method InsertText, and then insert a new line in the generated document before the other fragments.
How is it possible :question
Thanks, Massimo
-
It is possible, using the InserText method:
Try : generator.InsertText("\f", format);
Look here: http://stackoverflow.com/questions/21674865/does-c-sharp-provide-an-equivalent-to-n-for-denoting-a-page-break
-
I tried, but also \f doesn't work; I tried also \par (the RTF code)
The solution is to insert a chr(13) in the text, apparently, escape characters aren't recognised.
:)