Hi,
there is a dataset in my application. I add a column of this
dataset in my crystal report.
I start the program and I will print this report. I get this error message by click the button:
"Unable to connect: invalid log on paramter"
The error is in line:
oRpt.PrintOptions.PrinterName = @"\\PRINTER";
oRpt.PrintOptions.PaperSource = PaperSource.Auto;
oRpt.PrintOptions.PaperSize = PaperSize.PaperA4;
ReportDocument crReportDocument = new ReportDocument();
// this is the report with the dataset column
crReportDocument.Load("C:\\header.rpt"
// this is the error-line
crReportDocument.PrintToPrinter(1, true, 1, 1);
// print another report
oRpt.PrintToPrinter(1,true,1,1);
What can I do?
There exists a database connection.
Thank, Stephanie
there is a dataset in my application. I add a column of this
dataset in my crystal report.
I start the program and I will print this report. I get this error message by click the button:
"Unable to connect: invalid log on paramter"
The error is in line:
oRpt.PrintOptions.PrinterName = @"\\PRINTER";
oRpt.PrintOptions.PaperSource = PaperSource.Auto;
oRpt.PrintOptions.PaperSize = PaperSize.PaperA4;
ReportDocument crReportDocument = new ReportDocument();
// this is the report with the dataset column
crReportDocument.Load("C:\\header.rpt"
// this is the error-line
crReportDocument.PrintToPrinter(1, true, 1, 1);
// print another report
oRpt.PrintToPrinter(1,true,1,1);
What can I do?
There exists a database connection.
Thank, Stephanie