I am doing a crystal report with printing. I have encountered on this problem:
try
{
PrintDialog print = new PrintDialog();
print.ShowDialog();
crystalReportViewer1.ReportSource = cr1;
crystalReportViewer1.PrintReport();
cr1.Refresh();
cr1.PrintToPrinter(1, true, 1, 1);
}
catch
{
//MessageBox.Show("Some error occured...", "Opozorilo", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
I got an error on last line of the code (print to printer).
What am I misisng here?