How to pass parameter from vb.net to Crystal Report

R

Ray

Dear all,
How to pass parameter from vb.net to Crystal Report? I'm now using
ReportDocument and CrystalReportViewer. However, I don't know how to pass a
parameter to the report and print the parameter in the report. Please help.
Thanks a lot,
Ray
 
G

Guest

Ray,

You need to create the parameter on the report and then in code you set it
using someting like myReport.SetParameterValue("myParameter", "myValue"). You
can drag the parameter onto the report the same way you would an item from a
table.

Hope this helps.
Chris.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top