how to open crystal reports in vb?

I've written a database program in Vb6 and one of my form contains codes that will open up crystal reports, but it failed to work. I don't know really know what should I use in the form to open up the reports as well as the codes. Thanks

To open a report in Vb You need to open the a.rpt file of crystal report that you have created.

To open a report in VB
you have to place a crystal report control from the tool box onto the form.

Now to test you can assign the reportfilename property by selecting the .rpt file you have designed.

This is the code:
Put a command button and write this under its click event
crystalreport1.Reportfile="C:\report1.rpt"
cystalreport1.WindowState = crptMaximized crystalreport1.Destination = crptTowindow
crystalreport1.Action = 1

Thanks, it works just fine. I'm sure you wanna get more points. Can you please have a look at my other question I asked on the 9th. The topic is "refreshing problem with 2 child forms" I'll up the point if you could help me with it. Thanks again

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…

Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…