Click here to Skip to main content
15,910,277 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralPrinting size -bmp-help needed! Pin
radha vijay8-Oct-03 5:25
radha vijay8-Oct-03 5:25 
Hi
I am trying to print bmp/jpeg image from an mfc application, but the image size is very small.

Can someone tell me how to get the original size while printing?
Here is my code.
Thankyou.

BOOL CView::OnPreparePrinting ( CPrintInfo *info )
{
info -> SetMaxPage ( 1 ) ;
return DoPreparePrinting ( info ) ;
}

void CView::OnPrepareDC ( CDC *pDC, CPrintInfo* info )
{
CView::OnPrepareDC ( pDC, info ) ;

if ( pDC -> IsPrinting( ) )
int n = info -> m_nCurPage ;


pDC->SetMapMode(MM_ANISOTROPIC);

pDC->SetWindowExt(10000,10000);
pDC->SetViewportExt(18000,18000);

pDC->SetViewportOrg(500,1000);



}
}
GeneralRe: Printing size -bmp-help needed! Pin
David Crow8-Oct-03 6:45
David Crow8-Oct-03 6:45 
GeneralRe: Printing size -bmp-help needed! Pin
Alex Dolpfin9-Oct-03 3:49
Alex Dolpfin9-Oct-03 3:49 
GeneralRe: One application for two Operating Systems Pin
vcplusplus8-Oct-03 5:23
vcplusplus8-Oct-03 5:23 
Generaldisplaying of string in CEdit or CRichEditCtrl Pin
Neelesh K J Jain8-Oct-03 5:00
Neelesh K J Jain8-Oct-03 5:00 
GeneralRe: displaying of string in CEdit or CRichEditCtrl Pin
Niall Barr8-Oct-03 5:10
professionalNiall Barr8-Oct-03 5:10 
GeneralRe: displaying of string in CEdit or CRichEditCtrl Pin
David Crow8-Oct-03 6:46
David Crow8-Oct-03 6:46 
GeneralPrint Preview - Text extent differs at various zoom states Pin
Andy Latham8-Oct-03 4:43
Andy Latham8-Oct-03 4:43 
GeneralOne application for two Operating Systems Pin
ThakurSaab8-Oct-03 4:41
ThakurSaab8-Oct-03 4:41 
GeneralRe: One application for two Operating Systems Pin
Niall Barr8-Oct-03 4:57
professionalNiall Barr8-Oct-03 4:57 
GeneralGet license key Pin
Anonymous8-Oct-03 4:05
Anonymous8-Oct-03 4:05 
GeneralRe: Get license key Pin
Wes Aday8-Oct-03 4:38
professionalWes Aday8-Oct-03 4:38 
GeneralRe: Get license key Pin
Anonymous8-Oct-03 5:02
Anonymous8-Oct-03 5:02 
GeneralTransparent winows using a bitmap and UpdateLayeredWindow - HELP pls! Pin
xela8-Oct-03 3:49
xela8-Oct-03 3:49 
GeneralCRichEditCtrl::SetParaFormat Pin
Ph@ntom8-Oct-03 3:46
Ph@ntom8-Oct-03 3:46 
GeneralRe: CRichEditCtrl::SetParaFormat Pin
Larry J. Siddens8-Oct-03 7:56
Larry J. Siddens8-Oct-03 7:56 
Generalchanging autodate of ms office documents Pin
pnpfriend8-Oct-03 3:19
pnpfriend8-Oct-03 3:19 
QuestionUnlimited or arbitrary string lengths? Pin
Kayembi8-Oct-03 3:15
Kayembi8-Oct-03 3:15 
AnswerRe: Unlimited or arbitrary string lengths? Pin
Adam Gritt8-Oct-03 3:44
Adam Gritt8-Oct-03 3:44 
AnswerRe: Unlimited or arbitrary string lengths? Pin
skaanji8-Oct-03 4:24
skaanji8-Oct-03 4:24 
GeneralRe: Unlimited or arbitrary string lengths? Pin
Kayembi8-Oct-03 12:06
Kayembi8-Oct-03 12:06 
GeneralRe: Event notification from checkbox within TreeControl (from WTL) Pin
David Crow8-Oct-03 2:41
David Crow8-Oct-03 2:41 
GeneralRe: Event notification from checkbox within TreeControl (from WTL) Pin
pnpfriend8-Oct-03 4:32
pnpfriend8-Oct-03 4:32 
GeneralWindow Messages Pin
Saurabh_Delhi8-Oct-03 2:24
Saurabh_Delhi8-Oct-03 2:24 
GeneralRe: Window Messages Pin
Anonymous8-Oct-03 2:31
Anonymous8-Oct-03 2:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.