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

vb3 using cr2 - incorrect session parameters error

Status
Not open for further replies.

Gra83

Programmer
Aug 21, 2002
3
GB
I have a problem with a VB3 Application trying to print a report using the Crystal Reports component(version 2)
The code was in vb4, but has had to be coverted to vb3.
(Main change was changing declerations of dataset to dynaset)
Here is the bit of code I'm using, where rptName is the Crystal Reports component.

frm_PolInvest.rptName.Destination = 1
**frm_PolInvest.rptName.Action = 1 **

The data is held in an access database(either v1 or 1.1),and is giving me an "Unable to Connect:Incorrect Session Parameters" error at the line asterisked above.

Any help would be greatly appreciated as I've been banging my head off the wall for the last few days with this!
 
A predictable response!

It is a small application that doesn't merit the development time to upgrade it. It has to go onto a new platform.

If anyone has come across this problem before, please let me know what it means and how you dealt with it.

Is there somewhere I can find out this methods available to use on the crystal object?
 
Had a thought yesterday that it might be something to do with the format of the dates being passed from a data file to the app, to the database and the report.
The app trimmed the first couple of digits from the year so it was in dd/mm/yy format. Changed this and the corresponding format in the report itself.

Now when I try to print, at the same line of code it was failing on before, it opens a Microsoft Access Open Session box, with a prompt for user id and password. The user id is pre-filled with "Admin", which is the owner of the Access table I'm interested in on the database. I've tried the usual passwords, but can't get past this.

When I run the app, then look at the database, it has extracted the info from the data file ok. Also, on opening the .rpt file after this, the report appears ok.

Does any of the access stuff mean anything to anyone? Any idea why I would be getting asked for user id/password?


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top