Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to learn the PUSH method

Status
Not open for further replies.

sk8er1

Programmer
Jan 2, 2005
229
0
0
US
I am trying to learn how to create a report via the PUSH method. First I created a dataset and dragged it onto a form, then I created the report in Crystal using the fields from the dataset. Now, I know I need to write code to connect to the datasource and fill a dataset. Then I need to bind the report to a viewer.
Do I have it right, am I missing anything?

Thanks...If anyone has some sample code on how to do the PUSH method I would love to have it.
 
Hi sk8er1,
If u have designed report through field definition file
then u can push data following code.

Dim objRpt As New CrystalReport1 --ur report file
Dim objDB As CrystalDecisions.CrystalReports.Engine.Database
objDB = objRpt.Database
--repeat this for every table
objDB.Tables("tablename").SetDataSource(dataset("tablename"))
 
Were the samples posted in thread767-978714 not enough? Any specifics?

-dave
 
Thanks for the information. I will look into it.
 
I got it working....seems I needed the integrated security on the connection statement, that was causing the fill dataset command to fail. I finally got it....
I am not sure why one would do it this way...

Thanks for getting back to me

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top