AGarza
2004-11-29 17:32:00 UTC
I have a big problem for me ... maybe single for you ...
I have to print a MSChart an I am ussing the next code to print it.
MSChart1.editcopy
printer.paintpicture clipboard.getdata(),0,0
printer.enddoc
This MSChart1 is a XY Chart, previously I modify the properties XY
With MSChart1.Plot
(*).Axis(VtChAxisIdX).ValueScale.Auto = False
(*).Axis(VtChAxisIdX).ValueScale.Minimum = Format(txt_x_min, "0.00")
(*).Axis(VtChAxisIdX).ValueScale.Maximum = Format(txt_x_max, "0.00")
(*).Axis(VtChAxisIdX).ValueScale.MinorDivision = 1
(*).Axis(VtChAxisIdX).ValueScale.MajorDivision = 3
.Axis(VtChAxisIdY).ValueScale.Auto = False
.Axis(VtChAxisIdY).ValueScale.Minimum = Format(txt_y_min, "0.00")
.Axis(VtChAxisIdY).ValueScale.Maximum = Format(txt_y_max, "0.00")
.Axis(VtChAxisIdY).ValueScale.MinorDivision = 1
.Axis(VtChAxisIdY).ValueScale.MajorDivision = 3
End With
Finally, I see the MSchart1 it's ok in my form.. but the problem is
when I send it to print MSChart1.EditCopy, the print chart it's OK in
the "Y" Axis, but doesn't respecting the origin properties of "X"
Axis. (*****)
Can you help me ...
Thanks, I have invested a lot of time learning all about this control,
and it makes me sad that I can't obtain the wished results
Ana Garza
Monterrey Mexico
I have to print a MSChart an I am ussing the next code to print it.
MSChart1.editcopy
printer.paintpicture clipboard.getdata(),0,0
printer.enddoc
This MSChart1 is a XY Chart, previously I modify the properties XY
With MSChart1.Plot
(*).Axis(VtChAxisIdX).ValueScale.Auto = False
(*).Axis(VtChAxisIdX).ValueScale.Minimum = Format(txt_x_min, "0.00")
(*).Axis(VtChAxisIdX).ValueScale.Maximum = Format(txt_x_max, "0.00")
(*).Axis(VtChAxisIdX).ValueScale.MinorDivision = 1
(*).Axis(VtChAxisIdX).ValueScale.MajorDivision = 3
.Axis(VtChAxisIdY).ValueScale.Auto = False
.Axis(VtChAxisIdY).ValueScale.Minimum = Format(txt_y_min, "0.00")
.Axis(VtChAxisIdY).ValueScale.Maximum = Format(txt_y_max, "0.00")
.Axis(VtChAxisIdY).ValueScale.MinorDivision = 1
.Axis(VtChAxisIdY).ValueScale.MajorDivision = 3
End With
Finally, I see the MSchart1 it's ok in my form.. but the problem is
when I send it to print MSChart1.EditCopy, the print chart it's OK in
the "Y" Axis, but doesn't respecting the origin properties of "X"
Axis. (*****)
Can you help me ...
Thanks, I have invested a lot of time learning all about this control,
and it makes me sad that I can't obtain the wished results
Ana Garza
Monterrey Mexico