Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: subreports in vb.net using crystal reports Post Reply Post New Topic
Author Message
she0589
Newbie
Newbie
Avatar

Joined: 26 May 2012
Location: Mauritius
Online Status: Offline
Posts: 1
Quote she0589 Replybullet Topic: subreports in vb.net using crystal reports
    Posted: 26 May 2012 at 7:17pm
Hello all,

i need your help to create crystal reports in vb.net. I am using vb.net 2008 and mysqlclient. I know how to do the connection and generate a report but still i am having a bug when i add to a datatable like

dim dt as datatable
for each dr in datagridview...
dt.Rows.add(...)---confused what to write in there.

I am pretty much new to crystal reports, so very little knowledge. So the data is not displayed from the database to my report.
Now, i need to include subreports. I have looked everywhere for help but finally i was redirected over here.
I wish to obtain some hell
Thanks guys.
I will appreciate any help from you.


sheetal
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 30 May 2012 at 6:36am
dim dr1 dataRow
for each dr in datagridview
  dr1 = dt.newrow
  dr1("field1") = dr("field1")
  dt.Rows.add(dr1)
next
 
 
as for the subreport, if you are pushing the data to the main report, and you create your subreport with the same dataset, just pushing the data to the main report is all that I have done.
 
as a note, write your dataset as xml with the data and the schema...it really helps in laying out your report.
 
HTH
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.