Solved

Printing from CFormView or CDialog based applications

Posted on 2004-03-30
2
331 Views
Last Modified: 2013-11-20
Hello everybody and I'd appreciate your help, suggestions, and/or comments on the following:

I have a viewform-based application and I need to do some printing. I don't need to print the whole form, but just some area, enclosed withing a CRect object, where I'm doing some text and graphical output. I used CFromView expecting to utilize OnPrint and other functions provided by MFC, but as far as I understand I need to override this function in order to print anything... and I'm not sure how. I found a source on Code Guru site but unfortunatelly it doesn't work for me... I have a print view, which I actually don't need, and a printer just spits out my sheets of paper without printing anything :((

I would appreciate your suggestions.
0
Comment
Question by:Yurich
[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 15

Accepted Solution

by:
lakshman_ce earned 100 total points
ID: 10723977
0
 
LVL 21

Author Comment

by:Yurich
ID: 10751421
thanks for your reply. i have found a couple of more sources on the net and combined with this one, i could get what i needed. in the example you advice me, i didn't quite understood the reason of using MM_LOMETRIC since it's not flexible and doesn't give you a real size of your controls... nevertheless, i rather used MM_ANISOTROPIC map mode with setting window and viewport extents... there are more question but it's a different story. thanks again
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying 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
Pressing cancel button with C# UI Automation 3 105
Change owner from userA to server Local Administrators 7 74
post4 challenge 28 123
Adjust the codes 3 65
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

710 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