|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
crystal report export functionHi, 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, 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,
Other interesting topics
System.Reflection
How to dynamically load strong name assemblies Strong Typing of Primitive Types Events & Delegates streamreader halt Process.Start - The requested lookup key was not found in any active activation context. Checking whether "SomeString" is Directory or File... simple confirmation on XML comments ... Guru Challenge Request re Dynamic Scripts from Server Challenge/Question for Dynamic (server created) Scripting Gurus |
|||||||||||||||||||||||