david.healed
david.healed

Reputation: 1319

MFC - Printing rtf document

How to print a RTF document in a MFC application without displaying it?

The user will go through the following step to print the file: 1. Choose the rtf file. 2. A print dialog box will appear after that 3. Press OK to print the file.

Upvotes: 0

Views: 688

Answers (1)

Sheng Jiang 蒋晟
Sheng Jiang 蒋晟

Reputation: 15261

You can load it in an invisible CRichEditCtrl and pass a printer DC when sending WM_PRINT to the window.

Upvotes: 2

Related Questions