FinghtingMiao
asked on
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?
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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
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
ASKER
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 !!
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 !!
ASKER
Thank you.
Is that after you replaced the old report with new one? And is that after exporting to PDF from the new report?