PC Review


Reply
Thread Tools Rate Thread

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

 
 
Bernie Yaeger
Guest
Posts: n/a
 
      15th May 2004
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


 
Reply With Quote
 
 
 
 
EricJ
Guest
Posts: n/a
 
      15th May 2004
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
Bernie Yaeger
Guest
Posts: n/a
 
      16th May 2004
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exporting a report with group to excel same as Crystal Report. Marjaneh Microsoft Access Reports 1 29th Dec 2007 06:14 AM
Parameters Fileds in Crystal report =?Utf-8?B?QmFkaXM=?= Microsoft ASP .NET 0 12th Apr 2007 01:32 PM
Passing parameters to Crystal report Karel Microsoft C# .NET 0 11th Mar 2005 12:48 PM
Crystal Report Parameters - Date =?Utf-8?B?TWF0dCBNYWNEb25hbGQ=?= Microsoft VB .NET 3 28th Apr 2004 11:07 PM
crystal report parameters lazar Microsoft Dot NET Framework Forms 0 5th Dec 2003 03:32 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:37 AM.