Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Heap Corruption
Message
General information
Forum:
ASP.NET
Category:
Reporting
Title:
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01273618
Message ID:
01273672
Views:
12
Just a form with a CrystalReportViewer on it...

I just added the following lines to the tail-end of what I posted earlier and it seems to be fine now.
report.Close();
report.Dispose();
Crystal Reports and me have never gotten along...

Thanks,

Richard

>Where does FormPrintPreview come from?
>
>>Yes...
>>
>>Just to be on the safe side (In case, I forgot/missed something), here's the code that creates the report and prints/previews it:
>>
>>MatchingWorksheet is a CrystalReport.
>>
>>
>>            MatchingWorksheet report = new MatchingWorksheet();
>>            report.SetDataSource(this.Data);
>>
>>            if(isPreview)
>>            {
>>                reportForm.Hide();
>>
>>                FormPrintPreview fpp = new FormPrintPreview(report);
>>
>>                fpp.ShowDialog(reportForm.Owner);
>>
>>                reportForm.Visible = true;
>>
>>            }
>>            else
>>            {
>>                report.PrintOptions.PrinterName = reportForm.PrinterName;
>>                report.PrintToPrinter(reportForm.Copies,
>>                                        true,
>>                                        reportForm.PrintRange.FromPage,
>>                                        reportForm.PrintRange.ToPage);
>>            }
>>
>>
State of Florida, DCF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform