Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Cannot pass parameters in to crystal report

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.SetParameterValue("Printed By", printedby)

rd.SetParameterValue("frmLoc", fromLoc)

rd.SetParameterValue("toLoc", toLoc)


rd.PrintOptions.PrinterName = LaserPrinter

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

Former Member

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question