Link to home
Start Free TrialLog in
Avatar of imrancs
imrancsFlag for Pakistan

asked on

Export generates a PDF file of 0 KB

Hi Experts,

I am using Crystal Reports 9 (8.5 upgraded to 9) on Windows 2003 machine.

I am using the following code to export a report to PDF:

....

session("ExportOptions").DiskFileName = session("ExportFileName")

session("ExportOptions").FormatType = cint(ExportType)

session("ExportOptions").PDFExportAllPages = TRUE

session("ExportOptions").DestinationType = 1

On Error Resume Next

Session("oRpt").Export False

...

When the above code executes, a PDF file is generated wiht size of 0 KB. Same code is working fine on Windows 2000 Server.

Kindly advice how to get ride of this 0 KB file size problem ? This is urgent.


Regards,
Imran
ASKER CERTIFIED SOLUTION
Avatar of frodoman
frodoman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of imrancs

ASKER

frodoman,

Thanks for your suggestion. Although, I got my problem solved some other way i.e. running the IIS 6 in IIS 5 isolation mode, but your suggestion give me a way to debug dll permissions issues.

Thanks,
Imran