Solved

Printing RTF Headers/Footer

Posted on 1999-01-15
2
367 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

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…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

690 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