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

Setting Crystal Report X-axis min and max dynamically

Status
Not open for further replies.

KABDRM

Programmer
Jan 13, 2005
50
Hello,

I am using VB6 with Crystal Reports 9.

I have an XY Scatter graph in my report. I'd like to be able to let the user select the min and max axis values through my VB application. It is letting my set many chart options but not the X-axis min and max. I've tried setting it using both the MinData2AxisValue/MaxData2AxisValue and the MinSeriesAxisValue/MaxSeriesAxisValue but I believe these are not the x-axis at all so that is why I see not change. There is a property to set the x-axis title. Below is how I am setting the graph options for the y-axis (data axis) and the axis labels in my application:

If crxReportGraph.Name = "Graph1" Then
crxReportGraph.AutoRangeDataAxis = False

crxReportGraph.MinDataAxisValue = txtDataAxisMin.Text
crxReportGraph.MaxDataAxisValue = txtDataAxisMax.Text
crxReportGraph.DataTitle = txtDataAxisLabel.Text

crxReportGraph.XAxisTitle = txtXAxisLabel.Text

End If

Does ANYONE know if it is even possible to change the X-axis min and max values for a Crystal scatter plot dynamically? And if you can, how?

Thanks for your time and consideration!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top