I got frustrated with the limitations of the Crystal Reports that came bundled with VB6 (v4 something), so I just bought CR XI Developer. I have designed several forms I wish to display from VB6 but keep running into errors when I try.

Under Project/components/designers I do have the CRXI checked. I added a new report from the project drop but did not have it placed on a discrete form. This created a CrystalReport1.dsr file which points to the correct report.

I wish for the user to press a command button on another form and have this report previewed. I'm trying the following code for that command button:

Dim CrystalReport1 As CrystalReport1

With CrystalReport1
.ReportFileName = App.Path & "\standings.rpt"
.Action = 1
End With

This results in the error "method or data member not found" for the .reportfilename. When creating the code, there is no ReportFileName in the list nor do I find .action as a possible choice either. Nothing else I've tried gets me anywhere.

How can I get VB6 to display 1 simple report? I'll worry about passing sql once I can understand how to display a report. Sigh ... always something, isn't it?

Thanks,
Ken