Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

PRINT AND PRINT PREVIEW

Posted on 1998-11-05
1
Medium Priority
?
218 Views
Last Modified: 2013-11-20
Hi experts,
  Environment : VC++ 5.0 ,  MFC 4.0,  NT 4.0
  Question    : By OnDraw I m drawing a big picture
    using CDC :: Draw-function...s .The size of the
    picture is more than A4 size paper .
    Now I want to print the picture in A4 size paperS
    without changing the scale of the actual picture .
    i.e , I want the printout of the picture as 2D array
    of A4 size paperS .And the same I want to see in  
    print preview .  
0
Comment
Question by:tamil
1 Comment
 
LVL 2

Accepted Solution

by:
cyrilbdt earned 600 total points
ID: 1324248
In your print function set DC:
1. If you are in MM_ANISOTROPIC ot MM_ISOTROPIC set dimension of view to A4 (using SetViewportExt and SetWindowExt).
2. Move coord origin in starting point you want(SetViewportOrg).
3. Call OnDraw with this modified DC
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
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.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

916 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