RichViewEdit without visual component

General TRichView support forum. Please post your questions here
Post Reply
AXSchmidt
Posts: 20
Joined: Thu Mar 15, 2012 3:16 pm

RichViewEdit without visual component

Post by AXSchmidt »

Hello,

is it possible to use richviewedit without a visual component?

I need to load a rtf file, perhabs change header/footer, insert text and at least print/save the document.
Alexander_Dober
Posts: 130
Joined: Fri Mar 04, 2011 3:44 am

Post by Alexander_Dober »

Hello,

I think you can use TRVReportHelper for that. There should be some threads about it here.
AXSchmidt
Posts: 20
Joined: Thu Mar 15, 2012 3:16 pm

Post by AXSchmidt »

But i think the TRVReportHelper only assist RichView?
And in my oppinion its not possible to insert text in RichView or edit header/footer!?
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

TRVReportHelper contains an invisible TRichView inside that can contain a document. It can be placed in a datamodule and does not require visual components.

For a header and a footer, you need to create additional reporthelpers, and assign

Code: Select all

RVHelperMain.RichView.RTFProperties.SetHeader(RVHelperHeader.RichView.RVData);
RVHelperMain.RichView.RTFProperties.SetFooter(RVHelperFooter.RichView.RVData);
Now, when you load RTF in RVHelperMain.RichView, headers and footers will be loaded in RVHelperHeader.RichView and RVHelperFooter.RichView.
AXSchmidt
Posts: 20
Joined: Thu Mar 15, 2012 3:16 pm

Post by AXSchmidt »

ok, thank you.

and can you tell me at least for example, how can i find a placeholder in the header and how to replace it?

thanks a lot...
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

All demos replacing fields to values are collected here: http://www.trichview.com/forums/viewtopic.php?t=8

They work with TRichView (or TRichViewEdit), but can be applied to RVReportHelperHeader.RichView.
Post Reply