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 November 8th, 2004, 02:49 AM
Authorized User
 
Join Date: Sep 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to zouky
Default how to pass the data from dataset to CR?

dear expert

i write a stored procedure for fetching a particular field on my database which look like this:

USE moneylendersystem
go
CREATE PROCEDURE [dbo].[TOC_Branch_Address]
@BID VARCHAR (50)
as
select Branch_Address
from S_TOC_Branch S
where S.Branch_ID = @BID
GO

the application is like this: everytime the branch login, they will own their unique branch ID, then now i want to use the SP to fetch the address and pass the value print at my report header.

the problem i faced now is : how to pass the branch id using data adapter to my report (@BID)?

i using data adapter for this

daAddress.SelectCommand.CommandText = "TOC_Branch_Address" ;
daAddress.selectCommand.CommandType = CommandType.StoredProcedure;

so, i assume it will fetch my banch address according to @BID, so now how to move to the crystal report??

thank you






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to pass parameter value to CR SQL Command vijaykumartaduri BOOK: Professional Crystal Reports for VS.NET 3 July 31st, 2007 12:13 AM
Pass Date parameter from jsp to CR ray5 Crystal Reports 0 September 6th, 2005 09:23 PM
How to pass bulk data(dataset) between webpages jaisonkmathews ADO.NET 10 October 3rd, 2004 02:08 PM
How to pass bulk data(dataset) between webpages jaisonkmathews General .NET 4 September 17th, 2004 09:29 AM
How to pass multiple parameters to CR 9 syedjavid Crystal Reports 1 September 17th, 2003 05:50 AM





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