By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,607 Members | 1,815 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,607 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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

"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:uQ**************@TK2MSFTNGP10.phx.gbl...
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

Nov 20 '05 #2

P: n/a
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

"EricJ" <er********@ThiSbitconsult.be.RE> wrote in message
news:uA**************@TK2MSFTNGP12.phx.gbl...
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

"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:uQ**************@TK2MSFTNGP10.phx.gbl...
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


Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.