Dear Members
i am using crystal report 7
the problem is this that i have to select the printer From the user,kindly send me any solution.
Thanks
Printable View
Dear Members
i am using crystal report 7
the problem is this that i have to select the printer From the user,kindly send me any solution.
Thanks
Welcome to the forums. :wave:
Try thisVB Code:
Private Sub Command1_Click() Dim MyPrinter As Printer For Each MyPrinter In Printers If MyPrinter.DeviceName = "Printer Name" Then ' Set printer as system default. Set Printer = MyPrinter Exit For End If Next End Sub
You can also use the commondialog control. then use..
CommonDialog1.ShowPrinter
I havent used 7.0, but I do have a CR Print setup example in my signature for 8.5. It uses the SelectPrinter method.