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

publicvoid PageSetup(object sender, System.EventArgs e)

{

ChartView chartVu =this;

if (chartVu !=null)

{

if (printobj ==null)

{

printobj =new ChartPrint(chartVu);

}

else

printobj.PrintChartView = chartVu;

printobj.PageSetupItem(sender, e);

}

}

// This routine invokes the chart objects printer setup dialog method

publicvoid PrinterSetup(object sender, System.EventArgs e)

{

ChartView chartVu =this;

if (chartVu !=null)

{

if (printobj ==null)

{

printobj =new ChartPrint(chartVu);

}

else

printobj.PrintChartView = chartVu;

printobj.DoPrintDialog();

}

}

// This routine prints a chart by invoking the chart objects DocPrintPage method

publicvoid PrintPage(object sender, System.EventArgs e)

{

ChartView chartVu =this;

if (chartVu !=null)

{

if (printobj ==null)

{

printobj =new ChartPrint(chartVu);

printobj.DoPrintDialog();

}

else

printobj.PrintChartView = chartVu;

printobj.DocPrintPage( sender, e);

}

}

[3707 byte] By [OhioDale] at [2007-12-24]
# 1

I figured it out. IF anyone else is curious, here is the solution. Guess i should have read a little more before asking the question.

public void PrintPage(object sender, System.EventArgs e)

{

ChartView chartVu = this;

if (chartVu != null)

{

if (printobj == null)

{

printobj = new ChartPrint(chartVu);

printobj.PrintPageSettings.Landscape = true;

}

else

printobj.PrintPageSettings.Landscape = true;

printobj.PrintChartView = chartVu;

printobj.DocPrintPage( sender, e);

}

}

OhioDale at 2007-8-31 > top of Msdn Tech,Visual C#,Visual C# General...
# 2

Hi.
I′m using ASP script when I′m programming. How can I implant this script in html?

Andrebr at 2007-8-31 > top of Msdn Tech,Visual C#,Visual C# General...