Skip to Content
0

populating crystal report viewer database logon prompt with code.

May 22, 2017 at 01:43 PM

65

avatar image

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)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Don Williams
May 24, 2017 at 10:38 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded