Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WinForms VS2003 vs 2005
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Forms
Title:
WinForms VS2003 vs 2005
Environment versions
Environment:
VB 9.0
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01352611
Message ID:
01352611
Views:
62
Hi All,

The following code runs fine in VS2003 but after the upgrade to VS2005 fails:
 objReport.Load(System.AppDomain.CurrentDomain.BaseDirectory + "rptExcessiveInv.rpt")

                objReport.Database.Tables(0).ApplyLogOnInfo(ConInfo)

                paraValue.Value = RTrim((CType(cmbBuyer.Items.Item(cmbBuyer.SelectedIndex), ValueDescriptionPair).oValue))
                currValue = objReport.DataDefinition.ParameterFields(0).CurrentValues
                currValue.Add(paraValue)
                objReport.DataDefinition.ParameterFields(0).ApplyCurrentValues(currValue)

                rptReportsViewer.ReportSource = Nothing

                rptReportsViewer.ReportSource = objReport

                'Show the report
                rptReportsViewer.Show()
The error message is:
"Procedure or function 'RptExcessInv' expects parameter @Buyer which was not supplied"

I was able to confirm it using SQL Profiler :

VS2003 - exec "DS1"."dbo"."RptExcessInv";1 'All'
VS2005 - exec "RptExcessInv";1


Thank you,
Daniel
Reply
Map
View

Click here to load this message in the networking platform