|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 11/25/2007 7:39:12 PM
Posts: 3,
Visits: 5
|
|
| Hi, this is my problem: I'm moving from Windows 2000 Server with IIS 5.0 to Windows 2003 Server with IIS 6.0, I just copy al the website to the new server, all the files etc. i give permission for executing asp.net 2.0 scripting on the server etc. But when i try to go tothe page with a chart (any), the chart in the page have no data. I got in the same page a small grid and the grid is fully filled. but appear that the dataset generated within the page has no data or the xml is not recognized. i don't know. But is the same file... that works fine in Windows 2000 server. This is the code for the dataset and xml within the .aspx file Dim strFCdataXML As StringDim Cliente As StringDim Anio As StringDim Mes As StringDim MesFin As StringPublic Function getFCXMLData() As StringDim strFCXMLData As String'Establish a connectionDim DS As DataSetDim MyConnection As sqlConnectionDim MyCommand As sqlDataAdapterCliente = Me.cbCliente.SelectedValueAnio = Me.cbAnio.SelectedValueMes = Me.cbMes.SelectedValueMesFin = Me.cbMesFin.SelectedValueMyConnection = New sqlConnection(ConfigurationManager.ConnectionStrings("TW_SQL_7").ConnectionString)MyCommand = New sqlDataAdapter("Select Tipo = 'Polvo', Total = sum(PVenta), Orden = 3 from graficoCliente Where Cliente ='" & Cliente & "' and Anio ='" & Anio & "' and Mes between '" & Mes & "' and '" & MesFin & "' Group by Cliente, Anio Union " _& " Select Tipo = 'Líquido', Total = sum(QVenta), Orden = 2 from graficoCliente Where Cliente ='" & Cliente & "' and Anio ='" & Anio & "' and Mes between '" & Mes & "' and '" & MesFin & "' Group by Cliente, Anio Union " _& " Select Tipo = 'Total', Total = sum(TVenta), Orden = 1 from graficoCliente Where Cliente ='" & Cliente & "' and Anio ='" & Anio & "' and Mes between '" & Mes & "' and '" & MesFin & "' Group by Cliente, Anio order by Orden ", MyConnection)'Fill the datasetDS = New DataSet()MyCommand.Fill(DS, "Ventas")'Define a list of Colors Dim strColor(10) As StringstrColor(0) = "AFD8F8"strColor(1) = "F6BD0F" 'Bright RedstrColor(2) = "8BBA00" 'Dark GreenstrColor(3) = "A66EDD" 'Dark PinkstrColor(4) = "F984A1" 'Variant of brownstrColor(5) = "CCCC00" 'OrangestrColor(6) = "999999" 'VioletstrColor(7) = "0099CC" 'GreystrColor(8) = "CCCC00" 'Chrome Yellow+GreenstrColor(9) = "0372AB" 'Dark Blue'Initialize the XML StringstrFCXMLData = "<graph caption='Cliente - " & Cliente & "' shownames='1' showvalues='0' decimalPrecision='0' numberPrefix=''>" & vbCrLf'Now iterate through each data rowDim i As IntegerFor i = 0 To DS.Tables("Ventas").Rows.Count - 1strFCXMLData = strFCXMLData & "<set name='" & DS.Tables("Ventas").Rows(i).Item("Tipo") & "' value='" & DS.Tables("Ventas").Rows(i).Item("Total") & "' color='" & strColor(i Mod 9) & "'/>" & vbCrLfNext strFCXMLData = strFCXMLData & "</graph>"Return strFCXMLDataEnd Function---------------------------- And this is the code of the embedded object in the same .aspx file < OBJECT id="FC2Column" codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="400" width="675" classid="clsid 27CDB6E-AE6D-11cf-96B8-444553540000" VIEWASTEXT><PARAM NAME="Movie" VALUE="Charts/FC_2_3_Column3D.swf"><PARAM NAME="FlashVars" VALUE="&chartWidth=675&chartHeight=400&dataXML=<%= getFCXMLData() %>"><EMBED src="Charts/FC_2_3_Column3D.swf" FlashVars="&chartWidth=675&chartHeight=400&dataXML=<%= getFCXMLData() %>" quality=high bgcolor=#FFFFFF WIDTH="675" HEIGHT="400" NAME="FC2Column" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"> </EMBED></OBJECT>------------------------------------------------------------------------------------------------------------------------------------------ And all this code works fine when is hosted in Windows 2000 server IIS 5.0 but not when hosted in Windows 2003 Server R2 IIS 6.0 Can you help me please? i already try everything! =S Thanx In Advance Joel
Mario Joel Moran Loza Creando un mundo mejor... (Building a better world...)
|
|
|
|
|
FusionCharts Team
      
