Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

common dialog box 1

Status
Not open for further replies.

RGoldthorpe

Technical User
Aug 10, 2001
83
GB
I am having problems (still)

with changing the printer that the CRveiwer9 uses to print to.

I use comdlg1.showprinter to change the windows default printer

and then

Crviewer91.printreport to printout.

the show printer is changing the windows default but crviewer 9 does not recognise it has change until you exit the application and go back in am I missing something????

Rach
 
I had to ask CD for help with this one. The CRViewer default printer print Button is the one you want to trap with this code on your viewer form.

Private Sub CRView_PrintButtonClicked(UseDefault As Boolean)
UseDefault = True
cReport.PrinterSetup Me.hwnd
End Sub

And that will let the user select the printer when they press the print button. Editor and Publisher of Crystal Clear
 
That is absolutley brilliant

Fantastic works like a dream I did try and mark as useful message but it came up with an error.

but thankyou very very much.

Rach
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top