Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net
 SPC Control Chart Tools for .Net
 Headless rendering scroll position
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

rdc1997

USA
4 Posts

Posted - 06 Jan 2015 :  16:39:00  Show Profile  Reply with Quote
Good day,
I am in the process of evaluating SPC Control Chart Tools for .Net and have been stumped in an area. I wish to obtain an image of the chart shown on screen and have utilized the headless rendering approach described on page 396 of the Chart 2d manual. Everything has worked fine with respect to obtaining an image.

I've used the headless rendering approach so that I can control the size of the resulting image irrespective of the chart size shown on the screen.

What is stumping me is that if the control chart has more subgroups than fit on the screen, how can I control what is displayed on the generated image?

When a chart is on the screen the horz scroll bar can be used to programmaticly set the display. This doesn't seem to work with headless rendering (I assume because the control is not assigned to a form).

Thank you in advance for your assistance.

quinncurtis

1586 Posts

Posted - 07 Jan 2015 :  09:33:53  Show Profile  Reply with Quote
Easy to do. Enable the scrollbar as if the chart was to be displayed in a form. Then, after you have updated the chart with all of the data you plan to use, set the scrollbar Value property, for the staring index (the sample subgroup index) you want as the start of the data table, and plotted points, in the chart.

chartVu.EnableScrollBar = true;

SimulateData(chartVu);
// Calculate the SPC control limits for both graphs of the current SPC chart (X-Bar R)
chartVu.AutoCalculateControlLimits();
// Scale the y-axis of the X-Bar chart to display all data and control limits
chartVu.AutoScalePrimaryChartYRange();
// Scale the y-axis of the Range chart to display all data and control limits
chartVu.AutoScaleSecondaryChartYRange();
// Rebuild the chart using the current data and settings
chartVu.RebuildChartUsingCurrentData();

chartVu.HScrollBar1.Value = 40;

You can also get rid of the table, and display much more, or all, of chart data, in a single view, rather than just a window. See the example TimeVariableControlCharts.XBarRNoTable
Go to Top of Page

rdc1997

USA
4 Posts

Posted - 09 Jan 2015 :  04:39:59  Show Profile  Reply with Quote
Thank you for your response.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07