Solved

Printing RTF Headers/Footer

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
windows 10 how make picture as desktop background 2 72
notReplace  challenge 53 152
countEvens challenge 2 116
Window placement 17 99
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: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

737 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