Solved

Printing RTF Headers/Footer

Posted on 1999-01-15
2
363 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

920 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

16 Experts available now in Live!

Get 1:1 Help Now