Data Connectivity
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Data Connectivity
Message Icon Topic: Stored Procedures Post Reply Post New Topic
Author Message
paulchatwin
Newbie
Newbie


Joined: 10 Aug 2010
Online Status: Offline
Posts: 1
Quote paulchatwin Replybullet Topic: Stored Procedures
    Posted: 10 Aug 2010 at 6:10am
Hi All
I design my reports using the CR XI application. When I do this I connect the data source to my SQL server and pick a stored procedure.
 
Then in VB.net I want to use some code to simply print the report using data from the stored procedure with out using the CR Viewer tool, so I do this:
 

cr.Load(Application.StartupPath & "\reports\" & reportFilename)

cr.DataSourceConnections.Item(0).SetConnection(serverName, dbName, True)

cr.SetParameterValue("@STARTDATE", Format(noww, "yyyy-MM-dd 00:00"))

but when it runs it shows a message saying missing parameter values.
 
Can someone tell me what im missing please?
 
Thank you in advance


Edited by paulchatwin - 10 Aug 2010 at 6:10am
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.