Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use export function or code export displace?
Message
De
14/04/2011 03:31:58
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Rapports
Titre:
Use export function or code export displace?
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01507244
Message ID:
01507244
Vues:
89
Hi all ,
I use crystal report make a report layout, onclick in screen is ok .....But i use bult-in fuction Export Report to excel...
The excel layout format, some of words displace , do not same to screen....
And then i have button , i use to directly output excel, but the format is Worse than bult-in fuction Export , and displace and ugly,
no resize the column width.
Anyone how can i do , i already correct the crystal report more time but not ok ?
 Dim CrExportOptions As ExportOptions
                Dim CrDiskFileDestinationOptions As New  _
               DiskFileDestinationOptions()
                Dim CrFormatTypeOptions As New ExcelFormatOptions
                CrDiskFileDestinationOptions.DiskFileName = exportExcelPath
                CrExportOptions = crReport.ExportOptions
                With CrExportOptions
                    .ExportDestinationType = ExportDestinationType.DiskFile
                    .ExportFormatType = ExportFormatType.Excel
                    .DestinationOptions = CrDiskFileDestinationOptions
                    .FormatOptions = CrFormatTypeOptions
                End With
                crReport.Export()
Répondre
Fil
Voir

Click here to load this message in the networking platform