on 04-12-2016 5:10 PM
Hi,
Is the Browser blank or the Crystal reports viewer blank?
Regards,
Vinit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here is the code. It is 64-bit in both pc and web server
<CR:CrystalReportViewer ID="CRV1" runat="server" Height="50px" Width="350px" BorderColor="Silver"
BorderStyle="Solid" BorderWidth="1px" HasCrystalLogo="False" HasDrillUpButton="False"
HasExportButton="False" HasGotoPageButton="False" HasPrintButton="False" HasSearchButton="False"
HasToggleGroupTreeButton="False" HasViewList="False" HasZoomFactorList="False"
GroupTreeImagesFolderUrl="~/images/tree/" ToolbarImagesFolderUrl="~/images/crtoolbar/"
DisplayGroupTree="False" />
Dim rpt As New ReportDocument
rpt.Load(Server.MapPath("order.rpt"))
rpt.SetDatabaseLogon("sa", "password")
rpt.SetDataSource(myDataset.Tables(0))
rpt.Refresh()
That code looks like something I just published....
Datasets do not have user name and passwords.
Open the report and refresh the data and then save the report with Data, option in the File menu.
Comment out the code to set data info and just preview the report with saved data.
Does that work?
Is sa and password the real thing or did you just change it since this is a public site?
Don
LOTS of security changes in IIS on 2008 Server and above, comparing 2003 Server to 2012 is like comparing apples to beef.... still food just completely different.
Use Fiddler to see what the actual error is, likely does not have rights to the CRViewer folder or temp folder. Or appPool not set to correct platform, 32/64 bit, or a number of setting now required in IIS on 2012 server.
Make sure this folder is shared and IIS has full rights to it: C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319\crystalreportviewers13
Don
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.