StoredProcedure

StoredProcedure

Forum member · Jul 23, 2007
Hi to all! I'm quit new with ReportWriter, but it seem to fill my needs for reporting. I made and report with DynamicPDF Designer and it work perfectly. Now, I try to use it from C#. It works fine until I try to change ConnectionString and three StoredProcedure parameters from code. I search thru Forums, and I found some samples, but I can not make it work. So, could someone pass an "full" samplecode how to do it? (My code is normal Form based program, not Web). Thanks in advance! /murjan

Re: StoredProcedure

Support · Jul 23, 2007
Hello Murjan, Can you please let us know what error messages are you getting when trying to change the connection string or change stored procedure parameters? Thanks, ceTe Software Support Team

Re: StoredProcedure

Forum member · Jul 23, 2007
Hi, Right now I can change connectionString, but when I try to read StoredProcedure parametrs with this: string queryValue = Request.QueryString["StartTime"].ToString(); I get "Error 3 The name 'Request' does not exist in the current context" When I try to pass values to StoredProcedure I get this error: Procedure 'MyProcedure' expects parameter '@StartTime', which was not supplied. I guess I miss something... /murjan

Re: StoredProcedure

Support · Jul 23, 2007
Hello Murjan, This error normally occurs when you are trying to access a property of the Request object and you are not doing that from a web form or a class that inherits from System.Web.UI. The second error message indicates that the stored procedure needs a parameter which has not been supplied to execute it. Thanks, ceTe Software Support Team