Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Change Printer Driver at run time

Status
Not open for further replies.

essa2000

Programmer
Dec 6, 2000
299
0
0
CA
Hi;

I am looking for the code to change the default printer Driver or Default printer at run time. The scenario is that, we are facing problem in printing with Crystal Report and VB.NET. We developed our reports using different printer and client don't have that printer setting. We used Landscape Orientation for few reports and now those reports can't be viewed into Landscape at client site b/c CR is using their Printer Properties. When we installed our printer driver on which we developed those reports at client site and when you select that driver as a default printer and ran reports then those report can be viewed. But, there is no real printer over there only driver. Now, we are looking for solution of that problem after changing defauld Printer at run time.

Any Help ?

Thanks.

Muhammad Essa Mughal
Software Engineer
iLogic Inc.
 
Does the printer dialog box pop up when you print your report from crystal reports???? If not, you will need to find a way to get the printer dialog to activate. Then the user can choose, among other things, which printer to print to.
 
Yes, there is a button to invoke the printer dialog box and we can change the printer but the problem is that we have to preview those reports as well.



Muhammad Essa Mughal
Software Engineer
iLogic Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top