Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Heap Corruption
Message
 
À
06/12/2007 13:10:39
Information générale
Forum:
ASP.NET
Catégorie:
Rapports
Titre:
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Divers
Thread ID:
01273618
Message ID:
01273672
Vues:
11
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform