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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print Dialog Box 1

Status
Not open for further replies.

stevejones

Programmer
Jul 3, 2002
30
GB
Hi All,

My app will preview reports to screen using CRViewer, (VB 6 CR 8.5). The CR standard print button is displayed.

However, when this is pressed, a dialog box is displayed which doesn't allow user to select printer. It just displays the windows default print.

How can this dialog box be changed to allow user to select printer to output to? (ie like windows standard print dialog box)

Many Thanks

Steve
 
Steve,

I also am looking for a solution to your problem. I also hope you can help me with mine. I have the same situation as you printing from the CRViewer 8.5 in VB6. The same screen appears as yours does but when I click ok to print nothing happens. If I call up the same report outside of VB with the viewer it prints fine. Do I need to add something to my VB app to print ?
 
Steve,

Click on the Check out the FAQ area for this forum at the bottom of the post. I just looked and there are several examples as to how to do what we want
 
I have added the following code to my form.

Private Sub CRViewer1_PrintButtonClicked(UseDefault As Boolean)
m_Report.PrinterSetup Me.hWnd
End Sub

This will display the windows print dialog box allowing user to select the printer. It then prints OK.

Hope this helps!!
 
thanks steve it works great without the m_

I also got my other issue resolved someone had set the report to NoPrint
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top