trichview.com

trichview.support




Re: Confusion about AddText and AddTextNL functions


Return to index


Author

Message

Sergey Tkachenko

Posted: 06/20/2005 9:38:42


InsertStringTag is a method for editing, it must not be used for document

generation (it inserts at the caret position and requires a formatted

document, otherwise it may fail)


rv.AddNL('', NORMAL_STYLENO, 0);

rv.AddNL('Attachments', NORMAL_STYLENO, 0);

rv.AddNLTag('file1', LINK_STYLENO, 0, Integer(StrNew('c:\file1.txt')));

rv.AddNLTag('file2', LINK_STYLENO, 0, Integer(StrNew('c:\file2.txt')));

rv.Format;


(in order to append the the last paragraph, pass -1 to StyleNo parameter)


> >

> > Do you call RichView.Format after creating the document? May be this is

the

> > cause of the problem.

>

> Hi,

>

>     thanks for your reply.

>

> Sorry, I missed a small detail. ;-)

> The files are actually links to files, so I'm calling

> InsertStringTag for them. The files are always

> inserted at the beginning of the text (at the cursor's

> position?).

>

> How can I append them to the text?

>

> Thanks,

>     Daniel





Powered by ABC Amber Outlook Express Converter