Exporting a report directly to a PDF file

  • Thread starter Thread starter DBM
  • Start date Start date
D

DBM

I am trying to export a report generated using Crystal Reports for .Net
directly to a PDF file without requiring any associated user interface. The
report does not directly query a database, but has an ADO dataset loaded
(there are also a couple of report parameters that get set during
configuration). I can get this to work if I display the report uisng a
report viewer control, but it fails if I don't. Can any body point me to
some examples that meet this need?

TIA

Brad
 
¤ I am trying to export a report generated using Crystal Reports for .Net
¤ directly to a PDF file without requiring any associated user interface. The
¤ report does not directly query a database, but has an ADO dataset loaded
¤ (there are also a couple of report parameters that get set during
¤ configuration). I can get this to work if I display the report uisng a
¤ report viewer control, but it fails if I don't. Can any body point me to
¤ some examples that meet this need?

See if the following helps:

http://www.codeproject.com/KB/vb/JatsArticle1.aspx


Paul
~~~~
Microsoft MVP (Visual Basic)
 
Paul,

I've actually implemented this almost exactly in my code. The error message
that I'm getting is :

CrystalDecisions.CrystalReports.Engine.ParameterFieldCurrentValueException:
Missing parameter values. ---> System.Runtime.InteropServices.COMException
(0x8004100E): Missing parameter values.

I've correctly loaded the parameters and the report is okay if I display it
using a report viewer control, but fails when I export. Any thoughts?

Thanks.

Brad
 
¤ I've actually implemented this almost exactly in my code. The error message
¤ that I'm getting is :
¤
¤ CrystalDecisions.CrystalReports.Engine.ParameterFieldCurrentValueException:
¤ Missing parameter values. ---> System.Runtime.InteropServices.COMException
¤ (0x8004100E): Missing parameter values.
¤
¤ I've correctly loaded the parameters and the report is okay if I display it
¤ using a report viewer control, but fails when I export. Any thoughts?
¤

Can you post the code you have?


Paul
~~~~
Microsoft MVP (Visual Basic)
 
Back
Top