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

  • Thread starter Thread starter Bernie Yaeger
  • Start date Start date
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
 
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
 
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
 
Back
Top