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
 QCChart2D and QCChart2D CF (VB and C#)
 How to print batch charts
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

pachart

15 Posts

Posted - 02 Feb 2004 :  12:55:50  Show Profile  Reply with Quote
I can print charts one by one. Each chart I have to click the print button one time since I need to draw the chart first on the form then print. I need to print batch charts. For example, I have 20 wells, each well has a chart to show the monthly oil, gas, and water production on the chart. The layout of the charts are the same while the data is different for each well. Is there a way to print the 20 charts by one click of print button?

quinncurtis

1164 Posts

Posted - 02 Feb 2004 :  14:00:19  Show Profile  Reply with Quote
Once you have called the printer setup routine through the ChartPrint.DoPrintDialog(), you should be able to set the ChartPrint.PrintChartView property for each ChartView object you want to print, followed by the ChartPrint.DocPrintPage method.

ChartPrint printobj;
ChartView []chartVuPages = {yourPage1, yourPage2, yourPage2,...};
.
.
.

for (int i=0; i < chartVuPages.Length; i++)
{
printobj.PrintChartView = chartVuPages[i];
printobj.DocPrintPage( sender, e);
}

Something like that should print all of the pages with out invoking any more dialogs.
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