hi,

when i run my report its asking for database login id and p/word. i have make a connection before it and everything goes well but i'm not sure why its come out with the login asking for id and p/word.
HELP !!1

Recommended Answers

All 8 Replies

Do you have a Username and Password defined for the database connection?

- Jordan

yes i already define the username and password. when i preview its working well but when i run the report its requesting for p/word. I have tried delete the crystal report and do it again with but its still happen the same.

have you given your username / password in the connection string?

- Jordan

i have already given username / password in the connection string and when i preview its working well but when i run the application its pop up a dialog box requesting for password. I not able to figure out whats goes wrong with the connection

Please tell us which method you have used to design a CrystalReport - push or pull.

You have "Pull" Design of a CrystalReport.

Use,

...
Dim objRpt As New CrystalReport1
objRpt.SetDataSource(ds)
objRpt.SetDatabaseLogon("username","password")
....

hi,

thank you, its working now

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.