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

Print Graph

Status
Not open for further replies.

jamez05

Programmer
Jul 29, 2005
130
US
I'm using Access 2003 and Microsoft Graph Chart on a form.
I want to be able to print the graph and the information on the form.

The problem I'm having is that the Graph does not print any of the data points inside it. Here's the code I'm using:
Code:
Private Sub Print_Form_Click()
On Error GoTo Err_Print_Form_Click
DoCmd.SetWarnings False
Forms("Probability").Printer.Orientation = acPRORLandscape
DoCmd.PrintOut , 1, 1, acLow, 1, False
DoCmd.SetWarnings True
Exit_Print_Form_Click:
    Exit Sub

Err_Print_Form_Click:
    MsgBox Err.Description
    Resume Exit_Print_Form_Click
    
End Sub
 
Figured it out, set the focus to the graph object before printing the form
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top