Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Microsoft .Net
 SPC Control Chart Tools for .Net
 Headless rendering scroll position

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
rdc1997 Posted - 06 Jan 2015 : 16:39:00
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.
2   L A T E S T    R E P L I E S    (Newest First)
rdc1997 Posted - 09 Jan 2015 : 04:39:59
Thank you for your response.
quinncurtis Posted - 07 Jan 2015 : 09:33:53
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

Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07