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 & .Net Compact Framework
 SPC Control Chart Tools for .Net
 Buffering Image
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

swbo101

14 Posts

Posted - 09 Feb 2011 :  10:19:47  Show Profile  Reply with Quote
I see the documentation on how to buffer an image out to a file. I'd just like to know is there a way to do this WITHOUT having to display the image to the user at all. I am looking to use this tool in .Net with office automation. My goal is to create a front end where the use can select the graphs, along with any other parameters and then the image is generated so that it can be embedded in a Powerpoint presentation. I'd like to do this without the user having to have another window popup with the graph.

Thanks

quinncurtis

1164 Posts

Posted - 09 Feb 2011 :  11:10:24  Show Profile  Reply with Quote
A chart is only displayed when it is added to a form. If you don't want to see it, size it explicitly and do not add it to a form. Then you can print, or save it to a file, exactly as if it was displayed.

xBarRChart1 = new XBarRChart();
xBarRChart1.Size = new Size(1000, 800);

//tabPage1.Controls.Add(xBarRChart1);

In the QCChart2D manual you will see in Chapter 23 - File and Printer Rendering Classes, a discussion of "Headless Rendering of Charts".
Go to Top of Page

swbo101

14 Posts

Posted - 14 Feb 2011 :  10:45:41  Show Profile  Reply with Quote
Thanks....worked great!!!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07