splaisance
Programmer
I do not have any experience with API's and have been trying to understand them with some luck. Unfortunately I am still stuck on how to pull the information together to correct my problem.
I have a VB program which prints a report using the visual basic printer object. The problem is that if I allow the users to choose a printer to print to via the common dialog box, it changes their default printer. If I don't allow them to change the printer - then the report, of course, printers on their default printer.
I want to allow the user to choose which network printer they want the report to print on BUT their default printer needs to either stay the same or be changed back. Can someone help me? I think I need to use a device context to return a handle to the printer but can't figure out exactly how to do this.
Many Thanks!!
Shannon
I have a VB program which prints a report using the visual basic printer object. The problem is that if I allow the users to choose a printer to print to via the common dialog box, it changes their default printer. If I don't allow them to change the printer - then the report, of course, printers on their default printer.
I want to allow the user to choose which network printer they want the report to print on BUT their default printer needs to either stay the same or be changed back. Can someone help me? I think I need to use a device context to return a handle to the printer but can't figure out exactly how to do this.
Many Thanks!!
Shannon