Skip to Content
avatar image
Former Member

populating crystal report viewer database logon prompt with code.

my current code only seems to be populating the user name field in crystal report viewer database logon prompt but the password field remains blank.

my code(vb.net) :

Dim view As New CrystalReport1

Dim username As String = "cdruser"

Dim password As String = "cdruser10"

View.SetDatabaseLogon(username, password)

Result:

login-prompt.png (15.2 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    May 24, 2017 at 10:38 PM

    You need to fill in the DB name as well. If it's required, Oracle does not use one.

    You also need to specify the Server Name when setting in code, it over writes all properties.

    If there are subreports then you also need to set the log on info for each also.

    Don

    Add comment
    10|10000 characters needed characters exceeded