User (Legacy) Posted December 28, 2001 Report Posted December 28, 2001 I am trying to set properties for the Series object using an XML file but it crashes Explorer when I try to load it. If I remove the Series Object reference from the xml file everything works OK. I have included the files I am using... Any help on how to set specific properties of a series when loading the data with XML would be great. Tarik Khan Manitoba Hydro
Software FX Posted January 9, 2002 Report Posted January 9, 2002 The reason for the crash is that you can not assign attributes for only one series in the XML, you must do it for all of the or none of them. In your case, you must add the following to your Prop.XML: <OBJECT NAME="Series(0)"> <PROP NAME="YAxis" VALUE="0"/> </OBJECT> <OBJECT NAME="Series(1)"> <PROP NAME="YAxis" VALUE="0"/> </OBJECT> <OBJECT NAME="Series(2)"> <PROP NAME="YAxis" VALUE="1"/> </OBJECT> This will fix the crash. However, this will not make the secondary Y axis visible or scaled. You need to add the following 2 lines of code before your GetHTMLTag: ChartFX1.Axis(1).Visible = True ChartFX1.RecalcScale -- FP Software FX, Inc.
User (Legacy) Posted January 9, 2002 Author Report Posted January 9, 2002 Thanks that worked! "SoftwareFX Support" <support@softwarefx.com> wrote in message news:qly0qHSmBHA.1704@webserver1.softwarefx.com... > The reason for the crash is that you can not assign attributes for only one > series in the XML, you must do it for all of the or none of them. > > In your case, you must add the following to your Prop.XML: > > <OBJECT NAME="Series(0)"> > <PROP NAME="YAxis" VALUE="0"/> > </OBJECT> > > <OBJECT NAME="Series(1)"> > <PROP NAME="YAxis" VALUE="0"/> > </OBJECT> > > <OBJECT NAME="Series(2)"> > <PROP NAME="YAxis" VALUE="1"/> > </OBJECT> > > This will fix the crash. However, this will not make the secondary Y axis > visible or scaled. You need to add the following 2 lines of code before your > GetHTMLTag: > > ChartFX1.Axis(1).Visible = True > ChartFX1.RecalcScale > > -- > FP > Software FX, Inc. > >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.