I would like to know where to find the SAP Crystal Server 2011 SP4 .NET SDK. Client and Server required files for development in Visual Studio 2012.
I have a 60 days trial licence for evaluation.
Regards
I would like to know where to find the SAP Crystal Server 2011 SP4 .NET SDK. Client and Server required files for development in Visual Studio 2012.
I have a 60 days trial licence for evaluation.
Regards
Hello,
I am trying to deploy a test application that just consists of a form that has a CR report that has one text field that says "Hello World". I am using the CR for VS that I downloaded from http://scn.sap.com/docs/DOC-35074 (CRforVS_13_0_5.exe) and VS 2012. The program works perfectly in the IDE, the problem comes when I try to publish it for Click Once deployment. In the Prerequisites, I select .NET Framework 4.5 and the prerequisite that I made using CRRuntime_32bit_13_0_5.msi. When I run Setup in the test environment, when it tries to install CR, I get a message, "Unable to install or run the application. The application requires that assembly log4net Version 1.2.10.0 be installed in the Global Assembly Cache (GAC) first" I never got this with VS 2010 and CR for VS 2010.
What do I need to do to get CR to install? What I learn here will be applied to the application I am writing to sell.
Thank you
Hello,
We have a VS .NET application that currently uses the runtimes from CRVS2010 that are then distributed to our users along with the install to our app using the CRRuntime_32bit_13_0_5.msi. If we were to upgrade all of our reports to the new Crystal 2013 version, are there any new runtimes that need deployed to users in order for the reports to work properly? Thanks you very much!
I'm using SAP Crystal Reports, developer version for Microsoft Visual Studio v13.0.2000.0.
My code is as follows:
foreach (var report in reportList)
{
var document = new ReportDocument();
document.Load(fullPath);
document.SetParameterValue(fieldName, value);
var reportStream = (MemoryStream)document.ExportToStream(ExportFormatType.PortableDocFormat);
document.Close();
}
It works perfectly. If something goes wrong on my database, I will get the "Failed to retrieve data from the database" error which is fine and expected. However, if I catch this error, recover my database problem and try again (next run of the foreach loop), my application will hang on the call to ExportToStream.
I tried the same scenario witch Crystal Reports XI application. At first If I try to preview my report it will give me the "Failed to retrieve data from the database" error. Then if I recover my database error and retry the preview, I will get a "Accessing Database" message in the left corner and it won't be fixed until I reopen the Crystal Report application (reopening the report file does not fix the problem).
Any help is much appreciated.
I have been using VS2012 Professional with Crystal Report for Visual Studio (13.0.5.891) for the last two months and was working fine. Today when I load a project and went to make a change to the template, I got a message box that just says "Invalid Keycode", even though I was using it last night just fine.
I have read a bunch of stuff where other users were getting this error but everything I found was for previous version of CR and VS.
Uninstalling everything and reinstalling isn't a realistic option.
Hi,
I have created a VB .Net treatment which generates a lot of PDF documents with Crystal Reports 2008.
For that, I use the method ExportToDisk of the class ReportDocument.
I generate a lot of report and when the number exceeds 30000, I get the following error :
Not enough memory for operation. - | at CrystalDecisions.ReportAppServer.Controllers.PrintOutputControllerClass.ModifyPrinterName(String newVal) |
at CrystalDecisions.CrystalReports.Engine.PrintOptions.set_PrinterName(String value)
at FCS.GenerateReportBO.GenerateReport.SetPrintOptions(ReportDocument poReportDocument, String psOrientation, String psPaperSize, String psPaperSource, Single pnTopMargin, Single pnBottomMargin, Single pnLeftMargin, Single pnRightMargin)
at FCS.GenerateReportBO.GenerateReport.PageSetup(ReportDocument poReportDocument, String psSize, String psOrientation, String psPaperSource, Single pnTopMargin, Single pnBottomMargin, Single pnLeftMargin, Single pnRightMargin)
at FCS.GenerateReportBO.GenerateReport.SaveReportAsPdf(ReportDocument pReportDocument, String pWaterMark, String pOrientation, String pSize, Single pMarginTop, Single pMarginBottom, Single pMarginLeft, Single pMarginRight, String pFileName)
at FCS.ReportBO.Report.SaveReportAsPdf(String pFileName, String pMKFileName)
at FCS.SalesReportsBO.RptS14.SaveReportAsPdf(String pFileName, String pMKFileName)
at FCS.Batch.PurgeArchive.PurgeArchive.Archive(Int32 pnIndex, Int32 pnDocumentId, String psPDFCompleteFileName, String psPDFCompleteFileNameMKE)
at FCS.Batch.PurgeArchive.PurgeArchive.ExecuteTreatment()
Can you help me to solve this ?
Best Regards,
Séverine
This code fails:
SortController.ModifySortDirection(sort, CrSortDirectionEnum.crSortDirectionNoSortOrder)
It throws this error:
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in <my program>.exe
Additional information: The sort direction is not valid
The parameter "sort" is a CrystalDecisions.ReportAppServer.DataDefModel.Sort representing the sorting for a group. The condition field of the group is a string field, so original order is valid. In fact in the CR designer I can set the sort order of this group to "original order" with no problem.
- rick cameron
Softrak
We are a software vendor that uses SAP Crystal Reports for Visual Studio (2011) to render the reports from our application. Our product currently runs on SQL Server 2008 R2, and we are trying to get it certified for SQL Server 2012. The testing of our own application code has gone very well, requiring no changes to the application when running under 2012.
However, when trying to create any reports in the 2012 environment, we encounter the message, "Index (zero based) must be greater than or equal to zero and less than the size of the argument list." As a workaround, we have found that if we install the 2008 R2 version of the SQL Server Native Client, reporting returns to normal. Of course, we cannot get certification for our product on SQL Server 2012 if our reporting still requires the older Native Client. We're looking for an update to Crystal Reports that will allow it to work with SQL Server 2012.
In my web application i am genarating reports. I am using crystal reports 2008 with VS2010 and the database is SQL server 2008. There is no issues genarating reports in my local machine. After i host my application on the server, I am getting error "Failed to open the connection." while i run the report. I have installed crystal report run time files version 13.0.2.
Thanks in advance.
Hello!
I want to produce a report using an arraylist of .net objects as datasource. For this I defined a public class in my project having some properties. Now my question is: Is it possible to use nullable types as types for the properties? E.g. is it possible to use "int?" or "long?" as type for a property?
If not, is it planned to support nullable types in the next release of crystal reports?
Thank you for your help!
Best Regards,
Joachim Lukasser
I'm writing an application which changes Crystal Reports database access parameters in report files. I open reports witin a .NET windows forms app and apply the SDK functionality to change driver type (ODBC/OLEDB), server name, database name, user, password, authentication type etc. I'm having a problem with the database name. My code DOES change the specific properties of the table ConnectionInfo (in subreports too) but fails to update the general SQL Query within the report. This results in the report still accessing the old database.
So if the original report was configured to access database_1 and I'm changing it to database_2, it will have all table properties properly changed to database_2. It will still have database_1 in the query though. The database name remains unchanged in both the SDK RowsetController.GetSQLStatement() result and in the Crystal Reports Developer query view (Database->Show SQL Query...).
Also I have to have both databases (database_1 and database_2) online while the conversion takes place, otherwise I get exceptions on either GetSQLStatement(when database_1 is offline; becuase it still refers to it) or SetTableLocation (when database_2 is offline - this is expected and acceptable behavior though). If both db are online, there are no errors.
Here is exactly what I'm using:
1)CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(filePath, OpenReportMethod.OpenReportByTempCopy)
(...)
2) Make and fill CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag
3) Iterate through CrystalDecisions.ReportAppServer.DataDefModel.Tables and apply all properties with SetTableLocaiton() for each one.
4) Repeat with each subreport
5) RowsetController.GetSQLStatement() to view the report's sql query.
Is there some way to update the query basing on the new table ConnectionInfos (which seem to be set properly)? I don't even see any possibility of manually updating the query (GET, search&replace, SET).
I'm using:
.NET 4.5
Visual Studio 2012
CR for VS 13.0.5
Crystal Reports Developer 9.2.2.693 for results verification (source reports are also created with it)
i am using crystal reports 13.0.2000. Is it possible to use nullable types as types for the properties? E.g. is it possible to use "int?" or "long?" as type for a property?
I am getting error when i am using nullable types. i know in previous versions the same error was there. Is it solved in any new version of crystal report?
Thank you for your help!
Best Regards,
Lalu Augustine
Hello.
We are using Visual Studio 2010 Express for ASP.NET and Crystal Report 2010 (13.0.6)
We can generte reports through Web site. The reports are generated successfully. We want to save the reports in PDF Format on the local disk. When user clicks on Export, dialog box to select the file format to export the report. But when User selects PDF format or any other format and clicks on "Export" button, the same page is displayed again. Save File Disalog Box is not displayed to select the location to save and name the file.
Is there any setting to enable the Save Dialog Box. If yes, how to do it.
Similar action is working fine in our project developed under visual studio 2005 and Crystal Report 10.2
Please help ASAP.
The connection will be a Enterprise type of connection. specifying a servername, username and password.
The export file required should be in pdf format.
No UI output is required for reports or for the exportation process.
The format of the reports is Crystal Reports.
The end users will not be allowed to perform any change in the reports.
Could someone help me to get a full solution for this request?
a web services bassed solution is being preferred at the time.
Thanks in advance.
We are using CR4VS2010 as part of a WinForms project. The project includes a form that uses the CrystalDecisions.Windows.Forms.CrystalReportViewer control. Our users asked for the viewer to have the viewer default to the last printer used in our application, so we added some code to set the printer name. This allows them to click the "Print" button in the viewer and have the printer automatically set to the specific printer, which may not be their default printer.
The code accesses a CrystalDecisions.CrystalReports.Engine.ReportDocument object. From that, we access the CrystalDecisions.CrystalReports.Engine.PrintOptions object, and from that we set the PrinterName property. This worked well in house. When we made the release available to our user base, our support team has been swamped with users who are getting InvalidSpecifiedPrinter exceptions on the line where we set the PrinterName property.
For some users, the problem is temporarily fixed by logging off and then logging back in their computer. For other users, the problem happens 100% of the time, but only for particular printers. We have tested SP4 and SP6, with the same symptoms on both versions.
I created a very simple test project that easily recreates the symptoms. It has a button that uses the "simple" technique we tried. It has a button that tries to set the printer by using CopyFrom with PrinterSettings and PageSettings classes. It also has a button to print directly to the printer, without involving the print preview control.
The simple button recreates the "invalid printer" error. This test project catches it (something I will be adding to our code as an interim fix).
The "printer settings" button is even less reliable than the simple set of the printer name. It constantly gets "not supported" and "index out of bounds" exceptions when referencing Duplex mode or Collation properties.
The "direct print" button seems to work 100% of the time. This is just there for demonstration, as our users don't always want to print directly to the printer. They want the preview option...
Can anybody offer advice on what I should be doing differently to get the preview control to default to the specific printer? I have attached the sample project source. It's actually a zip file, so you'll have to rename it after downloading it.
Thanks,
- Don Benson -
Tribute Inc.
I have some .rpt files that are created using Crystal Reports XI. I need to create a client (web page) to send a request to a server (wcf windows form application) to create these reports for some specific parameters. The thing is this request can lead to running of 10-15 reports for 2000 times (2000 accounts).
I have read about all the available options to create reports in my .Net server. This is a summary of what I found:
- There are at least four ways of programing CR:
1) using report engine, which is using .net sdk and CrystalDecision.Crystalreports.engine namaspace
2) using RAS - in process, using crystaldecisions.reportappserver namespace and same server
3) using RAS - out-process, which is using Crystal Report Server and its sdk
4) using BOE server
- There are managed and unmanaged reports.
At least one of their differences is about where the reports are stored, published on the CR server or on a drive path.
I have tried the first two options and it takes 30 hours to create the reports which is not acceptable and tells me I'm not using the best practices.
Could you please guide me into the best way of doing so?
Thanks,
Shadi
I have a Crystal Reports 2008 report with dynamic parameters (e.g Distribution point which are referring to a column DP.distributionPoint). When opening the report in my application (C#) I am setting the datasource at run time and report opens properly and on the Enter Parameter Values window for report shows available values for distribution point (DP.distributionPoint).
Code I am using to set datasource dynamically (note there is no subreport for this report, but report is referring to database tables and views from the database)
SetDataSource(ReportDocument report, string serverName, string databaseName)
{
// Set the connection for the main report.
report.DataSourceConnections[0].SetConnection(serverName, databaseName, true);
TableLogOnInfo tableLogonInfo = new TableLogOnInfo();
ConnectionInfo connectionInfo = new ConnectionInfo();
connectionInfo.DatabaseName = databaseName;
connectionInfo.ServerName = serverName;
connectionInfo.IntegratedSecurity = true;
foreach (Table table in report.Database.Tables)
{
tableLogonInfo = table.LogOnInfo;
tableLogonInfo.ConnectionInfo = connectionInfo;
table.ApplyLogOnInfo(tableLogonInfo);
table.Location = tableLogonInfo.ConnectionInfo.DatabaseName + ".dbo." + table.Location.Substring(table.Location.LastIndexOf(".") + 1);
}
}
I need to set datasource every time I open the report, which is a time consuming process in case of a large report. My plan is to set datasource on the report and save the report with location information, so next time I need not to call set datasource.
But when I test the application without setdatasource, I can open the report but Available Values for Distribution point in ‘Enter Parameter Values’ window is not showing now.
Note:
I have checked the table.LogOnInfo.ConnectionInfo.ServerName and table.LogOnInfo.ConnectionInfo.DatabaseName for all the tables/views in the report it is same as the database I am connecting to.
If I set set table.Location I can view Available Values List.
Questions:
Why available values list not showing when I open the report without setdatasource function?
Is it possible to change/control the available values for FieldParameter programmatically in Crystal Reports 2008?
Message was edited by: Ludek Uher
Message was edited by: Ludek Uher
Hello,
When I do the following code(see below) on the line v_objRpt.VerifyDatabase() if one of the view of the report is in error the W3WP crash and I'm unable to trap the error.
I am running in VS2010 using Crystal Reports for Visual Studio version 13.0.6.1027. Are you aware of this issue and is there any way to fix it?
PrivateFunction ChangeLocation(ByRef v_objRpt As CrystalDecisions.CrystalReports.Engine.ReportDocument) AsBoolean
Try
Dim objConnectionInfo AsNew CrystalDecisions.Shared.ConnectionInfo
Dim objSubRpt As CrystalDecisions.CrystalReports.Engine.ReportDocument = Nothing
Dim objCrTable As CrystalDecisions.CrystalReports.Engine.Table = Nothing
Dim objCrTableLogonInfo As CrystalDecisions.Shared.TableLogOnInfo
Dim objSubRptDoc As CrystalDecisions.ReportAppServer.Controllers.SubreportClientDocument
Dim objNewConnInfo AsNew CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo
Dim objConnPropBag AsNew CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag
Dim objLogPropBag AsNew CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag
Dim objTB As CrystalDecisions.ReportAppServer.DataDefModel.ISCRTable
Dim objRptDoc As CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument = v_objRpt.ReportClientDocument
objConnPropBag.Add(CONNINFO_DATABASE_DLL, "crdb_oracle.dll")
objConnPropBag.Add(QE_DATABASE_NAME, "")
objConnPropBag.Add("QE_DatabaseType", "Oracle Server")
objLogPropBag.Add("Server", "DB_SRV")
objLogPropBag.Add(LOGONPROP_TRUSTED_CONNECTION, False)
objConnPropBag.Add(QE_LOGON_PROPERTIES, objLogPropBag)
objConnPropBag.Add(QE_SERVER_DESCRIPTION, "SB_SRV")
objConnPropBag.Add("QE_SQLDB", True)
objConnPropBag.Add(CONNINFO_SSO_ENABLED, False)
objNewConnInfo.Attributes = objConnPropBag
objNewConnInfo.UserName = "USR"
objNewConnInfo.Password = "PWD"
objNewConnInfo.Kind = CrConnectionInfoKindEnum.crConnectionInfoKindCRQE
Dim objNewTB As CrystalDecisions.ReportAppServer.DataDefModel.ISCRTable
ForEach objTB In objRptDoc.DatabaseController.Database.Tables
objNewTB = objTB.Clone()
objNewTB.ConnectionInfo = objNewConnInfo
objNewTB.QualifiedName = "OWNER."& objTB.Name
objRptDoc.DatabaseController.SetTableLocation(objTB, objNewTB)
Next
ForEach objSubRpt In v_objRpt.Subreports
objSubRptDoc = objRptDoc.SubreportController.GetSubreport(objSubRpt.Name)
ForEach objTB In objSubRptDoc.DatabaseController.Database.Tables
objNewTB = objTB.Clone()
objNewTB.ConnectionInfo = objNewConnInfo
objNewTB.QualifiedName = "OWNER."& objTB.Name
objSubRptDoc.DatabaseController.SetTableLocation(objTB, objNewTB)
Next
Next
Try
If chkRedoVerify.Checked Then
v_objRpt.VerifyDatabase()
EndIf
Catch ex As System.Exception
'TODO Trace Error
Throw ex
EndTry
objConnectionInfo = Nothing
If objSubRpt IsNotNothingThen
objSubRpt.Dispose()
EndIf
objSubRpt = Nothing
If objCrTable IsNotNothingThen
objCrTable.Dispose()
EndIf
objCrTable = Nothing
objCrTableLogonInfo = Nothing
Exit Function
Catch ex AsException
Throw ex
EndTry
EndFunction
Thank you.
Charles
Dear All,
While exporting a crystal report with many columns and A3 in MS word it divides it into multiple pages.
•We are using In build Web based report viewer to export to word. However, issue is occurring at CR designer level also.
•Version is Crystal reports 10.
•Tried removing the printer properties by selecting 'No Printer' option.
We need to create reports with large columns and can not affod it on A4 page size.
Issue seems to be that CR viewer is not able to pass the A3 page property to Word and adjusting it in A4,is there any way to pass that correctly?
Please let me know if there's any work-around solution to it.
Thanks in Advance.
Message was edited by: Ludek Uher
Hello,
I just recently updated my website solution from vs2005 to vs2012 and then installed CRforVS_13_0_7. I then added a picture object to a report. From there, I right clicked on the picture object, chose format object, went to the picture tab, clicked on the x-2 button, and then filled in the {command.RLogo} field that contains the path to the dynamic image I want to display based off of which user is associated with a job. I get no errors and it dynamically displays the correct image when I look at the report in the Main Report Preview, however, when i view the report in a browser on my development machine the default image always displays. Any help would be greatly appreciated.
Thanks,
Cory