Passing Password From VB to Crystal Rep - TechRepublic
General discussion
October 5, 2004 at 08:03 AM
jamil_akbar

Passing Password From VB to Crystal Rep

by jamil_akbar . Updated 21 years, 7 months ago

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 discussion is locked

All Comments