Hi all,
I've created a new tutorial on Creating Custom gauges in ReportNet.
http://www.jeroendegraaff.nl/tutorials
Beware: There's voice :-\
My thanks go out to Ed Worsfold from Dundas who provided me with some gauge templates.
I'll be sharing these templates with you too.
(Note: Cognoise administrator: can you enable .zip?? )
In order to download the component please visit:
http://www.dundas.com/products/gauge/index.aspx?Section=Gauge&Campaign=Cognoise.com
Don't forget to look at the gauges gallery..
There are some great looking gauges!!!
Please let me know what you think of the tutorial and what you think of the product I used.
(This is so I know I'm not doing this only for myself)
Here's the code that you can use:
This code uses 2 parameters: GaugeType and Value.
Parameter:
Ã, Ã, Ã, GaugeType: use to select the template that you want to use for your gauge;
Ã, Ã, Ã, Value: The value to display;
string strGaugeNumber = "1";
double dblValue = 0;
if (Request.Params["GaugeType"] !="" && Request.Params["GaugeType"] != null)
{
Ã, Ã, strGaugeNumber = Request.Params["GaugeType"];
}
if (Request.Params["Value"] != "" && Request.Params["Value"]!= null)
{
Ã, dblValue = Convert.ToDouble(Request.Params["Value"].Replace('.',','));
}
try
{
objGaugeContainer.Serializer.Load (@"http://localhost/GaugeCollection/GaugeTemplate"+strGaugeNumber+".xml");
}
catch
{
objGaugeContainer.Serializer.Load(@"http://localhost/GaugeCollection/GaugeTemplate1.xml");
}
objGaugeContainer.RenderType = RenderType.BinaryStreaming;
objGaugeContainer.CircularGauges[0].Pointers[0].Value = dblValue;
objGaugeContainer.Page = this;
HtmlTextWriter writer = new HtmlTextWriter(Page.Response.Output);
objGaugeContainer.RenderControl(writer);
}
The templates are uploaded :D
Superurb!!!
Srik
THX for sharing your tutorials. Great Job.
Cu Jolly
Quote from: ReportNet Addict on 10 Oct 2005 01:40:29 PM
The templates are uploaded :D
I can't download them :( throws an error message -> Page Cannot Be Found
Those tutorials are very nice, thanks. I noticed during the tutorials that your ReportNet installation runs really fast, at least compared with what I'm using. Would it be possible to find out some of the specs of the hardware and operating system that computer is running?
Thanks.
Ken
Any chance of getting the template Zip file back please ;D
Does anyone have a working copy of the templates?