chandukb
asked on
VB and Excel
Hi,
I am calling an excel template from my vb app. and printing the excel sheet as follows.
xl.ActiveSheet.PrintOut
xl is excel object and everything is working fine with this statement, but I need to display the print dialog box to the user, so that the user can specifiy number of copies, paper settings, etc.
How do I display print dialog box?
Thanks for any ideas.
Chandu
I am calling an excel template from my vb app. and printing the excel sheet as follows.
xl.ActiveSheet.PrintOut
xl is excel object and everything is working fine with this statement, but I need to display the print dialog box to the user, so that the user can specifiy number of copies, paper settings, etc.
How do I display print dialog box?
Thanks for any ideas.
Chandu
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
sorry, what is cbdPrint variable?
You can also do:
W.PrintOut Copies:=intNumCopies, ActivePrinter:=OutPrinter
Where "OutPrinter" is any printer in your printers folder and this doesn't set the printer to the default.
W.PrintOut Copies:=intNumCopies, ActivePrinter:=OutPrinter
Where "OutPrinter" is any printer in your printers folder and this doesn't set the printer to the default.
ASKER
ThankX a lot
glad i could help