Crystal reports - prompts me for parameter fields then no report shows up

The code below is for a crystal report control to display the report to screen.
All that happens is that the report prompts me for parameter fields then no report shows up.

CrystalReport1.ReportFileName = App.Path & "\reports\MuliAutoShip.rpt"
CrystalReport1.Destination = 1
CrystalReport1.PrintReport

Haven't done VB6 in a while, any ideas on why this is doing this?  thanks
LVL 16
MikeMCSDAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
superg65Connect With a Mentor Commented:
Hi

I use CR8.5 but I'm sure most of the options will be the same.

Did you create the report yourself or copy it from somewhere else? Might pay to make a back-up copy of the report before you delete the parameter field just in case it affects something else (like a formula that uses the parameter maybe?) and you need to go back to the previous version.

If you are running CR standalone; go to the INSERT menu at the top.
Choose FIELD OBJECT which brings up the field explorer box choose the PARAMETER FIELDS option in the tree - you should see all the parameter field(s) in your report - click on the one you want to delete, press Delete key (or right click for the context menu)  and then you will be prompted to confirm delete.

If you are running CR inside the windows IDE as a designer - the report form will have the fields listed down the left hand side of the form and you do the same deletion as there.

Good luck
Graeme

0
 
superg65Commented:
Hi

Do you enter anything for the parameter request?  If you enter nothing then the report probably selects no data to display and so shows no report.  Do you need the parameter field in the report?

Cheers
G

0
 
MikeMCSDAuthor Commented:
thanks super,
I don't need the parameter . . how do I get rid of it?
0
 
superg65Commented:
OOPS - the last paragraph I meant if you are running CR inside the VB IDE not Windows - doh! Trout slap!

;)
0
All Courses

From novice to tech pro — start learning today.