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.
RichViewEdit without visual component
-
- Posts: 130
- Joined: Fri Mar 04, 2011 3:44 am
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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
Now, when you load RTF in RVHelperMain.RichView, headers and footers will be loaded in RVHelperHeader.RichView and RVHelperFooter.RichView.
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);
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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.
They work with TRichView (or TRichViewEdit), but can be applied to RVReportHelperHeader.RichView.