Group: Administrators
Last Login: Yesterday @ 8:20:12 AM
Posts: 2,194,
Visits: 521
|
|
Hi,
Can you please try using FusionCharts v3 and then switch the debug mode of chart to on to see what might be causing the error?
Thanks, Pallav Nadhani FusionCharts Team
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: Today @ 5:38:52 AM
Posts: 884,
Visits: 1,420
|
|
| Hi, YOu can also have the XML in a textarea like this .. <textarea rows='50' cols='50'><%=getFCXMLData() %></textarea> and check whether the XML is rendered fine. Moreover you need to see if the flash player 6 or above is installed and have permission to run.
Regards,
Sudipto Choudhury FusionCharts Team
|
|
|
|
|
Supreme Being
      
Group: Moderators
Last Login: Today @ 5:38:52 AM
Posts: 884,
Visits: 1,420
|
|
| Hi, May be you can try removing the '& vbCrLf' that you have appended after each concatinating line...as in ... strFCXMLData = "<graph caption='Cliente - " & Cliente & "' shownames='1' showvalues='0' decimalPrecision='0' numberPrefix=''>" & vbCrLf strFCXMLData = strFCXMLData & "<set name='" & DS.Tables("Ventas").Rows(i).Item("Tipo") & "' value='" & DS.Tables("Ventas").Rows(i).Item("Total") & "' color='" & strColor(i Mod 9) & "'/>" & vbCrLf
Regards,
Sudipto Choudhury FusionCharts Team
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 11/25/2007 7:39:12 PM
Posts: 3,
Visits: 5
|
|
| Hi! Hi, in debug mode this is the error: ERROR: Invalid number 25640,00000 specified in XML. FusionCharts can accept number in pure numerical form only. If your number formatting (thousand and decimal separator) is different, please specify so in XML. Also, do not add any currency symbols or other signs to the numbers. ERROR: Invalid number 3305,00000 specified in XML. FusionCharts can accept number in pure numerical form only. If your number formatting (thousand and decimal separator) is different, please specify so in XML. Also, do not add any currency symbols or other signs to the numbers. ERROR: Invalid number 22335,00000 specified in XML. FusionCharts can accept number in pure numerical form only. If your number formatting (thousand and decimal separator) is different, please specify so in XML. Also, do not add any currency symbols or other signs to the numbers. ERROR: Invalid number 28492,00000 specified in XML. FusionCharts can accept number in pure numerical form only. If your number formatting (thousand and decimal separator) is different, please specify so in XML. Also, do not add any currency symbols or other signs to the numbers. ERROR: Invalid number 4425,00000 specified in XML. FusionCharts can accept number in pure numerical form only. If your number formatting (thousand and decimal separator) is different, please specify so in XML. Also, do not add any currency symbols or other signs to the numbers. ERROR: Invalid number 24067,00000 specified in XML. FusionCharts can accept number in pure numerical form only. If your number formatting (thousand and decimal separator) is different, please specify so in XML. Also, do not add any currency symbols or other signs to the numbers. Thanx in advance
Mario Joel Moran Loza Creando un mundo mejor... (Building a better world...)
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 11/25/2007 7:39:12 PM
Posts: 3,
Visits: 5
|
|
| Hi! Me again! The problem was solved! The code was ok, the charts was ok. Seem that IIS 6.0 have new stuff about security and configuration, and the directive <%@ Page Language="VB" %> must to be changed for <% @LCID = 2058% >In order tu apply the regional setting for Mexico in this case. IIS 6.0 always apply US-Eng by default regional settings no matter what settings are in the server. then you must change the directive in every page where you use a different setting for money or decimal places, etc. I hope this help to others! Thanx to all Fussion Charts Team!
Mario Joel Moran Loza Creando un mundo mejor... (Building a better world...)
|
|
|
|