Solved

Printing RTF Headers/Footer

Posted on 1999-01-15
2
361 Views
Last Modified: 2013-11-20
I am using MFC's CRichEditView, CRichEditDoc, etc., to read, display and print an RTF file.  The RTF file contains header and footer controls and the default MFC classes do not appear to give you any access to these.  What would be the best method to handle the headers and footers of the RTF file to use for printing/print preview.
0
Comment
Question by:keithdd
2 Comments
 
LVL 11

Accepted Solution

by:
mikeblas earned 200 total points
ID: 1327736
MFC doesn't give you access to the header and footer because they're not supported by the underlying rich edit control. That is, Windows itself doesn't support RTF headers and footers in the control.

Your only recourse is to parse the RTF yourself and display it as you wish when printing. You can still let the rich edit control handle the rest of the output.

B ekiM
0
 

Author Comment

by:keithdd
ID: 1327737
I had been afraid of that and started down the path of implementing it myself, but I thought asking the question couldn't hurt...
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
if loop error 4 77
How to know only "File created" with EventLog 3 29
mapAB Challlenge 35 88
wordappend challenge 8 85
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now