cancel
Showing results for 
Search instead for 
Did you mean: 

pass parameters value to crystal report parameters

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

I responded to your other thread:

Please do not cross post. See the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]

Closing and locking this thread.

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)