Dundas Code Editor
Hi,
Does anyone know where i can find sample codes for the Dundas code editor to change the x-axis interval dynamically?
Thanks in advance
July 28th, 2010 4:51pm
Hi a1sabine8,
For a Dundas Chart issue, I would suggest you posting in
http://www.dundas.com. You may get more help about this vendor software about this question from the Dundas sites.
Anyway, below are the detailed steps for you to set the Interval dynamically:
1. Create a new report parameter with Interger or Float datatype.
2. Select the Dundas Chart from the report body(In designe mode).
3. Right-click on it, and then click "Properties..."
4. Go to "Advanced" tab.
5. Click "ViewCode".
6. Go to "Code Parameters" to define a code parameter. For example, we type "Intervalu" for the Name of a new code parameter, and the value for this code parameter must be =Parameters!theParametrCreatedInStep1.Value
7. Now, go to "Source Code" tab
8. Select event "PostInitialize" and C# code
9. Then type the following code:
chartObj.ChartAreas[0].AxisX.Interval = Convert.ToDouble(codeParams["Interval"]);
Note: The "Interval" in the codeParams is the name we defined before.
In order to change the axis Y's interval, please use this code: chartObj.ChartAreas[0].AxisY.Interval = Convert.ToDouble(codeParams["Interval"]);
10. Click "Compile" to compile the code.
11. Click "OK" to apply.
Now, we are able to change the interval of the asix X based on a report parameters.
If you have any more questions about SQL Server Reporting Services, please feel free to ask.
Thanks,
Jin ChenJin Chen - MSFT
Free Windows Admin Tool Kit Click here and download it now
July 30th, 2010 7:13am
Does any one know how to customize the enhanced viewer control in silverlight application? I don't need that panel which displayed all dashboard in the bottom of the application.
Can you anyone please share the source code for sample that provided in dundas intractive demo?
Thanks in advance
July 26th, 2011 6:22am


