Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 12th, 2007, 06:24 AM
Registered User
Join Date: Jan 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Crystal Report Through StorecdProcedure ?


i am using Visual Studio .Net 2003 C#. I am facing a problem while show a report in reportviewer (Crystal Report Viewer).
I created a report R.rpt using stored procedure (SP).

Stored Procedure is like this:

    @uid int,
    @oid nvarchar(200),
    @uoid int,
    @STATUS int OUT,
    @reccnt int OUT


This will return a virtual table. My R.rpt is using this virtual table. My report is showing a result properly in crystal report. See my R.rpt report is showing 3 parameter fields (@uid, @oid, and @uoid).

I am calling this report via c# code, report viewer is listing no records (means i'm looking only titles on report).

I am passing all three parameters like this in my C# code:

    reportDocument = new ReportDocument();


    reportDocument.SetParameterValue("@uid", (int.Parse(uid)));
    reportDocument.SetParameterValue("@oid",(System.St ring)owise);
    reportDocument.SetParameterValue("@uoid", (int.Parse(uoid)));

    crrptviewer.ReportSource = reportDocument;

This will not showing any runtime error, but on report viewer i am not showing empty report. Why?

Please give me a suggestion how i can do to bring records?

It is urgent.

Thanx on advance.


Old August 9th, 2007, 12:14 PM
Registered User
Join Date: Aug 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

  I am also suffering same problem.... Did you recieve any reply?

Similar Threads
Thread Thread Starter Forum Replies Last Post
simple report and crystal report in vb.net saket123 .NET Framework 2.0 0 August 13th, 2008 06:55 AM
VS 2002 Crystal Report opens Seagate crystal 8 tusis_1 Crystal Reports 0 May 12th, 2007 11:45 AM
Crystal report help Samk Crystal Reports 2 October 13th, 2004 10:11 AM
Error While printing report (Crystal report) vikaspaweb Pro VB 6 0 March 8th, 2004 09:53 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.