automatically changing layout to landscape and printing
I know this has probably been answered, but i havent found it. I am writing an application that will recieve a byte array of data points. This data is graphed using a quinn curtis library. i have created a menu that will allow the user to manually set print options, page setup, print, etc..... I also need my app. to change the layout to landscape and print my graph when the user isnt at their desk. How can i set it up to automatically print a landscape picture? Thanks for your help!
current page setup, print setup, and print methods (taken from quinn curtis sample code):
// This routine invokes the chart objects PageSetupItem method
public
void PageSetup(object sender, System.EventArgs e){
ChartView chartVu =
this;if (chartVu !=null){
if (printobj ==null){
printobj =
new ChartPrint(chartVu);}
elseprintobj.PrintChartView = chartVu;
printobj.PageSetupItem(sender, e);
}
}
// This routine invokes the chart objects printer setup dialog methodpublicvoid PrinterSetup(object sender, System.EventArgs e){
ChartView chartVu =
this;if (chartVu !=null){
if (printobj ==null){
printobj =
new ChartPrint(chartVu);}
elseprintobj.PrintChartView = chartVu;
printobj.DoPrintDialog();
}
}
// This routine prints a chart by invoking the chart objects DocPrintPage methodpublicvoid PrintPage(object sender, System.EventArgs e){
ChartView chartVu =
this;if (chartVu !=null){
if (printobj ==null){
printobj =
new ChartPrint(chartVu);printobj.DoPrintDialog();
}
elseprintobj.PrintChartView = chartVu;
printobj.DocPrintPage( sender, e);
}
}

