E
Eric Brose
Howdy all!
I need help exporting a pivotchart to a .png
I have a form 'frm_forquery' that allows a user to select a value called
"TMC", this then runs a query and opens the pivotchart 'frm_selectTMC' based
on that users selection.
I would like to export the chart to a jpg..
I added a command on 'frm_forquery' and have been working on this code, but
i keep getting run-time error '2467' the expression you entered refers to a
object that is closed or doesn't exist....
here is the command code
Code:
Private Sub Command13_Click()
Dim outputDir As String
Dim TMC As String
Dim plot_model As String
Dim form_name As String
Dim graphForm As Form
TMC = "Select TMC Chart"
outputDir = "C:\"
form_name = "frmSelectTMC"
plot_model = "frmSelectTMC_" S
et graphForm = Forms(frmSelectTMC)
graphForm.ChartSpace.ExportPicture outputDir & plot_model & TMC & ".jpg",
"JPG", 1024, 800 End Sub
Seen other posts with similiar problems
cheers,
Eric
I need help exporting a pivotchart to a .png
I have a form 'frm_forquery' that allows a user to select a value called
"TMC", this then runs a query and opens the pivotchart 'frm_selectTMC' based
on that users selection.
I would like to export the chart to a jpg..
I added a command on 'frm_forquery' and have been working on this code, but
i keep getting run-time error '2467' the expression you entered refers to a
object that is closed or doesn't exist....
here is the command code
Code:
Private Sub Command13_Click()
Dim outputDir As String
Dim TMC As String
Dim plot_model As String
Dim form_name As String
Dim graphForm As Form
TMC = "Select TMC Chart"
outputDir = "C:\"
form_name = "frmSelectTMC"
plot_model = "frmSelectTMC_" S
et graphForm = Forms(frmSelectTMC)
graphForm.ChartSpace.ExportPicture outputDir & plot_model & TMC & ".jpg",
"JPG", 1024, 800 End Sub
Seen other posts with similiar problems
cheers,
Eric