cancel
Showing results for 
Search instead for 
Did you mean: 

crystal report viewer Toolbar

Former Member
0 Kudos

I am developing reports on Crystal Reports XI R2, VS.NET 2005 , SQL Server 2000, C#.

When i run the report it generates the report fine but after a minute when I click on the toolbar either for print or export or drilldown or search or zoom or group tree or others i get a error

Database Logon Failed

Error in Crystal report viewer14

Object reference not set to an instance of an object

Any kind of help it is appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi sailaja ,

-Check that have you passed logon code.

-Is report working fine in designer?

-Search [here|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_ossnotes&query=&adv=true]

these are known issue you will get lots of notes.

-Have a look to these threads:

[]

-[]

Hope this helps !!

Regards,

Shweta

Edited by: Shweta Sharma on Sep 15, 2008 5:39 PM

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

If you are not using log on code than write this line of code after loading report.

rdoc.SetDatabaseLogon("UserID","Password");

Note- rdoc is a object of reportdocument

Hope this works

0 Kudos

Is this a Windows or a WEB app?

Are you setting logon info in code or using a report with saved data?