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 March 10th, 2009, 10:52 AM
Registered User
 
Join Date: Mar 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to pass parameters programtically

Hi friends,

Can anyone help me in passing parameter value to report using c#.

User selects the values from the listbox, so i need to pass the array of values of docid to the report.

my query is:

select dr.todocumentid, d.description, d.documentkey, dr.fromdocumentid, d1.description, d1.documentkey from (select document_documentid, fromdocumentid,todocumentid from document_document where todocumentid in (" + @docid + ") union select document_documentid ,todocumentid , fromdocumentid from document_document where fromdocumentid in (" + @docid + ")) dr inner join document as d on dr.todocumentid = d.documentid inner join document d1 on d1.documentid = dr.fromdocumentid order by dr.todocumentid

Thanks.






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Pass parameters from JSP to ASP mrdesai Classic ASP Professional 2 June 17th, 2005 04:54 AM
to pass parameters rashmid HTML Code Clinic 1 May 30th, 2005 11:10 PM
How to pass parameters from a multiselect listbox Jeff1218 Classic ASP Databases 3 February 14th, 2005 03:39 PM
how to pass arrays as parameters ??? mrrgupta JSP Basics 2 October 23rd, 2004 06:50 PM
cannot pass parameters between forms deerebuck BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 3 February 15th, 2004 05:12 PM





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