trichview.com

trichview.support




Re: That pesky first item


Return to index


Author

Message

Martin Holmes

Posted: 02/25/2005 16:52:03


HI Sergey,


That works! Many thanks. I'm making progress.


Cheers,

Martin


Sergey Tkachenko wrote:

> ApplyParaStyle is an editing method and should be avoided when generating

> documents.

>

> You can change the paragraph style for the item directly:

> RVD.GetItem(i).ParaNo := StyleNum.

> But be very careful - all items in the same paragraph must have the same

> value of ParaNo.

>

>

>

>

>>If I'm processing the first paragraph in a table cell, then what I need

>>to do is to set the paragraph style. If it's a subsequent paragraph, I

>>need to use AddNLWTag. So I have code like this:

>>

>>if RVD.ItemCount > 0 then

>>                        RVD.AddNLWTag('', 0, StyleNum, 0)

>>                     else

>>                        RVE.ApplyParaStyle(StyleNum);

>>                     RVE.CurParaStyleNo := StyleNum;

>

>

>





Powered by ABC Amber Outlook Express Converter