Page 1 of 1
height:420px="" width:680px=""
Posted: Wed Jun 28, 2006 5:56 pm
by 9639095
When I am using the chart in my 1.1 ASP.net app the markeup looks like this
<img usemap="#MAPwcSectormap" src="GetChart.aspx?Chart=wcSectormap127001388965779464815" id="wcSectormap" name="wcSectormap" clickedy="0clickedx=" 0="" height:420px="" width:680px="" border="0">
As you can see it the height and width are bogus which is causing problems. Is there any way to make Tee Chart Pro generate valid HTML?
This is the markup from my ASPX file.
<tchart:WebChart id="wcSectormap" runat="server" tempchart="Session" clickedy="0" clickedx="0" getchartfile="GetChart.aspx" autopostback="False" visible="False"></tchart:WebChart>
I am using version 2.0.2306.26231
Thanks
Brad
Posted: Thu Jun 29, 2006 9:18 am
by narcis
Hi Brad,
I'm not able to reproduce the issue here using same TeeChart build as you. Can you please test if the ASP.NET demo, included at
C:\Program Files\Steema Software\TeeChart for .NET v2\TeeChartForNET (default english path), works at your end?
If the problem persist, can you please send us an example we can run "as-is" to reproduce the problem here? You can post your files at news://
www.steema.net/steema.public.attachments newsgroup.
height:420px="" width:680px=""
Posted: Thu Jun 29, 2006 12:46 pm
by 9639095
Thanks. I have posted it with the same subject as this thread.
It is a Delphi 2006 project for ASP.Net
Posted: Thu Jun 29, 2006 1:19 pm
by narcis
Hi Brad,
Thanks for the example but I couldn't run it because I don't have the necessary SQL Server database.
However, this is most likely to be a problem we solved recently. Did you upgraded an application written using an older TeeChart.dll version? If that's the case you could try removing the chart from the form and place a new chart so that the HTML code is properly generated.
Delphi 2006 project for ASP.Net
Posted: Thu Jun 29, 2006 1:44 pm
by 9639095
Yes, it was an older project that I moved to the lastest version. It happens in all the projects I have, except the demos that were installed with the charting component (I have never rebuilt them).
I deleted the chart and put it back in. It did not seem to make a difference.
I have put the latest code on the news server (without the DB stuff _sorry_)
Thanks for your help do far.
Brad.
Posted: Thu Jun 29, 2006 2:03 pm
by narcis
Hi Brad,
Thanks for the example.
Have you checked that you properly installed latest TeeChart maintenance release and that your project TeeChart. dll reference was properly upgraded?
It works fine for me here using the version you mentioned. The HTML code in BDS 2006 is:
Code: Select all
<tchart:WebChart id="WebChart1" runat="server" tempchart="Session" getchartfile="GetChart.aspx" autopostback="False" pictureformat="JPEG" clickedy="0" clickedx="0"></tchart:WebChart>
And the HTML code in the browser is:
Code: Select all
<IMG SRC="GetChart.aspx?Chart=WebChart1127001388976609103704" id="WebChart1" Name="WebChart1" ; height:300px; width:400px" Border=0></p>
HTML is wrong
Posted: Thu Jun 29, 2006 2:16 pm
by 9639095
Hi
The HTML looks right but it is not. It should be this
Code: Select all
<img src="/TeeChartForNET/GetChart.aspx?Chart=WebChart1127001388974225476852" id="WebChart1" name="WebChart1" style="height: 290px; width: 432px;" border="0">
or this
Code: Select all
<img src="/TeeChartForNET/GetChart.aspx?Chart=WebChart1127001388974225476852" border="0" height="290" width="432">
The code shown is a combination of the two. It is using styles but missing the style attribute. The height:300px; syntax only works for a style attribute. It looks like that is what is missing. There is a stray " which looks like the component is closing the stlye attribute that was not oppened.
The demos get it correct and use the syntax in the first example.
Posted: Thu Jun 29, 2006 2:20 pm
by narcis
Hi Brade,
Sorry but I forgot to ask you to manually remove BDS's HTML code before placing the new WebChart in the form when upgrading it. Have you proceeded like this?
Posted: Thu Jun 29, 2006 2:42 pm
by 9639095
Yes I removed everything and then restarted the IDE.
You are getting the same results I am. It looks like the style tag is missing on the output.
Posted: Fri Jun 30, 2006 3:33 pm
by narcis
Hi Brade,
Thanks for the information. You are right. However, your project works fine on my machine. The style attribute is present in ASP.NET projects created with VS.NET so this may be a BDS bug.
Posted: Fri Jun 30, 2006 3:56 pm
by 9639095
So what happens next?
Will you fix the component to work with BDS or do I have to convince Borland it is a bug and wait for them to fix it?
Posted: Mon Jul 03, 2006 3:17 pm
by narcis
Hi Brad,
After exhaustive testing we could reproduce the issue here and it seems to be a TeeChart issue as it was reproduceable using Visual Studio 2005 as well.
I've added it (TF02011540) to our defect list to be fixed for future releases.
Posted: Wed Jul 05, 2006 12:52 pm
by 9639095
Thanks.
Much appreciated. Is there any work around?
Can I monitor that bug number in some way (I have not looked yet).
Brad.
Posted: Fri Jul 14, 2006 11:49 am
by Marc
Hello Brad,
There's no bug tracker available to track this issue however as an update: Changes have been made as a result of output parsing issues found in Delphi 2006. We expect to make the update available next week. We expect them to correct the problem you found.
Regards,
Marc Meumann