Jump to content
Software FX Community

SoftwareFX.ChartFX.Wrapper (Web Forms) - chart will not display properly


Recommended Posts

I need some help here....I can't find ANY documentation on this assembly whatsoever. The Getting Started Guide points you to the Programmer's Guide, which in turn has the same page located in the Getting Started Guide. that's problem # 1.

 Second problem, I basically figured out how to port my code to use the ChartFX 6.2 Wrapper classes on my own. The problem is, now the chart is not respecting the value placed in "HtmlTag" - no matter what I do, it attempts to render as a .NET control, and apparently that is not supported on IE7 because it doesn't work correctly at all.   I just want it to output images, but I can't seem to get that going with the Wrapper class....

 Can someone please help me with this?

 Thanks - dB

Link to comment
Share on other sites

An update on this - it does not have to do with the Wrapper class. I decided to experiment with upgrading the code to the ChartFX 7.0 object model, and had the same results - the .NET control shows up either in IE or Firefox with no image and the toolbar displayed in vertical format.

I have another suspicion as to cause - we do not use .NET 2.0 Web applications or projects in the application, only C# class libraries. While this model is still supported in .NET 2.0, I understand it's being phased out....so if there is no web application, just a bin directory and a web app under IIS, will ChartFX 7.0 still work?

Thanks - dB

Link to comment
Share on other sites

A few things:

1) The .NET control is supported in IE 7, but your .NET Framework Security Settings has to allow it. Set the Trust Level to at least Low for the zone to which your page belongs.

2) Firefox does NOT support .NET controls.

3) ASPX files are OK, you can't get interactive images (AJAX) though as this requires ASP.NET Callback infrastructure.

4) How are you checking that it is indeed the .NET control being generated? Create a simple ASPX page with a default chart in it and attach the HTML source (View Source from your browser) to your post.


Link to comment
Share on other sites

Well, the problem is not so much that the .NET control will not display properly....to be fair, I've never had any luck with that even when all the security settings suggested on the site have been set.   The problem is that the HtmlTag property is not being respected. I have been explicitly setting HtmlTag to "Image" and the control still tries to render it as .NET as if I'd set it to "Auto"....I am on the latest build of ChartFX 7.0 available.

Somewhat related question - we have some developers on ChartFX 7.0 full and some on DevStudio 7.0.   When installed by default, the bin directory for these two products have different paths, as follows :

Dev Studio : C:\Program Files\Chart FX DevStudio\Chart FX for Visual Studio\bin

full : C:\Program Files\Chart FX for Visual Studio\bin

...this means that project references for one product are guaranteed not to work with the other.   How are other developers getting around this?

Thanks - dB 

Link to comment
Share on other sites

You didn't answer my question:

4) How are you checking that it is indeed the .NET control being generated? Create a simple ASPX page with a default

chart in it and attach the HTML source (View Source from your browser) to your post.

> Somewhat related question - we have some developers on ChartFX 7.0 full and some on DevStudio 7.0.

The installation folder can be changed at the time of installation.

Link to comment
Share on other sites

Attached please find the HTML from a simple default chart output. I would think it should output as an image, yet it's a squashed-out looking version of the .NET control that I'm seeing.  

Also I had to set EmbeddedData="true" or I got a Windows permission box each time the page loaded.

Please advise.....

 Thanks - dB

 P.S. - here is the aspx code that created the attached HTML :

<%@ Page Language="c#" AutoEventWireup="false" %><%@ Register TagPrefix="ChartFX" Namespace="ChartFX.WebForms" Assembly="ChartFX.WebForms" %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" ><html xmlns="http://www.w3.org/1999/xhtml"><head><title></title></head><body><form id="Form1" runat=server><ChartFX:chart id="trendingChart" runat="server" EmbeddedData="True"><series><ChartFX:SeriesAttributes></ChartFX:SeriesAttributes><ChartFX:SeriesAttributes></ChartFX:SeriesAttributes><ChartFX:SeriesAttributes></ChartFX:SeriesAttributes></series></ChartFX:chart></form></body></html>

