User (Legacy) Posted August 21, 2005 Author Report Share Posted August 21, 2005 Hi, Added the separate slice command using a variable, got the error. Tried it with constants and got the same. Chart displays with the slice seperated, then a second later the Windows Error window pops up. Have tried every combination Chart1.Point(-1, 0).SeparateSlice = 35 and they all GPF Even followed the doco which tells me that because I only have one series, I should only need to do Chart1.Point(PointNumber).SeparateSlice = 35 - get a syntax error. Is this because I am reading the data directly from the database - can't ChartFX handle it? Do I need to explicitly tell it there is only one series? I also wonder if this is the same with the Chart1.DataEditorObj.XValuesAsHeaders = True command which also causes a GPF However, if I change it to and Image display instead of the activex control - it works. Set chart1 = Server.CreateObject("ChartFX.ASP.Server") EmptyAnswerFlag=False Chart1.Gallery = ChartType Chart1.Chart3D = Setting3D 'Chart1.ToolBar = True Chart1.DataEditorObj.AutoSize = True Chart1.BackColor = BackColor Chart1.Titles(0).Text = TitleText Chart1.Titles(0).Font.Name = "Arial" Chart1.Titles(0).Font.Size = request("TitleSize") Chart1.DataType.Item(0) = DataType_Label Chart1.DataType.Item(1) = DataType_Value Chart1.DataSource = rstAnswers Chart1.PointLabels = PointLabels Chart1.LegendBox = ShowLegendBox Chart1.DataEditor = ShowDataEditor Chart1.DataEditorObj.AutoSize = True Chart1.DataEditorObj.Docked = Docked_right ' Chart1.DataEditorObj.XValuesAsHeaders = True - *** CAUSES GPF *** Chart1.DataEditorObj.ShowHeader = False If SliceMax > 0 then ' we have a pie chart question Chart1.Point(-1, 0).SeparateSlice = 35 ' *** CAUSES GPF *** end if %> <center> <%= Chart1.GetHtmlTag("90%",400,"ActiveX") %> </center> Link to comment Share on other sites More sharing options...
User (Legacy) Posted August 21, 2005 Report Share Posted August 21, 2005 Hi, Added the separate slice command using a variable, got the error. Tried it with constants and got the same. Chart displays with the slice seperated, then a second later the Windows Error window pops up. Have tried every combination Chart1.Point(-1, 0).SeparateSlice = 35 and they all GPF Even followed the doco which tells me that because I only have one series, I should only need to do Chart1.Point(PointNumber).SeparateSlice = 35 - get a syntax error. Is this because I am reading the data directly from the database - can't ChartFX handle it? Do I need to explicitly tell it there is only one series? I also wonder if this is the same with the Chart1.DataEditorObj.XValuesAsHeaders = True command which also causes a GPF However, if I change it to and Image display instead of the activex control - it works. Set chart1 = Server.CreateObject("ChartFX.ASP.Server") EmptyAnswerFlag=False Chart1.Gallery = ChartType Chart1.Chart3D = Setting3D 'Chart1.ToolBar = True Chart1.DataEditorObj.AutoSize = True Chart1.BackColor = BackColor Chart1.Titles(0).Text = TitleText Chart1.Titles(0).Font.Name = "Arial" Chart1.Titles(0).Font.Size = request("TitleSize") Chart1.DataType.Item(0) = DataType_Label Chart1.DataType.Item(1) = DataType_Value Chart1.DataSource = rstAnswers Chart1.PointLabels = PointLabels Chart1.LegendBox = ShowLegendBox Chart1.DataEditor = ShowDataEditor Chart1.DataEditorObj.AutoSize = True Chart1.DataEditorObj.Docked = Docked_right ' Chart1.DataEditorObj.XValuesAsHeaders = True - *** CAUSES GPF *** Chart1.DataEditorObj.ShowHeader = False If SliceMax > 0 then ' we have a pie chart question Chart1.Point(-1, 0).SeparateSlice = 35 ' *** CAUSES GPF *** end if %> <center> <%= Chart1.GetHtmlTag("90%",400,"ActiveX") %> </center> Link to comment Share on other sites More sharing options...
User (Legacy) Posted August 21, 2005 Author Report Share Posted August 21, 2005 Just tried it on another PC, (Both are XP) it downloaded the ActiveX control, displayed the Chart with the separate slice then GPF'd. Regards, James "James Barker" <JamesB@netstat.com.au> wrote in message news:Y9kRwTipFHA.4084@webserver3.softwarefx.com... > Hi, > > Added the separate slice command using a variable, got the error. Tried it > with constants and got the same. Chart displays with the slice seperated, > then a second later the Windows Error window pops up. > > Have tried every combination Chart1.Point(-1, 0).SeparateSlice = 35 and they > all GPF > Even followed the doco which tells me that because I only have one series, I > should only need to do Chart1.Point(PointNumber).SeparateSlice = 35 - get a > syntax error. > > Is this because I am reading the data directly from the database - can't > ChartFX handle it? Do I need to explicitly tell it there is only one series? > > I also wonder if this is the same with the > Chart1.DataEditorObj.XValuesAsHeaders = True command which also causes a GPF > > However, if I change it to and Image display instead of the activex > control - it works. > > Set chart1 = Server.CreateObject("ChartFX.ASP.Server") > EmptyAnswerFlag=False > Chart1.Gallery = ChartType > Chart1.Chart3D = Setting3D > 'Chart1.ToolBar = True > Chart1.DataEditorObj.AutoSize = True > Chart1.BackColor = BackColor > Chart1.Titles(0).Text = TitleText > Chart1.Titles(0).Font.Name = "Arial" > Chart1.Titles(0).Font.Size = request("TitleSize") > Chart1.DataType.Item(0) = DataType_Label > Chart1.DataType.Item(1) = DataType_Value > Chart1.DataSource = rstAnswers > Chart1.PointLabels = PointLabels > Chart1.LegendBox = ShowLegendBox > Chart1.DataEditor = ShowDataEditor > Chart1.DataEditorObj.AutoSize = True > Chart1.DataEditorObj.Docked = Docked_right > ' Chart1.DataEditorObj.XValuesAsHeaders = True - *** CAUSES GPF *** > Chart1.DataEditorObj.ShowHeader = False > If SliceMax > 0 then ' we have a pie chart question > Chart1.Point(-1, 0).SeparateSlice = 35 ' *** CAUSES GPF *** > end if > > %> > <center> > > <%= Chart1.GetHtmlTag("90%",400,"ActiveX") %> > > </center> > > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted August 21, 2005 Author Report Share Posted August 21, 2005 Just tried it on another PC, (Both are XP) it downloaded the ActiveX control, displayed the Chart with the separate slice then GPF'd. Regards, James "James Barker" <JamesB@netstat.com.au> wrote in message news:Y9kRwTipFHA.4084@webserver3.softwarefx.com... > Hi, > > Added the separate slice command using a variable, got the error. Tried it > with constants and got the same. Chart displays with the slice seperated, > then a second later the Windows Error window pops up. > > Have tried every combination Chart1.Point(-1, 0).SeparateSlice = 35 and they > all GPF > Even followed the doco which tells me that because I only have one series, I > should only need to do Chart1.Point(PointNumber).SeparateSlice = 35 - get a > syntax error. > > Is this because I am reading the data directly from the database - can't > ChartFX handle it? Do I need to explicitly tell it there is only one series? > > I also wonder if this is the same with the > Chart1.DataEditorObj.XValuesAsHeaders = True command which also causes a GPF > > However, if I change it to and Image display instead of the activex > control - it works. > > Set chart1 = Server.CreateObject("ChartFX.ASP.Server") > EmptyAnswerFlag=False > Chart1.Gallery = ChartType > Chart1.Chart3D = Setting3D > 'Chart1.ToolBar = True > Chart1.DataEditorObj.AutoSize = True > Chart1.BackColor = BackColor > Chart1.Titles(0).Text = TitleText > Chart1.Titles(0).Font.Name = "Arial" > Chart1.Titles(0).Font.Size = request("TitleSize") > Chart1.DataType.Item(0) = DataType_Label > Chart1.DataType.Item(1) = DataType_Value > Chart1.DataSource = rstAnswers > Chart1.PointLabels = PointLabels > Chart1.LegendBox = ShowLegendBox > Chart1.DataEditor = ShowDataEditor > Chart1.DataEditorObj.AutoSize = True > Chart1.DataEditorObj.Docked = Docked_right > ' Chart1.DataEditorObj.XValuesAsHeaders = True - *** CAUSES GPF *** > Chart1.DataEditorObj.ShowHeader = False > If SliceMax > 0 then ' we have a pie chart question > Chart1.Point(-1, 0).SeparateSlice = 35 ' *** CAUSES GPF *** > end if > > %> > <center> > > <%= Chart1.GetHtmlTag("90%",400,"ActiveX") %> > > </center> > > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.