General discussion

Locked

Passing Password From VB to Crystal Rep

By jamil_akbar ·
Dear Sir,
I want to display my report from Visaul Basic if i use a single report then it works properly but when i use a sub report from same database it generates an error 'incorrect session perameter'. I think its because, i am not giving a password for the sub report i used in the main report. The syntex i used is

Dim PW as String
PW= "abcd"
With CrystalReport1
.ReportFileName = "C:\CS2\rptSalesInvoice.rpt"
.DataFiles(0) = "C:\CS2\DataBase.mdb"
.Password = Chr(10) & PW
.Action = 1
End With

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by JulianJ In reply to Passing Password From VB ...

If you only need to pass in the password as a string value, perhaps you can use a formula that is supressed in crystal report. That way, you can pass in any value that you want and it remains hidden.

Back to Web Development Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums