is the only way to produce headers and footers done like the demo project for printing headers. 7-richviewedits and 7 rvstyles.
can it be done with 1 richviewedit and 7 rvstyles?
headers and footers
-
- Posts: 17
- Joined: Sun Mar 27, 2016 5:15 pm
...also how can i save headers and footers into 1 rtf file.
i have the savertf().. but how can i save to an rtf with headers and footers. the demo uses an rvprint but i don't want to print it i want to save it as an RTf file?
-
- Site Admin
- Posts: 17554
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
If you use TRichViewEdit - yes, you need a component to store each header and footer.
If you do not need visual components, you can use TRVReportHelper, and store headers and footers in RVReportHelper.RichView.
If you want everything in a single component, consider using ScaleRichView. A single TSRichViewEdit contains both the main document and all headers and footers.
If you do not need visual components, you can use TRVReportHelper, and store headers and footers in RVReportHelper.RichView.
If you want everything in a single component, consider using ScaleRichView. A single TSRichViewEdit contains both the main document and all headers and footers.
-
- Posts: 17
- Joined: Sun Mar 27, 2016 5:15 pm
in your opinion what would you suggest to accomplish this...
I have a client that has a bunch of RTF files, some with headers and footers. They want to be able to run my program to read these RTF files and replace select text within them, then save them back as RTF or DOC doesn't matter as long as the file can be opened in WORD. They are going to run my program to load, search & replace, save and then email it to their another user, to open and edit as needed or just print if no changes. the end users have WORD and the server i am working on does not have WORD.
-
- Posts: 17
- Joined: Sun Mar 27, 2016 5:15 pm
...also some of the text to replace is in the header
Would have need to replace text in headers as well.
Prefer that the RTF change be hidden but doesn't have to be.
Prefer that the RTF change be hidden but doesn't have to be.