Exporting a report directly to a PDF file

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
 
P

Paul Clement

¤ 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)
 
D

DBM

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
 
P

Paul Clement

¤ 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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top