ywchan,
Add a Crystal Report to your project, set all of the properties as needed so
your report looks the way you want it. Then, add the following code:
private void Form1_Load(object sender, System.EventArgs e)
{
CrystalDecisions.CrystalReports.Engine.ReportClass x = new
CrystalReport1();
x.ExportToDisk(CrystalDecisions.Shared.ExportForma tType.PortableDocFormat,
@"C:\MyPDF.pdf");
}
Try this link for additional help...
http://support.businessobjects.com/c...ormsviewer.pdf
Anthony
"ywchan" <yw****@hkem.com> wrote in message
news:eQ**************@TK2MSFTNGP11.phx.gbl...
I want to automate the action of print a pdf file in a C# Application
How can I do this?
Thanks