Does the Support Pack 16 product on this page work with Crystal Reports 2016?
Are we using the same SDK for Crystal Reports 2016 as 2013
We got an error with the follow description: "Unable to find the report in the manifest resources. please build the project and try again." Somebody know what happen?
Hi, We have a critical situation in Crystal Reports component that doesn't make any sense. We have a windows form application, developed in Visual Studio 2005 with .NET 2.0 When we need to do any kind of maintenance, that requires to re-build our application, we got an error with the follow description: "Unable to find the report in the manifest resources. please build the project and try again." The awkward part is that we did not change anything related to the crystal report class. We have already tried to delete the report from the project and create it again, but it did not solve the problem. It's worth to mention that this error only happens with 2 reports from 12 available to be executed in our application. If there is any additional information that could be helpfull, let me know. Follows information about our Crystal Reports component Version: 11.5.3300 (located in c:/windows/assembly) Looking forward to hearing from you. Thanks.
An unhandled exception of type 'System.ArgumentNullException'
Hello,
If I have start a crystal report then I get the following error.
An unhandled exception of type 'System.ArgumentNullException' occurred in PresentationFramework.dll
What have i installed;
Windows 10
Visual Studio 2015 Update 2
CRforVS_13_0_16
Framework Version 4.52
What must i do !!
Two Charts in subreport - how to bind one chart programatically
I have a Report which have a subreport link "View". On clicking "View" want to show two charts. I have already created one chart and set the link source to that chart and it is working fine. Now I want to show the another chart on this same report. This second chart needs some custom coding so i want it to be bind it with database stored procedure. Where do I need to do the coding - in my windows form where I have a crystal report viewer control or can i bind the chart with sp which expects parameters. Any advise would be appreciated.
I am using crystal report for visual studio 2013 in vs2010 c# windows application.
An unhandled exception of type 'System.ArgumentNullException'
Hello,
The following error I Get when start Crystal Report.
An unhandled exception of type 'System.ArgumentNullException' occurred in PresentationFramework.dll
Additional information: Value cannot be null.
I have installed
Window 10 - 64 bits
Visual Studio 2015 Update 2
CRforVS_13_0_16.exe
I had Framework 4.5.2 installed.
They advice me to unstalled it.
So now revolves Framework 4.5.
But now It still doesn't work. Please can someone help me.
Adding additional select criteria in code behind
I'm creating a Crystal Report viewer in an ASP.NET web page and all works fine (except I can't go beyond page 2 but that's another problem). However I now want to add some extra selection criteria to any that may already be present in the report.
I have a class which loads the existing .rpt file and adds the connection info :
protected ReportDocument LoadCrystalReport(string reportFile) | |
{ | |
if (!string.IsNullOrEmpty(reportFile)) | |
{ | |
// Get the required report and load it into the viewer | |
ReportDocument crRpt = new ReportDocument(); | |
crRpt.Load(reportFile); |
// now logon to the files used by the current report | |
ConnectionInfo connectionInfo = new ConnectionInfo(); | |
TableLogOnInfo crtableLogoninfo = new TableLogOnInfo(); |
connectionInfo.ServerName = dbServer.Value; | |
connectionInfo.DatabaseName = addrBook.Value; | |
connectionInfo.UserID = userName.Value; | |
SymCrypt sc = new SymCrypt(); | |
connectionInfo.Password = sc.Decrypt(userPass.Value); |
foreach (CrystalDecisions.CrystalReports.Engine.Table crTable in crRpt.Database.Tables) | |
{ | |
crtableLogoninfo = crTable.LogOnInfo; | |
crtableLogoninfo.ConnectionInfo = connectionInfo; | |
crTable.ApplyLogOnInfo(crtableLogoninfo); | |
} |
return crRpt; | |
} |
return null; | |
} |
And the code to call this class and display the report and extend the selection is:
// load our report |
crRpt = LoadCrystalReport(Path.Combine(reportPath.Value, reportName.Value)); |
crystalReportViewer.ReportSource = crRpt; |
crystalReportViewer.PrintMode = CrystalDecisions.Web.PrintMode.Pdf; |
string extraSelects = string.Empty; |
// This checks for additional select criteria |
if (!string.IsNullOrEmpty(extraSelects = SetRecordSelectionForReport())) |
{ // Do we have to add this to existing criteria ?? |
if (string.IsNullOrEmpty(crRpt.RecordSelectionFormula)) |
{ |
crRpt.RecordSelectionFormula = extraSelects; |
} |
else |
{ |
crRpt.RecordSelectionFormula = string.Format("{0} and {1}", crRpt.RecordSelectionFormula, extraSelects); |
} |
} |
However when I assign my joined selection criteria to crRpt.ReportSelectionFormula it immediately clears all existing data and leaves the value empty.
If I check the value of RecordSelectionFormula prior to any assignment it has the value : " ( ( {Opportunity.Status} = 3 AND {@0 £ balance remains 24 months} ) AND ( {Address.Country} <> \"Channel Islands\" ) ) ".
I then want to append further criteria: "( {Opportunity.Opp_Id} IN [ \"060918022732098261889C\", \"060908008692098261889C\" ] )"
so i concatenate the 2 strings with an "AND" giving : " ( ( {Opportunity.Status} = 3 AND {@0 £ balance remains 24 months} ) AND ( {Address.Country} <> \"Channel Islands\" ) ) AND ( {Opportunity.Opp_Id} IN [ \"060918022732098261889C\", \"060908008692098261889C\" ] )"
but this clears the existing criteria and doesn't assign my new selection.
Is there something I'm missing with regard to setting a new selection criteria ?? |
ADO.NET(XML) Logon failed in CR for Visual Studio
Hi,
I have a service which generates report output in requested format. All reports use ADO.NET (XML) as their data source during design and run-time.
The code is very simple. I just set location of XML:
// load report template
crReportDocument = new ReportDocument();
crReportDocument.Load(templateFilePath, OpenReportMethod.OpenReportByTempCopy);
if (crReportDocument.Database.Tables.Count > 1)
{
throw new Exception("Invalid report template. Report " + templateName + " contains " +
crReportDocument.Database.Tables.Count + " tables.");
}
// Point a report to XML file
crReportDocument.Database.Tables[0].Location = xmlFilePath;
foreach (ReportDocument crSubReport in crReportDocument.Subreports)
{
crSubReport.Database.Tables[0].Location = xmlFilePath;
}
//Export the report
crReportDocument.ExportToStream(exportFormat).CopyTo(ms);
The service works fine on my workstation and on DEV server. But on QA server I keep on getting the following error for all reports:
Logon failed.
Error in File aacmpb_edk521mz.dii 4428_1268_{16C82480-29EB-4089-9927-1A15668F592B}.rpt:
Unable to connect: incorrect log on parameters.
at CrystalDecisions.ReportAppServer.Controllers.DatabaseControllerClass.SetTableLocation(ISCRTable CurTable, ISCRTable NewTable)
at CrystalDecisions.CrystalReports.Engine.Table.set_Location(String value)
at myCFO.Services.CRGService.GenerateOutput(String templateName, Byte[] xmlData, ExportFormatType exportFormat)
XML file exist.
I verified XML files against template in Crystal Reports designer. No issues.
I'm lost. I cannot figure out why the same code works on one server and does not on another.
I use CRforVS_redist_install_64bit_13_0_16.
Please HELP!!!
Sincerely,
Dmitri
ERROR:Additional information: Failed to load database information. Error in File temp_5772f972-572f-409c-a19d-e4935cbf344f 5544_4452_{1A3F388F-FBB1-4A29-82CC-A923E3F0A21C}.rpt: Failed to load database information.
I'm working on a report in Crystal Reports C# windows application.i fetch the data from localhost server to crystal report. I have 2 datetimepicker in my form.
datetimepicker1 = cbFromDate
datetimepicker2 - cbTodate
Crystalreport data from localhost:
Now I want that, when selecting some date in from and the to datetimepicker the between data is show in the crystal report please help me to solve i don't know how to start. i'm searching through googling i didn't get any thing about between data in datetimepicker show in crystal report.
Here my try:
- using MySql.Data.MySqlClient;
- using System;
- using System.Data;
- using System.Windows.Forms;
- namespace CrystalReport
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- String MyCon = "SERVER=localhost;" +
- "DATABASE=test;" +
- "UID=root;" +
- "PASSWORD=asterisk;" + "Convert Zero Datetime = True";
- private void button1_Click(object sender, EventArgs e)
- {
- filter_dates();
- }
- private void filter_dates()
- {
- MySqlConnection conn = new MySqlConnection(MyCon);
- CrystalReport1 objcr = new CrystalReport1();
- MySqlDataAdapter da = new MySqlDataAdapter("select id,date,time,user,department,city from pbx where date>='" + DateTime.Parse(cbFromDate.Text) + "' and date<='" + DateTime.Parse(cbTodate.Text) + "' ", conn);
- DataTable dt = new DataTable();
- da.Fill(dt);
- objcr.SetDataSource(dt);
- crystalReportViewer1.ReportSource = objcr;
- crystalReportViewer1.RefreshReport();
- }
- }
- }
But i'm getting an error:
Any ideas? Please
ASP.NET MVC 4, C# - The Visual Basic UFL that implements this function is missing (or U2lcom.dll is missing)
I have created User Function Library in C# following by this tutoral: Tutorial: Creating a User Function Library.
When I generate report preview in VS 2008 function works correctly - it's registered in Global Assembly Cache on develop machine as in tutorial.
But when I need to deploy crystal on web server there is error:
The Visual Basic UFL that implements this function is missing (or U2lcom.dll is missing). Details: errorKind Error in File report.rpt: Error in formula code128: 'SpxFnUflSpxFnConvertTxtToCode128 ({command.BARCODE})' The Visual Basic UFL that implements this function is missing (or U2lcom.dll is missing)
On web server there is also registered this UFL in GAC.
How to fix this problem?
Details:
- I build this app on profile "Any CPU". I have installed both 32 and 64 bit libs and my project references to MSIL path:
- C:\Windows\assembly\GAC_MSIL\CrystalDecisions.CrystalReports.Engine\13.0.2000.0__692fbea5521e1304\CrystalDecisions.CrystalReports.Engine.dll
- File version of Crystal lib: 13.0.2.469
Crystal Report Burp security scan vulnerability using CrystalReportViewer
Hi - We developed a .Net application and are using Crystal Reports 2013 with it. We need to pass security requirements before we can finally implement our application. Our Security Group uses BURP to check the application and in doing so, found the vulnerability below.
Crystal Report Burp security scan vulnerability using CrystalReportViewer the __CRYSTALSTATECrystalReportViewer1 parameter. This input was echoed unmodified in the application's response. This behavior demonstrates that it is possible to inject new HTML tags into the returned document. An attempt was made to identify a full proof-of-concept attack for injecting arbitrary JavaScript but this was not successful. You should manually examine the application's behavior and attempt to identify any unusual input validation or other obstacles that may be in place.
Could someone help us address this security vulnerability? Or, let us know if this is normal behavior so we can respond appropriately to our security group?
Thank you, Cel
Extra spaces between words when exporting to PDF
Hi,
I'm facing the exact problem mentioned in post http://scn.sap.com/thread/2110004
I'm using CR 2013 Sp1 (14.1.1.1036). I have some text inside a textbox and the text us justified. All is ok when previewing through the CR designer.
Yet there are unnecessary spaces between words and the text is incorrectly formatted when the report is exported to a PDF through a .net windows application. I have tried with Arial and Tahoma fonts. The font size is 5pt.
I tested with the latest Crystal .net runtime for Visual Studio which is CRforVS_13_0_16 and the issues is still there.
The above post talks about a registry entry "UsePrecisePositioningForText" which seems to have solved the issue, but I couldn't find it in the CR designer machine or the machine where the CR .net runtime is installed.
Can you tell me the exact path for this registry entry and will it change for 32bit and 64bit .net runtime?
Is the PDF exporting issue a bug in the Crystal .net runtime?
Thanks in advance,
Regards,
Chanaka
Maximum report processing job limit for crystal reports
Hi,
We have been using report viewer 13.0.15 with a few reports and have the problem of "Processing Job Limit" resulting in "Load Report Failed". I have been through several forums and tried a few implementations which I have documented below.
I have placed two scenarios below, one which results in "Load report failed" after running a few reports (Scenario 1) and Scenario 2 which runs without the "Load Report Failed" issue
The problem with scenario 2 is that the report data is extracted on every page navigation.
Scenario 1 is great for large reports as it does only one DB call, but results in the "Processing Job Limit" issue.
Scenario 1 - Using session object to store the Report Document and bind to the report viewer on a popup page
In this case, we are building the ReportDocument and placing this into session. We then open up a popup form which contains the CrystalReportViewer and bind the viewer to the session object.
This scenario allows us to make one DB call to bind the ReportDocument and place this into session. On the POPUP form, we get the ReportDocument from session and bind it to the viewer. This method results in the Processing Job Limit (Load report failed) issue after we run several reports. The workaround is to recycle the application pool, however, the error will be back again after a few reports are run.
Code for Popup form with Crystal Report Viewer. Note: We cannot dispose the ReportDocument using this method.
protected void Page_Init(object sender, EventArgs e)
{
if (Request.QueryString["ReportID"] != null)
{
string reportID = Request.QueryString["ReportID"].ToString();
ReportDocument report = new ReportDocument();
report = (ReportDocument)Session[reportID];
crvReport.ReportSource = report;
crvReport.DataBind();
}
}
Scenario 2 - Build the ReportDocument on every postback and dispose on Page_Unoad
This scenario runs without causing the Processing Job Limit (Load report failed), however, this method will make a DB call on page navigation.
protected void Page_Init(object sender, EventArgs e)
{
string reportID = Request.QueryString["ReportID"].ToString();
if (Request.QueryString["ReportID"] != null)
{
rpt = (ReporterEntity)Session["ReportDefinition"];
rpv = (ReportParameterValues)Session["ReportParameterValues"];
string reportPath = rpt.Reportname;
report.Load(reportPath);
SetParameterValues();
//Connect to database and bind
SetReportConnection(report);
crvReport.ReportSource = report;
crvReport.DataBind();
}
}
protected void Page_Unload(object sender, EventArgs e)
{
if (report != null)
{
report.Close();
report.Dispose();
GC.Collect();
}
}
Is there a way to use the session object to store the report document (Scenatio 1) but prevent database calls when the user navigates through multiple pages?
Crystal reports showing question marks instead of characters
I'm using mysql database and C# based app and i'm using query (Add command option in Database expert) to pull data via mysql ODBC. Database character set is cp1250 if it matters.
This happens only on 2 characters "Ć" and "Č" when i open the report . Those are Serbian Latin characters. I should mention that the other Serbian Latin characters such as "Š, Đ, Ž" are showing just fine.
I've updated Crystal Reports and i've tried changing Fonts on reports but it still won't work.
I've checked database records and displayed does values in app and it shows them correctly.
I've read other issues here concerning improper russian characters displays and tried some solutions but still nothing.
I'd appreciate any suggestions.
Stored procedures with required params
Good afternoon,
I have a report (quite a few actually) that have 2 stored procedures in them. They are linked by 1 field. Each procedure takes 2 required parameters. I am having an issue that if a parameter is NOT passed to the report, it still runs.
I also am trying to figure out a way to pass the values to the appropriate procedure.
I would like to modify this piece of code to pull the parameters from each proc and supply the values. Currently, it has all 4 parameters.
foreach (KeyValuePair<string, string> kvPair in _reportParameters.ToKeyValuePair())
{
reportDoc.SetParameterValue(kvPair.Key, kvPair.Value);
}
I would also like an explanation as to why crystal doesn't fail when a required parameter isn't passed even if I run directly to proc.
Crystal 2013, SQL 2014, .NET 4.5, VS 2015
Thank you very much in advance.
Thank you,
T
get first and last record from each group in the report
Using CR for VS2008.
Is there a way to obtain the first and last record of Grouped data in a report.
I want to be able to compute the % change within the group based on these values.
Thanks in advance
John
Missing method 'instance class CrystalDecisions.ReportAppServer.Controllers.PrintOutputController
Hi.
I'm running Visual studio 2010 (developr PC) and use a webservice to perform creating of reports. (On an other server)
I'm facing a problem on printing by means of a netwerk printer (installed on an IIS server (Windows 2012 R2)
On the server SP16 (redistributable 13.0.16.1954) is installed.
When trying to print i get the following error:
Missing method 'instance class CrystalDecisions.ReportAppServerControllers.PrintOutputController
CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument::get_PrintOutputConroller()' from class 'CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper
What am i Missing?
Anybody ideas?
Crystal Reports Logon Failed after changing SQL server instance name
I have an application with close to 100 reports. Visual studio 2012. SQL server 2014 express, 64 bits windows 10 machine.
This was a development set up where the sql server and the visual basic .NET application where on my local machine.
Installed an instance of the same sql server 2014 express with another name on the company server.
Despite the fact that I changed the database location, establishing the new sql server instance as the new location (SQL server Native Client), the same database name. I use integrated security.
Updated the tables, stored procedures to the same tables and stored procedures to the new location, verify the database and it comes back with the message that the database is up to date.
When I run the application the same report fails to login.
Have read many of the posts about this same problem and applied many f the suggestions but none has worked out.
Would appreciate very much any suggestion or advise.
Regards and thank you in advance
Preprinted allignment issues in browser
Dear Experts ,
I designed pre printed stationary crystal reports and runs through visual studio 2010 , Each and every browser i am getting different alignment .
For ex in Mozilla first line printing after 1 cm from top margin , where in IE same line printing after 1.4cm and in chrome its printing after 2 cm .
Please suggest , we cant restrict user to use any one of the browser .
field border thickness vary random
Export to pdf: The system cannot find the path specified.
Hi,
I am having trouble troubleshooting the cause of my error when attempting to export a pdf report.
Dim filename As String
filename = Request.QueryString("report") & "_" & Request.QueryString("user") & "_" & DateTime.Now.ToString("yyyyMMddHHmmss") & ".pdf"
exportPath = Request.PhysicalApplicationPath & filename
Try
myReport.ExportToDisk(ExportFormatType.PortableDocFormat, exportPath)
Catch ex As Exception
Response.Write("Export Error: <BR>")
Response.Write(exportPath)
Response.Write("<BR>")
Response.Write(ex.Message.ToString())
End Try
This code will fail, with the following displayed:
Export Error:
C:\websites\reporttest\reports\testreportbyparam4_batch_20160527151754.pdf
The system cannot find the path specified.
The directory exists.
I am attempting to call my using a vb.net aspx page with a URL like:
http://localhost/reporttest/reports/OpenReport.aspx?report=testreportbyparam4
where the report name and connection parameters are passed in the the Request scope variables
The report testreportbyparam4.rpt exists in the directory
e.g
Dim reportPath As String
reportPath = Server.MapPath(Request.QueryString("report") & ".rpt")
myReport.Load(reportPath)
I have a virtual directory setup to the reporttest folder under IIS.
If I don't catch the error, my stack trace is as follows:
[COMException (0x80004005): The system cannot find the path specified.
]
CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext) +0
CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) +1140
CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext) +650
CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext) +208
CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToDisk(ExportFormatType formatType, String fileName) +276
OpenReport.ConfigureCrystalReports() +3158
OpenReport.Page_Init(Object sender, EventArgs e) +7
System.Web.UI.Control.OnInit(EventArgs e) +92
System.Web.UI.Page.OnInit(EventArgs e) +12
System.Web.UI.Control.InitRecursive(Control namingContainer) +134
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +489
I was wondering could it be a permissions problem? I don't really know enough about aspx websites to troubleshoot
I am using Visual Studio 2012, and the the project references the CrystalReportsEngine 13.0.2000.0