I am trying to print crystal report in PDF format , and on my local machine it’s working fine. But when I publish application to the server, it’s giving me error. I am using VS2015 , SQl Server 2016, IIS 10 and CR version 13.0.17.2096
Anyone please help me.enter image description here
Check if SQL Server Client in your server is the same as in your rpt file.
On Server open SQL Server Configuration Manager
Open the .rpt and check if the client used is equal the server client 10.
If SQL Client is diferent create the new connection in your .rpt.
Related
I'm new to crystal reports and have been having an issue. The report is able to print properly on my system and on their host server however they have another server where everyone connects in through in and whenever we try to print from that server this error code pops up.
Any advice for a resolution is greatly appreciated.
Error code:
The server that the report is ran on when this issue occurs - as the message suggests, it seems like the table 'currencies' which you are using in the report does not exist in the database you are using on that server.
I suggest you logon to that server where you get the error message and make sure the 'Currencies' tables exists via SSMS.
We have an ASP.Net web application containing a number of Crystal reports that connects to our MS SQL Server 2012 instance. To increase security we intend to disable old ciphers (< TLS 1.2) on our database and web servers. Before I do that I need to make sure our Crystal Reports on our web server are able to connect to the DB server using a TLS 1.2 compliant connection. In order to do that I understand I need to install the newly released (2018) MSOLEDBSQL driver. I've now done that on my Dev environment and would expect to see a new type of connection in VS2013, Menu:Crystal Reports, 'Set Data source location...', 'Replace with:'.
But I DON'T. How am I to change the reports to use the new MSOLEDBSQL driver?
OR perhaps I don't need to install the new MSOLEDBSQL at all and can set the reports to use SqlNativeClient11 that should be TLS 1.2 compliant.
After installing the MSOLEDBSQL driver, you have a new "choice" for new connections. So, in the "Replace with", you need to set up a new connection using "Microsoft OLE DB Driver for SQL Server" - what you'd been using before for OLEDB, and which also still shows up in the list, is the "Microsoft OLE DB Provider for SQL Server".
It's also possible to change a report's connection info programmatically at runtime. See this SAP article.
I have SQL Server 2008 R2 on my computer and I want to use data mining with this version of SQL Server. My question is how can I do this? Because I've read some where that I can use data mining in SQL Server evaluation edition. I can use data mining in SQL Server 2008 R2?.
And I have one other problem when I want to use SQL Server 2008 Data Mining Add-Ins I can't connect to SQL Server and displays this error message.
Unable to connect to server 'localhost'. Please make sure user '' has at least read permission to some database on the server.
First you should get SQL Server Data Tools which runs in Visual Studio.
You will need Analysis Services installed; if you don't have it just run the SQL Server installer again and look for the option to install it.
After that you can take a look at this post I wrote a few months ago:
http://www.sqlservercentral.com/Forums/Topic480010-147-1.aspx
I wrote it specifically targeting the Neural Network models, but it contains details on several background steps you will need to do.
Finally - since you're using an evaluation version, you may want to just go for SQL Server 2012 (that's what I use, so I know it works).
We deployed a VB.Net application on a customer's computer that contains SSRS reports.
The application connects to the SQL Server database in the app without any problems. We installed SQL Server Data Tools so we could deploy the reports (rdl) and data source (rdl) files up to the report server. These deploy without any problems.
In SQL Server Data Tools we can "Preview" the reports without any problems as well.
We do run into a problem when attempting to view the report from Internet Explorer (run as an administrator).
We get the following error:
Cannot create a connection to data source 'DataSourceReports'
(this is the name we used for the TargetDataSourceFolder)
error:40 - Could not open a connection to SQL Server
We also get the same error when the app we deployed runs the reports.
Please let us know what is not set up correctly on the SQL Server side.
A likely possibility is that you are experiencing a double hop authentication problem. It's not clear from your explanation, but is the SQL Server database on a separate server from the report server? If so, then your credentials allow you to connect to the report server but Windows integrated security does not pass those credentials on to the SQL Server database if you are using NTLM on the report server. The report server tries to use Kerberos on your network to authenticate by way of ticketing to the SQL Server database, but you must have this configured correctly on your network. See this article if you want to use Kerberos: http://technet.microsoft.com/en-us/library/ff679930(v=sql.100).aspx.
Another (easier) solution is to open the data source on the report server and change the authentication to use stored credentials. Make sure the credentials you use have read permission on the SQL Server database. The downside of this approach is that you cannot use row-level security in your report by user unless you design your report to capture user information and set up the query or a filter on the dataset to restrict data by user. If that's not a concern, the stored credentials are easy to set up and maintain - and you're going to have to do this anyway if you want to use caching, snapshots, or subscriptions. For more information on stored credentials, see http://msdn.microsoft.com/en-us/library/ms159736.aspx.
The report is runnig fine in Visual Studio 2005 but fails when I deploy it on IIS. It prompts, the report you requested requires further information. I think it needs to get installed some service pack either of SQL server client, or of Crystal Reports. Please suggest.
You can set data source of your report by code at run time so your report don't need to connect to database.
CrystalReport1 report = new CrystalReport1();
DataTable dt = new DataTable();
report.SetDataSource(dt);
crystalReportViewer1.ReportSource = report;
crystalReportViewer1.Refresh();