Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Heap Corruption
Message
De
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:
01273669
Vues:
18
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);
>            }
>
>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform