I used code below to open crystalreportviewer.
I works fine at the same brower but not working in pop-up page.
At pop-up page it prompts for SQL server login name and password.
How solve this problem?
I tried it and add EnableDatabaseLogonPrompt=false in page_load but got an error:
Logon failed. Details: ADO Error Code: 0x Source: Microsoft OLE DB Provider for SQL Server Description: Login failed for user 'sa'. SQL State: 42000 Native Error: Error in File C:\DOCUME~1\FIN-SW~1\ASPNET\LOCALS~1\Temp\lab {C515EFC2-373D-4233-8F1C-3E1AD14DE971}.rpt:
Unable to connect: incorrect log on parameters
aspfun
Participant
1918 Points
1083 Posts
Crystalreportview in pop-up page
Apr 08, 2011 05:01 PM|LINK
I used code below to open crystalreportviewer.
I works fine at the same brower but not working in pop-up page.
At pop-up page it prompts for SQL server login name and password.
How solve this problem?
Dim rpt As New ReportDocument
rpt.Load(Server.MapPath(ReportName))
rpt.SetDatabaseLogon("sa", "password")
rpt.SetDataSource(myDataset.Tables(0))
bullpit
All-Star
21838 Points
4822 Posts
Re: Crystalreportview in pop-up page
Apr 08, 2011 07:10 PM|LINK
Is EnableDatabaseLogonPrompt set to false?
Max
Let Me Google That For You!
aspfun
Participant
1918 Points
1083 Posts
Re: Crystalreportview in pop-up page
Apr 11, 2011 03:52 PM|LINK
I tried it and add EnableDatabaseLogonPrompt=false in page_load but got an error:
Logon failed. Details: ADO Error Code: 0x Source: Microsoft OLE DB Provider for SQL Server Description: Login failed for user 'sa'. SQL State: 42000 Native Error: Error in File C:\DOCUME~1\FIN-SW~1\ASPNET\LOCALS~1\Temp\lab {C515EFC2-373D-4233-8F1C-3E1AD14DE971}.rpt: Unable to connect: incorrect log on parameters