Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi All,

Thanks in advance.

I am using printer selection dialog provided by widows for printing in my application.

Operating system: Windows XP professional.

Application Type : MFC

Scenario:-

when no printer install on system and my application try to print some data, we get error message box "no printer install and do you want to install now. if i select yes option, printer installation wizards pop up in same time icon of my main widows changed by windows printer icon.

but the same application working fine on 64 bit windows 7 machine.



Code snippet:-

CPrintInfo printInfo;

DoPreparePrinting( &printInfo );

it call CView::DoPreparePrinting(CPrintInfo* pInfo) from function from viewprnt.cpp file.




I don't know where i need to change and doing mistake that create issue, kindly suggest.



Your response is keenly awaited.

Thanks a lot for your valuable time.

With Regards,

Naaryan
Posted
Comments
Prasad Bansi Vagal 2-Aug-10 12:58pm    
Reason for my vote of 5
not so hard consult your seniours.

viewprnt.cpp file might be only used in Windows 7, the file for windows xp might be different, please change the file to the file which is used in xp for the same opperation.

prasad :)
 
Share this answer
 
Hi Prasad,

Thanks for reply.

Yes, On Windows XP when i reached DoPreparePrinting( &printInfo ) line and press F11 it's open Disassembly not viewprnt.cpp but this is not happen on Windows 7.

Kindly suggest.

With Regards,
Narayan
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900