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 December 22nd, 2007, 05:48 AM
Registered User
 
Join Date: Dec 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Adding fields to the crystal report

Hi to all,

I am using crystal report in my Windows Application. Here i have created dataset to fill data in to it, but for that i have to manually configure the Database and fields from the solution... Is there any way to pass these values programatically.... please help me.

 
Old December 22nd, 2007, 08:04 AM
Registered User
 
Join Date: Jun 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to dineshkrishna108 Send a message via Yahoo to dineshkrishna108
Default

You have to create parameter fields in the report at design time and pass values to them at run time from the form to the report.

Hope u get some clue from this...
Regards
dinesh
Klient Informatics
India


m.dinesh
 
Old January 3rd, 2008, 09:35 AM
Authorized User
 
Join Date: Dec 2007
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to pannasn
Default

Hi,

if u created a dataset, then open the dataset designer and add a new query to the tableadapter of ur dataset such as,
      select field1,field2 from tablename.
then,
      tableadapter.query(dataset.tablename);
      crystalreport1.setdatasource(dataset);

If i m getting ur problem correctly, then it will definitely help you.



Regards
Panna
Digital Horizons
India





Similar Threads
Thread Thread Starter Forum Replies Last Post
Refresh database fields in crystal report designed tanusree_ghosh Crystal Reports 1 September 12th, 2011 12:08 PM
how to merge crystal report fields in word doc amipen35 Classic ASP Basics 0 July 19th, 2006 10:47 AM
dynamic adding image to crystal report ywchan Crystal Reports 3 February 16th, 2005 09:48 AM





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