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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

running reports from a VB application

Status
Not open for further replies.

thebigg

Programmer
Jul 11, 2001
1
US
hello,

i am writing an application and would like to run the reports from a VB form. i am looking for ideas, examples.

thanks,
steve
 


Hi,
I think this answer may help u.
There are two types of reports u can link with visual basic.
They are
1.Segate Crystal Reports(Latest version of crystal reports)
2.Data Reports (Shipped with visual basic 6.0)

For crystal reports:

Create reoports using crystal report designer tool.
In the visual basic add crystal report control(i.e crystl32.ocx) through projects menu components.

U can view the report from visual basic using the following code:
crystalreport1.reportfilename=app.path & "\reportfile.rpt"
crystalreport1.action=1.

For datareports:

After creationg the datareport u can just say:

datareport1.show

Thanking u
kavirk






 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top