Crystal ReportsGeneral 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
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
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.
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 ;)
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 ;)
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