error in exported pdf file 
Author Message
 error in exported pdf file

hi all

i am writing a web application in asp.net which generates a report from Crystal Report and exports it to pdf. however, when i try to view the exported pdf file, it displays the following error: "An unrecognized token '0,05' was found". my code is as follows:

Dim crExportOptions As CrystalDecisions.Shared.ExportOptions
crExportOptions = crReportDocument.ExportOptions
crExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat

Dim OutputFile, OutputURL As String
OutputFile = Server.MapPath("..\output\adminletter.pdf")
OutputURL = "../output/adminletter.pdf"

If File.Exists(OutputFile) Then
    File.Delete(OutputFile)
End If

Dim crDiskFileDestinationOptions As New CrystalDecisions.Shared.DiskFileDestinationOptions()
crDiskFileDestinationOptions.DiskFileName = OutputFile

With crExportOptions
    .DestinationOptions = crDiskFileDestinationOptions
    .ExportDestinationType = CrystalDecisions.Shared.ExportDestinationType.DiskFile
End With

'Export the report
crReportDocument.Export()

the funny thing is, if i export the same report file to ms-word, it works perfectly.

any help would be very much appreciated :)

thanks!



Tue, 06 Dec 2005 17:56:59 GMT  
 error in exported pdf file

http://support.crystaldecisions.com/library/kbase/articles/c2012045.asp

BYE!!

  hi all

  i am writing a web application in asp.net which generates a report from crystal report and exports it to pdf. however, when i try to view the exported pdf file, it displays the following error: "An unrecognized token '0,05' was found". my code is as follows:

  Dim crExportOptions As CrystalDecisions.Shared.ExportOptions
  crExportOptions = crReportDocument.ExportOptions
  crExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat

  Dim OutputFile, OutputURL As String
  OutputFile = Server.MapPath("..\output\adminletter.pdf")
  OutputURL = "../output/adminletter.pdf"

  If File.Exists(OutputFile) Then
      File.Delete(OutputFile)
  End If

  Dim crDiskFileDestinationOptions As New CrystalDecisions.Shared.DiskFileDestinationOptions()
  crDiskFileDestinationOptions.DiskFileName = OutputFile

  With crExportOptions
      .DestinationOptions = crDiskFileDestinationOptions
      .ExportDestinationType = CrystalDecisions.Shared.ExportDestinationType.DiskFile
  End With

  'Export the report
  crReportDocument.Export()

  the funny thing is, if i export the same report file to ms-word, it works perfectly.

  any help would be very much appreciated :)

  thanks!



Sat, 10 Dec 2005 14:27:21 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. after pdf Export with Crystal - pdf File isn't able to use default Font

2. PDF export error in crystal 8.5 with windows 98

3. Error Exporting PDF

4. Export to PDF fail to export all Images in detail section (Only first image is displayed)

5. Export PDF doesn't works after RTF export (VB.NET)

6. Password Protecting Exported PDF files

7. Problems printing a PDF export file to HP Printer

8. Export to PDF leaving temporary files around

9. Problem exporting PDF Files with Crystal Report 8.5

10. Exporting multiple reports as on PDF file

11. Pictures Look Terrible in PDF file exported from CR report

12. Will Crystal v8 export to pdf files?

 

 
Powered by phpBB® Forum Software