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

Crystal and VB6.0

Status
Not open for further replies.

LyallJ

MIS
Jul 18, 2001
124
US
Ok, I give up. I can't figure it out, yet. I have made a report in Crystal 8.5 with the fields from my MS Acess Database. I have inserted a crviewer onto my form. How do I get the crviewer to load my report???
 
1.- add a dsr with your crystal report and name it report
2.- add a crviewer to a form (give it some space)
3.- put this code in your form load event


private sub form_load()

crviewer1.reportsource= report
crviewer1.viewreport

end sub



source: rdc tutorial and getting started guide from crystal decision
 
running the risk of sounding like an idiot, what is a "dsr"
 
you go to project menu and then click in componenet and then click in designers (dsr) tab and choose crystal report.
and lcick ok.


now go to the project menu again and see that its a new line that says add crystal report, click it and you will be using the RDC (Report Designer Component) It is like a crystal report program within vb. you open your report or create a new report like you know how. named report. add a viewer (you need to add the component in project component and choose crystal report viewer and then click ok) from the toolbox choose the viewer and insert it in form1. leave the name as it is (crviewer1)

enlarge the viewer to all the screen (also and first the form enlarge too ).

add the code and voila.

you are runing your report from vb.

feel freely to ask any more question.
 
All I have in the designers tab is

Addin Class
Microsoft Forms 2.0 form

This is the last thing on this project and it is driving me nuts!!
 
i'm using crystal report 8.5 profesional and Visual Basic 6 from vb studio. what are you using?
 
Crystal Reports 8.5 Standard Ed. and VB 6.0 Enterprise Ed.
 
may be you need to download from crystal decision site the RDC (report designer component)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top