height:420px="" width:680px=""

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Brade
Newbie
Newbie
Posts: 7
Joined: Mon Nov 07, 2005 5:00 am

height:420px="" width:680px=""

Post by Brade » Wed Jun 28, 2006 5:56 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jun 29, 2006 9:18 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Brade
Newbie
Newbie
Posts: 7
Joined: Mon Nov 07, 2005 5:00 am

height:420px="" width:680px=""

Post by Brade » Thu Jun 29, 2006 12:46 pm

Thanks. I have posted it with the same subject as this thread.

It is a Delphi 2006 project for ASP.Net

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jun 29, 2006 1:19 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Brade
Newbie
Newbie
Posts: 7
Joined: Mon Nov 07, 2005 5:00 am

Delphi 2006 project for ASP.Net

Post by Brade » Thu Jun 29, 2006 1:44 pm

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jun 29, 2006 2:03 pm

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>
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Brade
Newbie
Newbie
Posts: 7
Joined: Mon Nov 07, 2005 5:00 am

HTML is wrong

Post by Brade » Thu Jun 29, 2006 2:16 pm

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jun 29, 2006 2:20 pm

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?
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Brade
Newbie
Newbie
Posts: 7
Joined: Mon Nov 07, 2005 5:00 am

Post by Brade » Thu Jun 29, 2006 2:42 pm

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Jun 30, 2006 3:33 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Brade
Newbie
Newbie
Posts: 7
Joined: Mon Nov 07, 2005 5:00 am

Post by Brade » Fri Jun 30, 2006 3:56 pm

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?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Jul 03, 2006 3:17 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Brade
Newbie
Newbie
Posts: 7
Joined: Mon Nov 07, 2005 5:00 am

Post by Brade » Wed Jul 05, 2006 12:52 pm

Thanks.

Much appreciated. Is there any work around?

Can I monitor that bug number in some way (I have not looked yet).

Brad.

Marc
Site Admin
Site Admin
Posts: 1272
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Fri Jul 14, 2006 11:49 am

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
Steema Support

Post Reply