|
-
November 5th, 2003, 01:30 AM
#1
Export report in vc
Hi all,
In my vc app i have some reports (developed in crystal report). There i gave option from where user can save the reports in xls format in the hard disk. But i want to supress the dialog boxes which comes during export. Following is my code
//////////
struct UXFXlsOptions xlsFormatOptions;
struct UXDDiskOptions DiskOptions;
struct PEExportOptions exportOptions;
DiskOptions.structSize = UXDDiskOptionsSize;
DiskOptions.fileName = "C:\\Quotation.xls";
xlsFormatOptions.structSize = UXFXlsOptionsSize;
xlsFormatOptions.bColumnHeadings = TRUE;
xlsFormatOptions.bUseConstColWidth = TRUE;
xlsFormatOptions.fConstColWidth = DEFAULT_COLUMN_WIDTH;
xlsFormatOptions.bTabularFormat = FALSE;
xlsFormatOptions.baseAreaType = PE_SECT_DETAIL;
xlsFormatOptions.baseAreaGroupNum = 1;
exportOptions.StructSize = PE_SIZEOF_EXPORT_OPTIONS;
lstrcpy(exportOptions.formatDLLName, "u2fxls.dll");
exportOptions.formatType = UXFXls5TypeExt;
exportOptions.formatOptions = &xlsFormatOptions;
lstrcpy(exportOptions.destinationDLLName, "u2ddisk.dll");
exportOptions.destinationType = UXDDiskType;
exportOptions.destinationOptions = &DiskOptions;
PEExportTo(job,&exportOptions);
///////////
This code is supposed to save the report in C: dirve as "Quotation.xls", but it's not saving.
Pls help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|