How to display the parameter value on crystal report . NET

I am working on VB.Net and use crystal report viewer.
there are 2 parameters pass from the front field to crystal report-> run button->report will display as PDF file.
But now, the user want to see the parameter values on the report title. The 2 parameters are Start Date and End Date.

What I did is in crystal report design (in MS Visual Studio), just drag and drop the pameter fields to the report title like:  {?Start Date} and {?End Date}.
If I view the report in MS Visual Studio, it parameter value display fine. But when I go to web and refresh the page, the parameter value still does not show on the report (PDF). l

Did I missing anything?
FinghtingMiaoAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kodok_gorengCommented:
Is it after calling the report parameter values ¿¿already loaded?
This code may be helpful
This code is placed before rendering report
Dim VarReport As New Report
....
VarReport.SetParameterValue("StartDate", "Date Value") 
VarReport.SetParameterValue("End Date", "Date Value") 

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CodeCruiserCommented:
>If I view the report in MS Visual Studio, it parameter value display fine. But when I go to web and refresh the page, the parameter value still does not show on the report (PDF).

Is that after you replaced the old report with new one? And is that after exporting to PDF from the new report?
0
FinghtingMiaoAuthor Commented:
CodeCruiser:
Yes, exactly as what you said.
It happens after I saved the modified report, which you can say the new one replace the old one.
Yes, report will export to PDF, after export to PDF and display on the web, the parameters value gone!

Thank you
0
FinghtingMiaoAuthor Commented:
kodok_goreng:

I used the code  you provided: SetParameterValue.
The parameter value still not display in the report which exported to PDF.

Any idea?   So how we can pass the parameter value to crystal report and also can display in the Exported PDF format_report?

Thank you !!
0
FinghtingMiaoAuthor Commented:
Thank you.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.