Solved

Printing RTF Headers/Footer

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
iSeries FTP Exit Program 8 136
substring method in java 1 120
Hibernate methods 2 71
MaxSpan challenge 9 96
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

772 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