Has anyone tried to set the database connection for their crystal report viewer runtime to read only intent with the new SQL AlwaysOn functionality? I have tried the pass the required attributes with the attributes property on the CrystalDecisions.Shared.ConnectionInfo class but it doesn't seem to work. Any ideas?
Configuring the Crystal report viewer runtime for Read-Only Access of an AlwaysOn availability group?
How to make multipage report using crystal report for Visual Studio?
Hi All,
I want to create multipage report using crystal report for visual studio. This report is customized report and I have to create the whole report by myself rather than generating it using Wizard.
What I want is to show specific fields on specific page. For example, on Report Page 1, I want to show Name, Email, Mobile etc while on Page 2, I want to show Personal Statement etc.
Any tutorial or screenshot will be very appreciated.
Thanks.
Unable to export Crystal reports to any file formats
Hi,
I am unable to export crystal reports to any file format after the report loads on Crystal Report Viewer. Any help with this issue is highly appreciated.
I developed my application on ASP.NET framework using Visual Studio 2010 Professional Edition and installed below software.
Please let me know if I need to provide any other information.
Thank you.
Regards,
Abhi.
Crystal reports - Microsoft Access - 64bit OS
Hi,
I have a .NET 1.0/VS 2003 application with Crystal reports that uses a MS Access DB. I'm migrating it to .NET 4.0/VS2010. The 32-bit application works fine, but the 64-bit doesn't. To begin with, I found out that the OLE DB driver that I used doesn't (and wont) exist in 64-bit version, so I installed the recommended "Microsoft Access Database Engine 2010 Redistributable". Windows forms application succesfully connects to DB, but Crystal Reports doesn't - any attempt to display a report in the report viewer component fails with the message "Failed to load database information...". I attached the screenshot, along with CR debugging files.
Here is the code I use to connect Windows forms to the database (the old connection is commented out):
ConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Password="""";" + //@"Provider=Microsoft.Jet.OLEDB.4.0;Password="""";" + @"User ID=Admin;Data Source=" + DatabasePath + ";Mode=Share Deny None;" + @"Jet OLEDB:Database Password=""my_password""";
This is the code I use to connect CR to the database:
foreach (Table t in rpt.Database.Tables) { TableLogOnInfo logOnInfo = new TableLogOnInfo(); logOnInfo = t.LogOnInfo; ConnectionInfo connectionInfo = new ConnectionInfo(); connectionInfo = logOnInfo.ConnectionInfo; connectionInfo.DatabaseName = DatabasePath ; connectionInfo.ServerName = DatabasePath ; connectionInfo.Password = "my_password"; t.ApplyLogOnInfo(logOnInfo); } .lyLogOnInfo(logOnInfo);
I must say that due to the lack of documentation I'm not sure if the second piece of code is correct (beyond that it works fine on 32-bit OS) and which DB driver it uses.
I'd appreciate any help (other than to change the DB, which is not possible at the moment).
Download version
Hello: I'm trying to download CRruntime 32bit 13.0.9.msi but I cannot find a download link for it anywhere. Can somebody assist? I need this for an application we are using but I'm stuck at the moment. Thank you.
Crystal Report Viewer Hang
Crystal 2011 Not Showing Parameter Prompt Inline
I recently had to port over a few applications which previously used Crystal 2008 to 2011. They use asp.net web applications with crystal report viewers. In the older versions, the report parameters were displayed inline and once the report was generated the users could simply press the back button on their browser and be taken back to the parameter screen should they need to re-run the report.
Since switching to 2011, the parameter prompt shows in a popup window. Once the report has been run the users can no longer click the back button since the parameter prompt is in a separate window and they're forced to click the link in the original web page that had the link. Was the change to having the parameter prompt in a popup something added in 2011 or is there a setting I can use to have the parameter screen show inline in the same window as the report?
ApplyLogOnInfo does not save data to report
Hi,
i have a big problem and it keeps on track for a few days now. We are using a old module, which was developed in Delphi for Report and Printing. Now its time to get new and for that I develop same module in .net and Visual Studio 2015.
As it is a old module, we have a lot of Reports created in CR XI. Open an showing these reports is no problem for the new modul as long as i use the same Oracle-Database as the report was created for.
But if I run the module at the customer place and have the same database but other User, PW and Databasename its not working anymore. Troubleshooting showed that ApplyLogOnInfo() don't saves the connectioninfo into the Reportfile.
I have tried a lot to fix it, searched for days thru all kind of forum but didn't find anything that solved the problem. I even tried to use complete fresh Reports created with Crystal Reports 2013 but it did not help either.
Maybe someone of you can help me?
regards
Tobias
string DBUser = Application.Current.Properties["DBUser"].ToString(); string DBPasswort = Application.Current.Properties["DBPasswort"].ToString(); string Database = Application.Current.Properties["DataSource"].ToString();
InitializeComponent(); _Parentwindow = Parentwindow; if (System.IO.File.Exists(ReportFile)) { CrystalReport = new ReportDocument(); string test = Application.Current.Properties["ConnectionString"].ToString(); CrystalReport.Load(ReportFile);
foreach (CrystalDecisions.CrystalReports.Engine.Table ThisTable in CrystalReport.Database.Tables) { TableLogOnInfo crtableLogoninfo = ThisTable.LogOnInfo; crtableLogoninfo.ConnectionInfo.UserID = DBUser; crtableLogoninfo.ConnectionInfo.Password = DBPasswort; crtableLogoninfo.ConnectionInfo.ServerName = Database; ThisTable.ApplyLogOnInfo(crtableLogoninfo); }
foreach (ReportDocument Sub in CrystalReport.Subreports) {
foreach (CrystalDecisions.CrystalReports.Engine.Table ThisTable in Sub.Database.Tables) { TableLogOnInfo crtableLogoninfo = ThisTable.LogOnInfo; crtableLogoninfo.ConnectionInfo.UserID = DBUser; crtableLogoninfo.ConnectionInfo.Password = DBPasswort; crtableLogoninfo.ConnectionInfo.ServerName = Database; ThisTable.ApplyLogOnInfo(crtableLogoninfo); } }
Reportname = ReportFile; ReportViewer.ViewerCore.ReportSource = CrystalReport;
MSM for AP Crystal Reports, developer version for Microsoft Visual Studio (v.13.0.16.1954)
From where can I download MSM for AP Crystal Reports, developer version for Microsoft Visual Studio (v.13.0.16.1954).
Instead of MSI we want to integrate MSM.
Please provide the download link.
All Blank Pages when exporting to PDF | .NET 4.6.1 + (SP 14 or SP 15 or SP 16)
Hello,
Since we migrated to new servers (Windows Server 2012 R2) and changed our applications to target .NET Framework 4.6.1 (with absolutely no changes to our reports), exporting to PDF from the ASP.NET CRViewer control results in all blank pages.
- The viewer displays the report just fine.
- The number of pages in the PDF matches the number of pages shown in the viewer, but every single PDF page is blank.
- Exporting to other types, such as Microsoft Word, works fine (so we have a workaround, though there are some formatting issues with Word-targeted reports).
- Exporting directly to PDF from code also works fine, so the PDF problem is limited to the viewer control's print/Export to PDF functionality.
- This problem still exists after upgrading to SP 16. Reverting back to an older CR service pack (14 or 15) doesn't resolve the issue, hence the guess that this problem is related to .NET Framework 4.6.1.
Questions
- Is anyone else with applications targeting .NET 4.6.1 able to export to PDF from the ASP.NET viewer successfully?
- What could I check to track down the problem?
- What can I provide to the CR development team to help them track down the problem?
Thanks,
Andre
The report you requested requires further information on windows server 2012 R2
Hi Guys,
I have my report working fine with windows server 2008. But when I run it on windows server 2012, it always give me the message "The report you requested requires further information". I have listed information below:
Server: windows server 2012
SQL server version : MS SQL server 2014
App type: asp.net
The code i have been using is below:
protected void Page_Init(object sender, EventArgs e)
{
if (Request.QueryString["ReportCatogory"] != null)
{
string ReportCatogory = Request.QueryString["ReportCatogory"].ToString();
if (!IsPostBack)
{
ReportIndex ReportIndexModel = new ReportIndex();
ReportIndexModel.SelectedReport.Name = ReportCatogory;
if (ReportIndexModel.SelectedReport.Name == null)
return;
CrystalDecisions.CrystalReports.Engine.ReportDocument _reportDoc = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
try
{
List<RFPlusWebAPI.Models.Report> reports = (List<RFPlusWebAPI.Models.Report>)HttpContext.Current.Cache[Constants.CACHE_KEY_REPORTS_DATA];
foreach (RFPlusWebAPI.Models.Report report in reports)
{
if (report.Name == ReportIndexModel.SelectedReport.Name)
{
ReportIndexModel.SelectedReport.Path = report.Path;
break;
}
}
if (ReportIndexModel.SelectedReport.Path == string.Empty)
{
if (ReportIndexModel.SelectedReport.Name != string.Empty)
Response.Write("Report path is empty!");
return;
}
_reportDoc.Load(ReportIndexModel.SelectedReport.Path);
_reportDoc.SetDatabaseLogon(GetReportsTask.crystalReportConnectonUserID, GetReportsTask.crystalReportConnectonPassword);
if (ReportCatogory == "InventoryByLocation")
{
string whs = Request.QueryString["Warehouse"].ToString();
string loc = Request.QueryString["Location"].ToString();
_reportDoc.SetParameterValue("Warehouse", whs);
_reportDoc.SetParameterValue("Location", loc);
}
else if (ReportCatogory == "InventoryByPart")
{
string whs = Request.QueryString["Warehouse"].ToString();
string part = Request.QueryString["Part"].ToString();
_reportDoc.SetParameterValue("Warehouse", whs);
_reportDoc.SetParameterValue("Part", part);
}
else if (ReportCatogory == "InventoryFIFO")
{
string whs = Request.QueryString["Warehouse"].ToString();
string part = Request.QueryString["Part"].ToString();
_reportDoc.SetParameterValue("Warehouse", whs);
_reportDoc.SetParameterValue("Part", part);
}
else if (ReportCatogory == "InventoryEmptyLoc")
{
string whs = Request.QueryString["Warehouse"].ToString();
_reportDoc.SetParameterValue("Warehouse", whs);
}
else if (ReportCatogory == "InventoryInSockLoc")
{
string whs = Request.QueryString["Warehouse"].ToString();
_reportDoc.SetParameterValue("Warehouse", whs);
}
else if (ReportCatogory == "InventoryLicense")
{
string whs = Request.QueryString["Warehouse"].ToString();
string part = Request.QueryString["Part"].ToString();
string loc = Request.QueryString["Location"].ToString();
_reportDoc.SetParameterValue("Warehouse", whs);
_reportDoc.SetParameterValue("Part", part);
_reportDoc.SetParameterValue("Location", loc);
}
else if (ReportCatogory == "Receiving")
{
string whs = Request.QueryString["PO"].ToString();
string part = Request.QueryString["FromDate"].ToString();
string loc = Request.QueryString["ToDate"].ToString();
_reportDoc.SetParameterValue("PO", whs);
_reportDoc.SetParameterValue("FromDate", part);
_reportDoc.SetParameterValue("ToDate", loc);
}
else if (ReportCatogory == "PickNew")
{
string part = Request.QueryString["FromDate"].ToString();
string loc = Request.QueryString["ToDate"].ToString();
_reportDoc.SetParameterValue("FromDate", part);
_reportDoc.SetParameterValue("ToDate", loc);
}
else if (ReportCatogory == "PickOpen")
{
string part = Request.QueryString["FromDate"].ToString();
string loc = Request.QueryString["ToDate"].ToString();
_reportDoc.SetParameterValue("FromDate", part);
_reportDoc.SetParameterValue("ToDate", loc);
}
else if (ReportCatogory == "PickShip")
{
string part = Request.QueryString["FromDate"].ToString();
string loc = Request.QueryString["ToDate"].ToString();
_reportDoc.SetParameterValue("FromDate", part);
_reportDoc.SetParameterValue("ToDate", loc);
}
else if (ReportCatogory == "Manifest")
{
string LoadPlanNo = Request.QueryString["loadPlan"].ToString();
_reportDoc.SetParameterValue("Load Plan No.", LoadPlanNo);
_reportDoc.SetParameterValue("Hide", "N");
}
else if (ReportCatogory.Equals("count_licdp", StringComparison.OrdinalIgnoreCase) ||
ReportCatogory.Equals("count_pcdp", StringComparison.OrdinalIgnoreCase) ||
ReportCatogory.Equals("count_uncountedlic", StringComparison.OrdinalIgnoreCase))
{
string countID = Request.QueryString["CountID"].ToString();
_reportDoc.SetParameterValue("CountID", countID);
if (ReportCatogory.Equals("count_licdp", StringComparison.OrdinalIgnoreCase))
{
string percent = Request.QueryString["variable"].ToString();
_reportDoc.SetParameterValue("Percent", percent);
}
}
CrystalDecisions.Shared.ConnectionInfo crConnectionInfo = new CrystalDecisions.Shared.ConnectionInfo();
crConnectionInfo.IntegratedSecurity = false;
crConnectionInfo.AllowCustomConnection = true;
crConnectionInfo.Type = CrystalDecisions.Shared.ConnectionInfoType.SQL;
CrystalDecisions.CrystalReports.Engine.Database crDatabase;
CrystalDecisions.CrystalReports.Engine.Tables crTables;
CrystalDecisions.CrystalReports.Engine.Table crTable;
CrystalDecisions.Shared.TableLogOnInfo crTableLogOnInfo = null;
if (!string.IsNullOrEmpty(GetReportsTask.crystalReportConnectonServer))
crConnectionInfo.ServerName = GetReportsTask.crystalReportConnectonServer;
if (!string.IsNullOrEmpty(GetReportsTask.crystalReportConnectonDB))
crConnectionInfo.DatabaseName = GetReportsTask.crystalReportConnectonDB;
crConnectionInfo.UserID = GetReportsTask.crystalReportConnectonUserID;
crConnectionInfo.Password = GetReportsTask.crystalReportConnectonPassword;
CrystalDecisions.Shared.TableLogOnInfos infos = new CrystalDecisions.Shared.TableLogOnInfos();
crDatabase = _reportDoc.Database;
crTables = crDatabase.Tables;
for (int i = 0; i < crTables.Count; i++)
{
crTable = crTables[i];
crTableLogOnInfo = crTable.LogOnInfo;
crTableLogOnInfo.ConnectionInfo = crConnectionInfo;
crTableLogOnInfo.TableName = crTable.Name;
crTable.ApplyLogOnInfo(crTableLogOnInfo);
//crTable.Location = crTable.Name;
if (infos.Count == 0)
infos.Add(crTableLogOnInfo);
}
CRViewer.LogOnInfo = infos;
CRViewer.EnableParameterPrompt = true;
CRViewer.ToolPanelView = CrystalDecisions.Web.ToolPanelViewType.None;
CRViewer.ReportSource = _reportDoc;
Session["ReportSource"] = _reportDoc;
}
catch (Exception ex)
{
Response.Write(string.Format("Load Crystal Report failed:{0}\nStack:{1}\n", ex.Message, ex.StackTrace));
return;
}
}
else
{
CrystalDecisions.CrystalReports.Engine.ReportDocument reportDoc = (CrystalDecisions.CrystalReports.Engine.ReportDocument)Session["ReportSource"];
CRViewer.ReportSource = reportDoc;
}
}
}
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
CrystalDecisions.CrystalReports.Engine.ReportDocument reportDoc = (CrystalDecisions.CrystalReports.Engine.ReportDocument)Session["ReportSource"];
CRViewer.ReportSource = reportDoc;
}
}
Cannot register SAP dlls
I could do with some help with installing Crystal Reports for Visual Studio (2015) (13.0.15).
We are using Install Shield LE and our setup includes the merge-modules.
Having been 'on-site' last week, everything installed and worked perfectly on 11 out of 13 machines. On 2 of them I get the following error:-
... and similar errors regarding all of the SAP dlls.
The ones that installed OK are a mixture of Win 7, Win 8.1 and Win 10 (some 32bit, some 64bit).
The 2 that gave the above error are both Win 7 - one is 32bit and the other 64bit.
They all have the VC++ Redistributables and I can't see any differences on similar machines that did work!
Any help would be appreciated!
Thanks,
.NET Graphic Location
I am using the graphic location to pull an image from the disk and place it in the report. This works with 2013 crystal reports. When I use the .Net Viewer I can show the path an it is correct but the image fails to show more often than not. If I click previous and next and keep doing it sometimes one of the images will come back and the other are missing. It works great except in the .Net Viewer. Please help. If I go to the need of the report then back to the beginning most of the time all the images on each page are missing. Any ideas?
First time the report loads most of the images show until I change pages and then some will not show.
Method not found get_ExportOptionsEx()
Hi!
I have CRYSTALREPORTSRT_13015_00 x64 in a computer. During export report application throw an exception:
Method not found:
'CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag CrystalDecisions.ReportAppServer.DataDefModel.ISCExportOptions.get_ExportOptionsEx()'
How to resolve this problem?
Thanks
is possible to move entire control after exporting word document?
Dear Experts,
I have designed report for Pre-printed stationary. now i have to fix the alignment after exporting (ExportFormatType.WordForWindows)
word document. i can adjust single object like text object and FieldObject. now i want adjust the all the fields in report after exporting word.
How can i move the all controls in single selection, is there any control for out line Frame in report?
attached file for your reference.
thanks in advance,
Mani.
Print, Export, Not working in Crystal Report 2008 Runtime
Hi,
We have environment in the below configuration.
OS Version: Windows Server 2012 R2 64 bit
Crystal Version: Crystal Report 2008 Runtime
Application: ASP.NET
Framework: .NET Framework 4.0
After launching report in asp.net while try to export, print, page navigation in report viewer is not responding in IE 11, Google Chrome and Firefox Browsers
after enabling script debugging while launching report before rendering it show the script error as "Error: 'WebForm_InitCallback' is undefined" in IE 11
After the script error report getting launched but i cannot do any tasks in report viewer print, export, next, previous. in fiddler also there is not trace
for these events.
May i know how to overcome this issue.
Thanks in advance.
Print and Export
Hi
I have created a web viewer in .net 4.5.2 with CRforVS_13_0_14 but the print and export dont do anything. I have tried different browsers but still no joy. I have made sure the reports are saved in the latest version of Crystal
I recently upgraded to CRforVS_13_0_16 but that screwed up the layout of the reports and the print and export functionality didnt work
If anyone has come across this before or has some helpful hints it would be greatly appreciated
Thanks
Ian
Can someone please provide a link to download the Crystal Reports runtime engine for .NET Framework 4
I'm looking for a link somewhere on the SAP website to download the Crystal Reports runtime engine for .NET Framework 4. Can someone please provide the URL for this?
Page Navigation problem in visual studio 2013 community edition (CR "CRforVS_13_0_16"Version)
Not Goes to page 3 when we are navigate the page
Deployed DLL in web site project on SP16
Hello,
after installing the SP 16 I've notice that deploying a website with CR dependencies on VS 2015, all the DLL of CR are deployed with the project. With the previous version (SP12) and VS 2010 no DLL of CR were deployed.
What does it mean, that it is not needed anymore to install the runtime on the target machine, or it is an error?
Regards
Edika