Author Topic: [Tutorial] Creating custom gauges in ReportNet  (Read 2311 times)

Offline ReportNet Addict

  • Global Moderator
  • Statesman
  • *****
  • Posts: 831
  • Forum Citizenship: +61/-40
  • Creator of the Impact Suite
    • The Impact Suite
[Tutorial] Creating custom gauges in ReportNet
« on: 09 Oct 2005 11:26:37 am »
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;


Code: [Select]
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);
}

« Last Edit: 17 Oct 2005 10:37:06 am by ReportNet Addict »

Offline ReportNet Addict

  • Global Moderator
  • Statesman
  • *****
  • Posts: 831
  • Forum Citizenship: +61/-40
  • Creator of the Impact Suite
    • The Impact Suite
Re: [Tutorial] Creating custom gauges in ReportNet
« Reply #1 on: 10 Oct 2005 12:40:29 pm »
The templates are uploaded :D

Offline BIsrik

  • Statesman
  • ******
  • Posts: 473
  • Forum Citizenship: +12/-3
Re: [Tutorial] Creating custom gauges in ReportNet
« Reply #2 on: 10 Oct 2005 11:51:59 pm »
Superurb!!!

Srik

Offline jolly

  • Full Member
  • ***
  • Posts: 47
  • Forum Citizenship: +9/-0
Re: [Tutorial] Creating custom gauges in ReportNet
« Reply #3 on: 11 Oct 2005 03:38:21 am »
THX for sharing your tutorials. Great Job.

Cu Jolly

Offline Vialli26

  • Associate
  • **
  • Posts: 1
  • Forum Citizenship: +0/-0
Re: [Tutorial] Creating custom gauges in ReportNet
« Reply #4 on: 09 Jul 2007 09:00:13 pm »
The templates are uploaded :D

I can't download them :( throws an error message -> Page Cannot Be Found

Offline kpajak

  • Associate
  • **
  • Posts: 2
  • Forum Citizenship: +0/-0
Re: [Tutorial] Creating custom gauges in ReportNet
« Reply #5 on: 12 Jul 2007 09:38:23 am »
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

Offline johnpenna

  • Community Leader
  • *****
  • Posts: 75
  • Forum Citizenship: +5/-2
Re: [Tutorial] Creating custom gauges in ReportNet
« Reply #6 on: 21 Feb 2008 09:48:44 am »
Any chance of getting the template Zip file back please  ;D

Offline Harman

  • Associate
  • **
  • Posts: 1
  • Forum Citizenship: +0/-0
Re: [Tutorial] Creating custom gauges in ReportNet
« Reply #7 on: 14 Jul 2009 01:39:03 am »
Does anyone have a working copy of the templates?