on 05-27-2011 8:17 AM
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
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]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.