Are there more concrete instructions for using the UltraGauge control with Sharepoint 2007?
Specifically, I'm trying to create and deploy a web part that utilizes the UltraGauge control.
My project is a web part built from Visual Studio 2008 and NetAdvantage 2008. I descended from WebParts.WebPart and used the code found in the Building WebParts with NetAdvantage for ASP.NET document.
For deployment, I did a complete install of NetAdvantage onto my test server. Further, I gac'd the assembly I created.
The error I receive is:
Unable to find directory c:\inetpub\wwwroot\wss\VirtualDirectories\80\vic\Test2\GaugeImages. Please ensure that this folder exists so that gauge images can be saved there. To change the folder's location, use the DeploymentScenario.FilePath property.
If I change the DeploymentScenario.Mode to Session, then I no longer receive an error however, I get a nice red x instead of a gauge.
Ideas?
Thanks,
Hi,
Do you have an GaugeImage.aspx? From the help file:http://help.infragistics.com/Help/NetAdvantage/NET/2008.1/CLR2.0/html/Gauge_Session_Deployment.html
Before running an application that has a WebGauge™ control, the deployment scenario must be set up and configured.
To enable Session State image deployment:
Hi Andrew,
Thanks. That fixed the broken image problem, but apparently implementing the gauge control in a webpart is going to take a tremendous amount of code. It looks like I would have to hand code the setting of every property instead of doing drag and drop. Oh well.
Chris.
May I recommend Jan Tielens' SmartPart? Much the simplest approach for deploying standard controls in a SharePoint environment - we have dozens of controls that we develop using the designers in VS2005 and VS2008, and drop into SharePoint via SmartPart, and I've pretty much given up developing "pure" web parts.
Thank you Melandra,
The SmartPart looks like a good solution. I'll try it out on the next project.
For now I decided to forgo the whole webpart path. Instead, I have the controls gac'd and listed as Safe on the server. I used Sharepoint Designer 2007 to drop them directly onto a page surface. Then I wrote a very simple DataboundControl which takes information from a datasource and plugs it into the value of the associated gauge.
This gives me drag / drop and databinding.