Cannot apply text style
Posted: Mon Jun 14, 2010 5:11 pm
Hello - I am using the following code to add some text to a document:
rve.Clear;
rve.ApplyTextStyle(6); // a style
rve.ApplyParaStyle(1); // a paragraph style
rve.InsertText('Here is a line of text');
The text is inserted, but not in the font and font size I specified in the text style (6) above. I have also tried
rve.Clear;
rve.AddNL('Here is a line of text'',6,1);
rve.Format;
No doubt I am missing something simple? I searched help and forums with not much success.
Thanks
rve.Clear;
rve.ApplyTextStyle(6); // a style
rve.ApplyParaStyle(1); // a paragraph style
rve.InsertText('Here is a line of text');
The text is inserted, but not in the font and font size I specified in the text style (6) above. I have also tried
rve.Clear;
rve.AddNL('Here is a line of text'',6,1);
rve.Format;
No doubt I am missing something simple? I searched help and forums with not much success.
Thanks