Author |
Topic  |
|
pachart
15 Posts |
Posted - 02 Feb 2004 : 12:55:50
|
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
|
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.
|
 |
|
|
Topic  |
|
|
|