Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 1st, 2006, 01:23 AM
Registered User
 
Join Date: Apr 2006
Location: , , .
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


Reply With Quote
  #2 (permalink)  
Old September 10th, 2006, 11:47 PM
Registered User
 
Join Date: Sep 2006
Location: , , .
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.

Reply With Quote
  #3 (permalink)  
Old September 10th, 2006, 11:58 PM
Registered User
 
Join Date: Apr 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

can you please send the code.
regards
meenachi

Reply With Quote
  #4 (permalink)  
Old September 11th, 2006, 04:07 AM
Registered User
 
Join Date: Sep 2006
Location: , , .
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 ;)

Reply With Quote
  #5 (permalink)  
Old September 11th, 2006, 04:24 AM
Registered User
 
Join Date: Apr 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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


Reply With Quote
  #6 (permalink)  
Old September 11th, 2006, 05:01 AM
Registered User
 
Join Date: Sep 2006
Location: , , .
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 ;)

Reply With Quote
  #7 (permalink)  
Old June 8th, 2007, 12:56 AM
Registered User
 
Join Date: Jun 2007
Location: , , .
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


Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 12:56 PM.


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