crystal in .net - exporting to .pdf when a report has parameters

B

Bernie Yaeger

I'm working with Brian Bischof's excellent 'crystal reports .net
programming', but I'm having one problem: I can export to .pdf in code, no
problem, using the exporttodisk method, but there appears to be no way to do
this when there are parameters in the report. If anyone knows how to export
to .pdf in code when there are params, I'd sure appreciate some help.

Bernie Yaeger
 
E

EricJ

did you fill the parameters in your code?
ex
crReportDocument.Load(Application.StartupPath & "\Reports\" &
strBestandsNaam & ".rpt")

crReportDocument.SetParameterValue("VRTID", vrtID)

crReportDocument.SetParameterValue("UserID", User.UserIdLogged)

eric
 
B

Bernie Yaeger

Hi Eric,

Tx for your response. I think I've found the problem: I fill parameters in
the viewer object, but not in the doc object; if I fill them there, I think
that will solve it.

Thanks for you help.

Bernie
 

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