Hello,
I'm looking for the Delphi component that used to be included in Crystal Reports XI, but doesn't seem to be there in Crystal Reports XI R2.
Where can I go for this?
I'm looking for the Delphi component that used to be included in Crystal Reports XI, but doesn't seem to be there in Crystal Reports XI R2.
Where can I go for this?
Hello,
I have recently upgrade my working station to SP16. When I run reports I have a slight glitch that make 2 of my fields be displayed on top of each others. I did not have this issue previously with SP15 it's also ok once exported in PDF or from Crystal Reports Designer.
The fields are close to the right border of the Report but there is place to display them. All of our reports have those information at the bottom going thru them is not realist.
Here is the issues in images:
Thank you.
Hello,
I have an app that uses Crystal Reports. Currently it's on .NET 3.5.
I'm in the process of migrating it to .NET 4.0. I've downloaded "SAP Crystal Reports, version for Visual Studio 2010 - Standard" from http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp and installed it on my development machine. I added references to CrystalDecisions.CrystalReports.Engine.dll and CrystalDecisions.Shared.dll to my project. My application works fine on my machine.
I packaged it in an msi and installed it on the server where the .NET 3.5 version was running previously. I checked teh msi appears to install CrystalDecisions.CrystalReports.Engine.dll and CrystalDecisions.Shared.dll to the GAC correctly. However, when I run my app, I see the following error:
Message: System.TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.ReportAppServer.CommLayer, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified. at CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor()
Any suggestions? Please don't tell me I'll have to install the entire "SAP Crystal Reports, version for Visual Studio 2010 - Standard" on my server.
Thanks
Problem setting PrintOptions.PrinterName with Crystal Reports for Visual Studio 2010 Service Pack 2 (Version 13.0.2.469)
Framework: .Net Framework 4.0
Language: C#
Crystal Reports Version: Crystal Reports for Visual Studio 2010 Service Pack 2 (Version 13.0.2.469)
Problem: After changing some properties of objects in a report the delegation of PrintOptions.PrinterName doesnu2019t work any more. That means, itu2019s not possible any more, to assign a special printer to a report, that report is then always printed on the default printer.
Sample:
//create CrystalReport CrystalReport1 rpt = new CrystalReport1(); //assign a Printer to the report //here it works, the printer is set to rpt.PrintOptions.PrinterName rpt.PrintOptions.PrinterName = "Microsoft XPS Document Writer"; //setting some properties of objects on the report //effect: the assigned printer is gone, rpt.PrintOptions.PrinterName is empty rpt.Section1.ReportObjects["txtTest"].ObjectFormat.EnableSuppress = false; //assign a Printer to the report doesn´t work any more, this line of code has no effect, //rpt.PrintOptions.PrinterName remains empty rpt.PrintOptions.PrinterName = "Microsoft XPS Document Writer";
This problem occurs since Service Pack 2 (Version 13.0.2.469), before the code was running without any problems.
Hi,
I've got an .asp page created that runs the Crystal report viewer through a webpage. When running a report with no parameters it runs fine without hassle. However, when running a report with parameter values the parameter popup does not appear and shows only a blank report page in the crystal viewer. Environment: Windows Server 2012 64bit, Crystal runtime installed 13.0.2. Below is the screenshot without "Enter parameter values" popup.
I have tried several iterations of this report and always end up with the same thing when I preview it. I can see the data fine through my data connection in Visual Studio 2013 and my application works fine until I try to incorporate a Crystal Report into my application. I make sure the data source is set correctly but when I run the report, all I ever see is a bunch of garbage data from somewhere that contains a list of colors like, 'silver,green,red,gray,aqua,gray,olive,...' instead of the ID's from the table I selected, along with their corresponding records. I even tried setting up a 'Parameter Field' linked to my Select Expert', which opens and asks for a value. I still get those darn colors... What am I doing wrong?
Hello!
I am using crystal report in my ASP.NET application. I am displaying the report in crystal report viewer. When I run this application on my local machine, it runs fine.
I deployed the same to production server where I see below issue:
Pop-up window which request user provided parameters will not appear.
Note: Reports which DO NOT request for user provided parameters will work fine.
Local Machine has:
Windows 7 OS,
Visual Studio 2010.
Crystal Report 2013 installed
Server has:
Windows 2012 Server OS
Visual Studio 2010 Framework
Crystal Report 2013 installed
Any help to resolve this issue is highly appreciated.
Thank you.
Regards,
Abhi.
Anybody ever get u25azalea.dll or u212azalea.dll BarcodeC39ASCII function to work using
Crystal Report 13_0_8 and MSVC 2012 x64 ultimate ?
All I ever get printed in the report is *MYTEXT*.
This is the code in my custom formula
BarcodeC39ASCII({Qry_Conditions.city})
There is no barcode font in the format object, should there be one ?
I downloaded u25azalea.dl and u212azalea.dll for both x64 and x32
and copied then to
C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\
C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\
C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\Crystal Reports 2011\
and my report still doesn't show up with any barcodes.
I change target to x86 and x64 and still no barcode.
I tried BarcodeC39 and BarcodeC39ASCII and they don't work for me
I'm not getting any errors, its just that my report is showning *MYTEXTSTUFF* instead of a barcode.
what am i doing wrong ?
http://www.egbolig.dk/drift_bo_syd.rpt (HERE IS THE REPORT)
We are using SAP Crystal Report .NET Runtime files (http://scn.sap.com/docs/DOC-7824 newest version 13.0.9.1312) in our web asp.net application. Everything have been working fine, but we have can into problems when showing the certain kinda reports.
In our code get the reports sql statement using getSQLStatement.
Dim gp As New GroupPath() Dim sql As String = report.ReportClientDocument.RowsetController.GetSQLStatement(gp)
This will get the sql, and we use this sql (getSqlStatement) and attach a sql WHERE clause from the code to only get a certain number of records.
The report Drift_bo_syd.rpt has 5 tables, and the following sql statement.
Database/Show Sql Statement
SELECT "rekvstam"."Sel", "rekvstam"."Afd", "rekvstam"."Levadresse", "rekvstam"."Rekvisition", "rekvstam"."Lejemaal", "rekvstam"."Lejer", "rekvstam"."Udfoertaf", "rekvstam"."Udfoertdato", "rekvstam"."Krit", "Selskab"."Adresse", "Selskab"."Postby", "Selskab"."Tlf", "Selskab"."Fax", "rekvstam"."Kontor", "rekvstam"."Hjemme", "rekvstam"."Rekvdato", "rekvstam"."Aftale", "rekvstam"."InitialRet", "rekvstam"."Arbejde", "kreditor"."Att", "rekvstam"."Konto", "Selskab"."Navn", "Selskab"."Email", "Interessentadresse"."Navn", "Interessentadresse"."Adresse", "Interessentadresse"."Postby", "Interessentadresse"."Email1", "Interessentadresse"."Telefon_Fax", "Interessentadresse"."Type", "Interessentadresse"."Tlf1", "rekvstam"."tlfLejer", "kreditor"."Kred", "Interessentadresse"."Interessentnr" FROM (("Rekvstam" "rekvstam" INNER JOIN "Selskab" "Selskab" ON "rekvstam"."Sel"="Selskab"."Sel") LEFT OUTER JOIN "Kreditor" "kreditor" ON "rekvstam"."Kred"="kreditor"."Kred") INNER JOIN "Interessentadresse" "Interessentadresse" ON "kreditor"."Interessentnr"="Interessentadresse"."Interessentnr" WHERE "Interessentadresse"."Type"='K'
But if we run the report from our asp.net code, we get the following error:
Cannot determine the queries necessary to get data for this report. Failed to retrieve data from the database. Error in File Drift_Bo_Syd {97FED382-1BAC-4DB1-970F-9E098ECE28F1}.rpt: Failed to retrieve data from the database.
After a long time searching for a solution, we found out that if we place the column kred from the kreditor table on the report, the report will work. (field explorer / database fields / kreditor (table) / kred (column)
Very important is that the field "kreditor.kred" is a primary key of the table kreditor, and also used in the linking.!
(We can get the report to work if we call the sql statement with the "kreditor"."kred" in the SELECT statement.
SELECT "kreditor"."kred", "rekvstam"."Sel", "rekvstam"."Afd", "rekvstam"."Levadresse", "rekvstam"."Rekvisition", "rekvstam"."Lejemaal", "rekvstam"."Lejer", "rekvstam"."Udfoertaf", "rekvstam"."Udfoertdato", "rekvstam"."Krit", "Selskab"."Adresse", "Selskab"."Postby", "Selskab"."Tlf", "Selskab"."Fax", "rekvstam"."Kontor", "rekvstam"."Hjemme", "rekvstam"."Rekvdato", "rekvstam"."Aftale", "rekvstam"."InitialRet", "rekvstam"."Arbejde", "kreditor"."Att", "rekvstam"."Konto", "Selskab"."Navn", "Selskab"."Email", "Interessentadresse"."Navn", "Interessentadresse"."Adresse", "Interessentadresse"."Postby", "Interessentadresse"."Email1", "Interessentadresse"."Telefon_Fax", "Interessentadresse"."Type", "Interessentadresse"."Tlf1", "rekvstam"."tlfLejer", "kreditor"."Kred", "Interessentadresse"."Interessentnr" FROM (("Rekvstam" "rekvstam" INNER JOIN "Selskab" "Selskab" ON "rekvstam"."Sel"="Selskab"."Sel") LEFT OUTER JOIN "Kreditor" "kreditor" ON "rekvstam"."Kred"="kreditor"."Kred") INNER JOIN "Interessentadresse" "Interessentadresse" ON "kreditor"."Interessentnr"="Interessentadresse"."Interessentnr" WHERE "Interessentadresse"."Type"='K'
But it should not be necessary to include this field (which is the primary key and used in linking the report) in the sql statement,
BECAUSE it is not used in the report. So maybe this is a bug?
It has not been necessary in RDC Crystal Report or RAS Crystal Report in a classic asp envoriment.
Here is the code we use to set the reports SQL Statement)
Try
Dim conn As New SqlConnection(connString)
conn.Open()
Dim sd As New SqlDataAdapter(New SqlCommand(nySQL, conn))
Dim ds As New Data.DataSet()
Dim navn As String = report.Database.Tables.Item(0).Name
sd.Fill(ds, navn)
report.SetDataSource(ds)
conn.Close()
Catch ex As Exception
Throw
End Try
hi
how are you guys ..
i hope you all fine
here
i have PRINTER from zebra Company for labels, Model (GK420T), and i'm using windows form VS 2012/C# , and i want to make reports from Crystal Reports
so i tried first to print it from Crystal report viewer window and it's working very well , but when i tried to print the labels directly From
PrintToPrint(..) Method i got blank label from printer !!
so .. what's the problem ?! and how can i fix it ?!
thank you a lot guys .
Hi,
This is my first time at SCN. I am developing an application in VS2008 using VB.Net and Crystal Reports for VS2008. To make things easy I will give you the full story.
I have a report that displays only the best 5 golf scores (sorted ASC) Grouped by Golf Cub. Stopping the display to show only 5 scores was done by suppressing the Group if the "place" value was greater than 5. The datatable behind the report has many more scores in it.
When I attempt to set a Running Total or Insert a Summary (Sum) field for the (Golf Club) Group to get the sum of these 5 scores I get the sum of ALL scores for ALL players from that Club.
Ultimately I want to be able to sort the report based on the sum of those 5 scores ie. by Club.
Can anyone set me on the right path.
Thanks in advance,
John
Hi, i work with a versión 2013 of VSTO and i've installed SAP Crystal Repots.
Every time when i open a solution pops the form for the migrate the crystal reports versión.
I want to have references to the previous version in VSTO.
Is there any way that this form may not be displayed without having to update the references?
thanks for the help
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).
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.
Hi All,
I have a Visual Studio web application that uses Crystal Reports built using the designer of Crystal Reports 2011. The web application brings in the report(s) depending on which one is chosen by the user, connects to the db and then exports the report to a construction directory as a pdf. After all the processing is done the web app moves the created report to a directory for the web.
These have all been running fine for a while (years) and just recently we are getting the error "the system cannot find the path specified".
The application works fine in our development and our staging server environments. The production server is receiving the above error.
The environments are Windows Server 2008 r2 64bit, using Visual Studio 2010, Crystal Reports Runtime_13_0_13 and framework 3.5. For data we are hooking up to a SQL server 2008. Also the reports that seem to not be working are reports that use our CRUFL library. Once again these have been working for some time.
I have tried upgrading to CR Runtime 13_0_16 to which I received out of memory. I have since uninstalled all windows updates to when the reports last worked and reinstalled to CR Runtime 13_0_13 32 & 64bit versions. I am still receiving the system cannot find the path specified.
How can I find out what is causing this error.
Thank You in advance.
Jim
Hi
We have upgraded to CR2013 for Visual Studio 2012 and have a question regarding ApplyLogOnInfo.
Earlier in our code we did this to change logon settings:
Dim crDatabase As Database
Dim crTables As Tables
Dim crTable As Table
Dim crLogOnInfo As TableLogOnInfo
Dim crConnInfo As New ConnectionInfo()
Dim subRepDoc As New ReportDocument()
Dim crSections As Sections
Dim crSection As Section
Dim crReportObjects As ReportObjects
Dim crReportObject As ReportObject
Dim crSubreportObject As SubreportObject
'Set the database and the tables objects to the main report
crDatabase = crReport.Database
crTables = crDatabase.Tables
'Loop through each table and set the connection info
'Pass the connection info to the logoninfo object then apply the
'logoninfo to the main report
For Each crTable In crTables
With crConnInfo
.ServerName = SQLServer
.DatabaseName = Databas
.UserID = "xxxxx"
.Password = "xxxxx"
End With
crLogOnInfo = crTable.LogOnInfo
crLogOnInfo.ConnectionInfo = crConnInfo
crTable.ApplyLogOnInfo(crLogOnInfo)
crTable.Location = crTable.Name
Next
crSections = crReport.ReportDefinition.Sections
''Loop through each section and find all the report objects
''Loop through all the report objects to find all subreport objects, then set the
''logoninfo to the subreport
For Each crSection In crSections
crReportObjects = crSection.ReportObjects
For Each crReportObject In crReportObjects
If crReportObject.Kind = ReportObjectKind.SubreportObject Then
'If you find a subreport, typecast the reportobject to a subreport object
crSubreportObject = CType(crReportObject, SubreportObject)
subRepDoc = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
crDatabase = subRepDoc.Database
crTables = crDatabase.Tables
For Each crTable In crTables
With crConnInfo
.ServerName = SQLServer
.DatabaseName = Databas
.DatabaseName = Databas
.UserID = "xxxxx"
.Password = "xxxx"
End With
crLogOnInfo = crTable.LogOnInfo
crLogOnInfo.ConnectionInfo = crConnInfo
crTable.ApplyLogOnInfo(crLogOnInfo)
crTable.Location = crTable.Name
Next
End If
Next
Next
Now we have found out that this code also works, we only set ApplyLogOnInfo on the first table:
Dim crDatabase As Database
Dim crTables As Tables
Dim crTable As Table
Dim crLogOnInfo As TableLogOnInfo
Dim crConnInfo As New ConnectionInfo()
Dim subRepDoc As New ReportDocument()
'Set the database and the tables objects to the main report
crDatabase = crReport.Database
crTables = crDatabase.Tables
crTable = crTables(0)
With crConnInfo
.ServerName = SQLServer
.DatabaseName = Databas
.UserID = "xxxx"
.Password = "xxx"
End With
crLogOnInfo = crTable.LogOnInfo
crLogOnInfo.ConnectionInfo = crConnInfo
crTable.ApplyLogOnInfo(crLogOnInfo)
crTable.Location = crTable.Name
This code makes the reports display and print faster but we are not sure if this is the right way to do it.
Plz comment on this so we dont deliver something that will stop working for our customers.
Best regards
Kenneth
Hello all,
I have this problem, I have a work around but I don’t like it. I’m a crystal reports user a long time ago.
I use web services to print reports from “same services in the web”. I have my report file in the database, if I don’t have the rpt file in the report folder under iis dir I extract the file from de database then open the report, change the database connection in runtime and print the reports. This works fine, but I have an issue that I can’t solve.
Sometimes I need to impersonate (in code) the user to the admin (normally in windows server 2008 or 2012, for example to get the installed printers in the system) and when I open the reports with the impersonate option have the “failed open the report”, “don’t have permission”… don’t have permission? Why ? What I do so solve the problem: undo impersonation then use load then impersonation again. Can anyone explain why ?
Dim oRpt1 AsNewReportDocument
oRpt1.Load(Nome_Mapa, OpenReportMethod.OpenReportByDefault)
This behavior is since crystal report for visual studio 2003 to now ….
Thanks in advance.
Jorge Rocha
Hello,
I have recently upgrade my working station to SP16. When I run reports I have a slight glitch that make 2 of my fields be displayed on top of each others. I did not have this issue previously with SP15 it's also ok once exported in PDF or from Crystal Reports Designer.
The fields are close to the right border of the Report but there is place to display them. All of our reports have those information at the bottom going thru them is not realist.
Here is the issues in images:
Thank you.
I have a bunch of reports that were being created in CR 2008 - Well, most of them came from really old CR versions - I'm validating these reports with the CR .Net, but I have one report that I do not really know what it is happening there. If I open the report in designer everything is ok. But if I just open the report using the next code, I receive an exception. I've open the report in designer and I've removed all the components there and the behavior is the same. We have a dll which is the bridge between CR and the application, this is the interface that handles the calls to the report and as we have a lot of reports, we used to convert this component from C++ to C++/CLI and we kept the .rpt files without conversion. If I open the .rpt file in the last CR designer version and save the file, the behavior is the same. I've done some research regarding this and I've not found anything that could help, because I'm receving the error when I'm trying to load the report. Once again, this is not regarding permissions because I'm able to load a lot of .rpt files.
I've just done a quick C# code in a simple windows form project and the behavior is the same, I've tried all these options without success. Am I missing something?
CrystalDecisions.CrystalReports.Engine.ReportDocument report = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
report.Load(@"C:\arinvedtWtAmt.rpt", CrystalDecisions.Shared.OpenReportMethod.OpenReportByTempCopy);
report.Load(@"C:\arinvedtWtAmt.rpt", CrystalDecisions.Shared.OpenReportMethod.OpenReportByDefault);
report.Load(@"C:\arinvedtWtAmt.rpt");
report.ReportClientDocument.Open(@"C:\arinvedtWtAmt.rpt", 0);
Exception thrown in Load:
CrystalDecisions.Shared.CrystalReportsException was caught
HResult=-2146232832
Message=Load report failed.
Source=CrystalDecisions.CrystalReports.Engine
StackTrace:
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod)
at WindowsFormsApplication17.Form1.Form1_Load(Object sender, EventArgs e) in c:\Users\rmujica\Documents\Visual Studio 2012\Projects\WindowsFormsApplication17\WindowsFormsApplication17\Form1.cs:line 29
InnerException: System.Runtime.InteropServices.COMException
HResult=-2147483142
Message=
Invalid table number.
arinvedtWtAmt 40276_44480_{0B6283D9-4446-4EE7-A5F0-E14EAE5AD4D7}.rpt
Source=Analysis Server
ErrorCode=-2147483142
StackTrace:
at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
InnerException:
I really appreciate any advice here. Thanks!
Roberto M.
EDIT1: if I try the next code
this.crystalReportViewer1.ReportSource = @"C:\arinvedtWtAmt.rpt"
I have the attached alert from the Crystal Report Windows Forms Viewer.
EDIT2: I'm sending a copy of the report without any content just in case you are interested. Note that I've added the .txt. This file is .rpt.