cancel
Showing results for 
Search instead for 
Did you mean: 

pass parameters from vb.net to crystal report

Former Member
0 Kudos

Dear all,

I am using below code. But find it does not work??

Dim rd As New ReportDocument

rd.Load(Path + "\Reports\StockTakeException.rpt")

rd.SetDataSource(ds)

rd.SetParameterValue("Printed By", printedby)

rd.SetParameterValue("frmLoc", fromLoc)

rd.SetParameterValue("toLoc", toLoc)

rd.Refresh()

rd.PrintOptions.PrinterName = LaserPrinter

rd.PrintToPrinter(1, False, 0, 0) // throw exception here : Missing Parameters

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

Thread moved to the .NET - SAP Crystal Reports forum.

What version of CR?

What Service Packs for CR have been applied?

What version of .NET?

Web, win app?

On your development computer or after you deploy?

Do the parameters work in the CR designer?

Do the parameters work if you do not code for them and let CR prompt?

Have you searched these forums for possible solutions?

Have you use the search box at the top right corner of this web page to search for KBases, blogs, wikis, articles samples, etc., etc?

Ludek

Follow us on Twitter http://twitter.com/SAPCRNetSup

Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Answers (0)