Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WinForms VS2003 vs 2005
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Titre:
WinForms VS2003 vs 2005
Versions des environnements
Environment:
VB 9.0
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01352611
Message ID:
01352611
Vues:
61
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
Répondre
Fil
Voir

Click here to load this message in the networking platform