hi,:)
I'm new to c#.net. i need ur help.
How to send the report file to the printer without showing the report file
i had tried with this code, but shows error.
string path = Application.StartupPath;
int index = path.LastIndexOf("\\bin");
path = path.Substring(0, index + 1);
Reports.PurchaseOrder _vendorPO = new PrjAccounts.Reports.PurchaseOrder();
_vendorPO.SetDataSource(_getDT);
ReportClass crReportDocument = new ReportClass();
crReportDocument.FileName = path + @"Reports\PurchaseOrder.rpt";
crReportDocument.PrintToPrinter(1, true, 1, 1);
//error in this line its not getting the filename properly
//error in file:c:\document\temp\PurchaseOrder.rpt
//:unable to connect: incorrect log on parameters.
Thanks in advance
N.Sheik Dawood