[Last Call] Learn how to a build a cloud-first strategyRegister Now


Export generates a PDF file of 0 KB

Posted on 2007-10-08
Medium Priority
Last Modified: 2008-01-09
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.

Question by:imrancs
LVL 42

Accepted Solution

frodoman earned 1500 total points
ID: 20040316
Sounds like there is a permissions issue related to the export dll.  Since the pdf file is created but not completed I would guess it has to do with the export dll connecting back to the database.  In my experience with Win2003 I think this is likely do to Network Service identity not having access to a specific folder on your server.

I suggest you download the free MS filemon tool and run it while you execute this code so you can see where the permission is being denied.  Filemon is a standalone executable that doesn't install so you can run it to watch your server and then delete the .exe when you're finished with it.

LVL 10

Author Comment

ID: 20062597

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.


Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question