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 September 1st, 2006, 01:23 AM
Registered User
 
Join Date: Apr 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default interface between datagrid and crystal report

hello experts,

please tell me how to get crystal report without using data base. i have my data in the grid that i have added manually in my program.
how to make an interface between datagrid and crystal report.
thankz in advance
meenachi


 
Old September 10th, 2006, 11:47 PM
Registered User
 
Join Date: Sep 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Let's try to export data in datagrid to datatable manually then set datatable as datasource of crystalreport.
It may has optimize solution than this one but It's only a way i knowed.

 
Old September 10th, 2006, 11:58 PM
Registered User
 
Join Date: Apr 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

can you please send the code.
regards
meenachi

 
Old September 11th, 2006, 04:07 AM
Registered User
 
Join Date: Sep 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have never write this before so I write some pseudocode for you.
new datatable
For(int i =0;i<grid1.rows.count;i++)
{
datarow row1 = grid1.rows.[i];
new datarow = grid1.newrows;
for(int j=0;j<row1.cells.count;j++))
{
Getdata from cell and set to datarow
}
Add datarow to datatable
}
Wish these can help you ;)

 
Old September 11th, 2006, 04:24 AM
Registered User
 
Join Date: Apr 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

sorry. how will you transfer data in data grid to crystal report


 
Old September 11th, 2006, 05:01 AM
Registered User
 
Join Date: Sep 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

After you got datatable.
just pust its as datasource for reportdocument object then set reportdocument object as datasource for crystal report viewer.
For this solution just find in google for "ASP.net push model crystal report". It's easy to find a code for this part ;)

 
Old June 8th, 2007, 12:56 AM
Registered User
 
Join Date: Jun 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to arunmainthan
Default

hi meenachi,
               i've got the same problem.i've the data loaded in datagrids in all of my c# forms.now directly i've to print that using crystal report.send me the coding plz.

Regards
Arun



Quote:
quote:Originally posted by nmmeenaa
 hello experts,

please tell me how to get crystal report without using data base. i have my data in the grid that i have added manually in my program.
how to make an interface between datagrid and crystal report.
thankz in advance
meenachi







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
need help in crystal report NeedHelp Pro VB 6 0 September 8th, 2007 12:49 PM
VS 2002 Crystal Report opens Seagate crystal 8 tusis_1 Crystal Reports 0 May 12th, 2007 11:45 AM
how to show user interface data in crystal report sanjay_jadam Crystal Reports 1 May 26th, 2005 02:25 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.