-
June 12th, 2005, 06:26 AM
#1
Printer Object & Commondialog cotrol
Hi
I am using printer object for printing a receipt
I want to use the commondialog.showprinter to give the user the ability to select the printer before he print the reciept
and then asign it to the printer object using
I dont want to change the system default printer
the unkonwn point to me is how to do the assignment
here is a sample of the code"
CommonDialog1.PrinterDefault = False
CommonDialog1.ShowPrinter
Set Printer = ?????????????
Regards
-
June 13th, 2005, 12:51 AM
#2
Re: Printer Object & Commondialog cotrol
Code:
Dim PrinterName As String 'current printer
PrinterName = Printer.DeviceName
Hope it helps!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|