RGoldthorpe
Technical User
Hello
I am having all sorts of fun and games going trying to get printing to work on a crystal report viewer.
I have learnt about the common dialog showprinter to select the printer you want to be able to print to so I have created a button for the user.
However all it seems to do for me is change the default printer but it doesnt seem to print to the printer it makes default anyway always it only prints to the old default.
This combined with the fact I do not want the printer the users selected to be windows default printer after they have finished printing is proving to be a pain to me.
Here is my code.
Private Sub Command1_Click()
With CommonDialog1
.CancelError = True
.PrinterDefault = True
.ShowPrinter
End With
CRViewer1.PrintReport
End Sub
All help is very gratefully recieved
Rach
I am having all sorts of fun and games going trying to get printing to work on a crystal report viewer.
I have learnt about the common dialog showprinter to select the printer you want to be able to print to so I have created a button for the user.
However all it seems to do for me is change the default printer but it doesnt seem to print to the printer it makes default anyway always it only prints to the old default.
This combined with the fact I do not want the printer the users selected to be windows default printer after they have finished printing is proving to be a pain to me.
Here is my code.
Private Sub Command1_Click()
With CommonDialog1
.CancelError = True
.PrinterDefault = True
.ShowPrinter
End With
CRViewer1.PrintReport
End Sub
All help is very gratefully recieved
Rach