Solved

PRINT AND PRINT PREVIEW

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

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 …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

776 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