Home All Groups Group Topic Archive Search About

crystal report export function

Author
10 Mar 2005 7:37 PM
Jasmine
Hi, I try to generate a "pdf" file in my local direction using following code
  "  ExportOptions expOptions = new ExportOptions();
            expOptions = crReportDocument.ExportOptions;
            expOptions.ExportDestinationType = ExportDestinationType.DiskFile;
            expOptions.ExportFormatType = ExportFormatType.PortableDocFormat;
            DiskFileDestinationOptions diskOptions = new DiskFileDestinationOptions();
            diskOptions.DiskFileName = dir + "\\" + filename;
            expOptions.DestinationOptions = diskOptions;
            crReportDocument.Export();         "

It worked fine before, but suddenly, there is no file generated after
calling crReportDocument.Export(); The piece of code works fine on my other
PC, could anyone tell me how could I fix it. browser? or any other configure
issue?

Thanks,
Author
8 Jun 2005 5:02 PM
Sean
Jasmine,
Were you able to solve this problem.  I'm experiencing something very
similar.  On my Development server everything is fine, but on my Test server
the export function doesn't produce the file.  I checked the permissions and
I opened up the permissions to everyone, system etc.  Like your situtation
this was working a week ago. 

If anyone has any ideas please let me know.
Thanks
Sean

Show quoteHide quote
"Jasmine" wrote:

> Hi, I try to generate a "pdf" file in my local direction using following code
>   "  ExportOptions expOptions = new ExportOptions();
>             expOptions = crReportDocument.ExportOptions;
>             expOptions.ExportDestinationType = ExportDestinationType.DiskFile;
>             expOptions.ExportFormatType = ExportFormatType.PortableDocFormat;
>             DiskFileDestinationOptions diskOptions = new DiskFileDestinationOptions();
>             diskOptions.DiskFileName = dir + "\\" + filename;
>             expOptions.DestinationOptions = diskOptions;
>             crReportDocument.Export();         "
>
> It worked fine before, but suddenly, there is no file generated after
> calling crReportDocument.Export(); The piece of code works fine on my other
> PC, could anyone tell me how could I fix it. browser? or any other configure
> issue?
>
> Thanks,

Bookmark and Share