Home All Groups Group Topic Archive Search About

Empty crystal report

Author
10 Oct 2006 7:16 AM
W.Meints
Hello,

There's a problem with a crystal report I created that I can't seem to solve.
I created a report with two tables, a shipping order and shipping items on
it.

Designing is no problem, the wizard allows me to select the proper dataset
and the fields I want to show on the report. I formatted the report the way I
wanted it to look like.

The problem starts when I try to print the report, I use the following code
to create and print the report:

            PackageSlipReportDataSet ds = new PackageSlipReportDataSet();
            PackageSlipReportTableAdapter adapter = new
PackageSlipReportTableAdapter();
            PackageSlipItemTableAdapter adapter2 = new
PackageSlipItemTableAdapter();

            adapter.FillByPackageSlipNumber(ds.PackageSlipReport,
                frm.DataSet.PackageSlip[0].PackageSlipNumber);

            adapter2.FillByPackageSlipNumber(ds.PackageSlipItem,
                frm.DataSet.PackageSlip[0].PackageSlipNumber);

            PackageSlipReport report = new PackageSlipReport();
            report.SetDataSource(ds);

            report.PrintToPrinter(1, true, 0, 0);

The report is printed, but is empty. Can anyone tell me what this could be?
--
Best regards,

W.Meints

AddThis Social Bookmark Button