Dear NG,
I have Crystal Reports working to a file and directly to the printer with
the following:
private void mnuInvRep1301_Click(object sender, System.EventArgs e)
{
ReportDocument report = new ReportDocument();
report.Load("C:\\database\\MCS-3-SQL\\MCS-3inC#\\INV\\Reports\\rpt1301.rpt")
;
//Send report to a file
//report.ExportToDisk(CrystalDecisions.Shared.Export FormatType.RichText,"C:\
\tmp\\CrystalOut.rtf");
//Send report directly to the default printer
report.PrintToPrinter(1, false, 0, 0);
MessageBox.Show("Crystal terminated normally");
}
I would like to use the Windows viewer. I have created Form1. I added the
ReportDocument to Form1. On a menu item click I would like to instantiate
the form to myForm and then use the form as follows:
myForm.ShowDialog();
How do I instantiate the form?
TIA - Bob (bo*@s-i-inc.com)