Link to comment
Share on other sites

There is NO .NET control here. Your page contains a chart image:

<img id="trendingChart" src="/chartfx70/pss/ChartFX.aspx?

EmbeddedData="true" can only be used when generating .NET Client Controls.

> I got a Windows permission box each time the page loaded

This is the root of the problem. Are you using Authentication in your application? If so, check out the following KB articles:

Q7621004. The Chart FX PSS Service in a nutshell
This article explains how the Chart FX PSS Service works and how it can be configured.
URL: http://support.softwarefx.com/ShowArticle.aspx?Type=KB&Product=CfxNet70&Source=http://support.softwarefx.com/kb/762/1/004.htm?_r=1

Q7621009. How to use Chart FX and Forms Authentication to secure your charts
In order to use Form Authentication with Chart FX using PSS, you need to configure your application and PSS so that they can share login information.
URL: http://support.softwarefx.com/Article.aspx?KBID=7621009&Product=CfxNet70&Embed=0&_r=1



Link to comment
Share on other sites

Frank -

Just as an update, I got it to work and I figured I would share for the benefit of the community and yourself...here is what I had to do to get ChartFX 7.0 operating correctly in my environment :

1.  I had both ChartFX for Visual Studio 2005 (Web Forms) and ChartFX for DevStudio 2005 installed on the same machine. Apparently, the two do not play nice with one another, because I uninstalled DevStudio and immediately saw a difference - the charts were still not working properly but at least I was getting an error message instead of the drawn-out chart I was seeing before. Side note - I now had to install ChartFX for VS 2005 (Windows Forms) to get other areas of the product to build, which promptly ate the PSS service registration, forcing me to re-install the Web Forms once again. You may want to either document this or report it to your installer team as a bug - as a workaround, install VS 2005 (Windows Forms) first, THEN VS 2005 (Web Forms) if both are going to be on the same server.

2.  I did not have ChartFX.WebForms.config in the /bin folder of my web application, this was problem # 1 with configuring the PSS service. I attempted to keep the PSS service and my application (which uses Forms authentication) separate, but was unsuccessful (the Windows permission box still appeared and the chart did not).   I ONLY got a chart to draw when the PSS service was explicitly made part of my application. To reproduce my actions, users should take the ChartFX.WebForms.config in Q7621004 and change the "ApplicationRoot" to their base app path (i.e. /BaseVirtualDirName) and place that in their app's /bin directory...then copy ChartFX.PSS.HttpHandler.dll into the /bin directory as well, and be sure to add the HttpHandler definition for the PSS service to their app's web.config.

3.  After the Chart rendered, there were still a ridiculous amount of squashed-out menus showing up above the chart, which only went away when I set "ContextMenus" to false.  Aren't these only supposed to show up when the RenderFormat is set to "Auto" or ".NET" ?   I had the RenderFormat set explicitly to "Image" and I was still seeing them. If they are always supposed to be there unless set to "false", why do they show up in non-collapsed form?

Thanks for your help thus far, let me know about the ContextMenus problem....  - dB

Link to comment
Share on other sites

1) I'm not quite sure why you were having this problems, however I imagine it would be very easy to mix them up. If you take the dlls from the right places you should be ok. We have done tests with this and have not discovered any problems. As for the WinForms/WebForms issue, you mentioned: "as a workaround, install VS 2005 (Windows Forms) first, THEN VS 2005 (Web Forms) if both are going to be on the same server.". Why would you want to install the WinForms version in a server?

2) I don't know why you couldn't make it work as separate apps, I followed the steps in the article and had no problems. However, the procedure you did to include it as part as your application is correct and equally effective as described in the article, so I wouldn't worry much about it.

3) These stuff you are seeing at the top of the chart is something that should be invisible but they are part of the interactive image functionality. There seems to be some problem with the page downloading the style sheets necessary for this to work. These style sheets are located inside ChartFX.WebForms.Dhtml.dll. Make sure that file is in your bin folder and has the correct version. If the problem persist, please create a brand new web application with just a chart in it and send us a repro case.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...