Solved

PRINT AND PRINT PREVIEW

Posted on 1998-11-05
1
204 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 200 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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 …

856 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