Hi
I'm trying to install Crystal for VS 2010 on a Windows 7 machine. I've read the previous posts and tried all of the possible workarounds, with no luck. Still getting the error. Is there any new information on resolving this problem?
Thanks,
Terry
Hi
I'm trying to install Crystal for VS 2010 on a Windows 7 machine. I've read the previous posts and tried all of the possible workarounds, with no luck. Still getting the error. Is there any new information on resolving this problem?
Thanks,
Terry
I’m having difficulties getting the runtime to work correctly.
I’m setting up our new build server. The web project uses CR2010. I’ve installed the SP3 version of the 32bit runtime. Using MSBUILD to build the web project I am getting the following error:
ASPNETCOMPILER : error ASPRUNTIME: Type 'CrystalDecisions.Shared.CrystalReportsException' in assembly 'CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' is not marked as serializable.
This environment works fine on our old build server (win2003) but not on the new server (win2008).
Any ideas as to what I’m doing wrong?
Hello everybody,
our reports are developed in SAP Crystal Reports Version 14.0.2.364 RTM. The reports are being called by a c# dll, written in.NET 4.0 and CR for VS2010. This works nice and without any problems.
Now, we have a new customer and our software should be used on a Windows 2008 R2 terminalserver. We have installed the runtime CRforVS_redist_install_32bit_13_0_4.zip on the system. On this server, some reports crashing at the call of ReportDocument.Close().
Close() is being called as follows:
MainCRWReport.Close();
MainCRWReport.Dispose();
GC.Collect();
GC.WaitForPendingFinalizers();
All other customer installations work fine with this calls.
A little bit curious is, that if "Crystal Reports .NET-Logging" is enabled, the application doesn't crash. When logging is disabled the crash can be avoided only if we delete the line MainCRWReport.Close() from our code.
I have tried to analyse the crash dump via Microsoft Debug Diag, but I didn't find a solution.
Do you have any idea, why Close() raises a crash?
We are porting currently our c++ application from Win 32 to Win 64 bit and want to use the new runtime to generate reports.
Runtime: CRRuntime_64bit_13_0_3.msi
The reports are based on a sql query command on ODBC database connection (MS SQL or Oracle) .
Our application replaces by API call the stored ODBC database with production database during execution/exporting of the reports.
We always got error as follows when executed a report at 64bit platform:
System Exception Handler: System.Runtime.InteropServices.COMException (0x800002CD): Failed to load database information.
Error in File EventDensity {4B302108-644E-4E2D-9EFA-3418FB4FAFA9}.rpt:
Failed to load database information.
at CrystalDecisions.ReportAppServer.Controllers.DatabaseControllerClass.SetTableLocation(ISCRTable CurTable, ISCRTabl
e NewTable)
at CrystalDecisions.CrystalReports.Engine.Table.set_Location(String value)
at ReportGen.exportReport()
Destruct ReportGen
CmdCrystalReport FncFreeFunctionData
But if we compile our application as 32bit and use CRRuntime_32bit_13_0_3, report is generated correctly.
Any Idea whats wrong?
Here is a part of or source code that we use to set the runtime database connection and try to exprt the report:
BOOL exportReport()
{
try
{
//Setup the connection information structure to be used
//to log onto the datasource for the report.
crConnectionInfo = new ConnectionInfo ();
crConnectionInfo->ServerName = pconf->getConnectDSN(); //physical server name or odbc DSN
ProviewDBConnection* pDBConn = pconf->getProviewDBConnection();
crConnectionInfo->DatabaseName = pDBConn->getDatabaseName(); // use the default database
crConnectionInfo->UserID = pconf->getConnectUID();
crConnectionInfo->Password = pconf->getConnectPWD();
//Get the table information from the report
crDatabase = crReportDocument->Database;
crTables = crDatabase->Tables;
//Loop through all tables in the report and apply the connection
//information for each table.
for (int i = 0; i < crTables->Count; i++)
{
crTable = crTables->Item [i];
crTableLogOnInfo = crTable->LogOnInfo;
crTableLogOnInfo->ConnectionInfo = crConnectionInfo;
crTable->ApplyLogOnInfo(crTableLogOnInfo);
crTable->Location = crTableLogOnInfo->TableName->Substring(crTableLogOnInfo->TableName->LastIndexOf(".") + 1);
//crTable->Location = crTableLogOnInfo->TableName->ToUpper();
}
exportPath = exportPath->Insert(exportPath->Length ,S".");
exportPath = exportPath->Insert(exportPath->Length ,exportFileSuffix);
Console::Write("Exporting to ");
Console::Write(exportPath);
Console::WriteLine();
crReportDocument->ExportToDisk(exportFormat, exportPath);
}
catch(Exception* e)
{
Console::WriteLine(S"System Exception Handler: {0}", e);
TrcPrintfEx(PV_TRC_UTI, TRC_LVL_ERR,
"ReportGen::export() System exception:\n"
"Message:\n%s\nStacktrace:\n%s",
e->Message,e->StackTrace);
errorMessage = "Error:\n";
errorMessage = errorMessage->Insert(errorMessage->Length, e->Message);
String* newLine = "\nStackTrace:\n";
return FALSE;
}
return TRUE;
}
Straight to the problem.
After applying SP4 , in the preview screen lines of text in the report overlapped, and the printed result also not align&space correctly .
Our problem is like the one in http://scn.sap.com/message/13528996.
I've red that the fix is in update for SAP Crystal Reports, developer version for Microsoft Visual Studio (previously SP5)
due on Q1 2013.
At that same projection date of patch release; we're releasing to production server a new application that uses the new report engine.
So we're in need of an immediate fix, before Q1 2013.
Is it possible that we could have the problem fixed, without patching the report engine?
If a hotfix is out of the question, but we're prepared to use a beta hotfix if available.
Is the technical assistance from SAP Crystal Single Case Support Services an option as a solution ?
What technical issues, SAP Crystal Single Case Support Services able to handles ?
We're located in jakarta, Indonesia.
Thanks
Currently I am trying to migrate my MFC project from VC 6.0 to VC 2010, I have installed crystal report for visual studio 2010, and replaced crystal report
viewer 9 with crystal activex report viewer control 13.0. But it does not work properly for running the program. Is there any example for c++ of crystal report for vs 2010, as I only find examples for .Net and c#?
By the way, there is a help file name crnet_api_2010.cab after installation, and when you unzip this file,there would be a list of .htm files. Do any one knows
how to open these files as some kind of user manual that you do not need to open .htm file one by one?
Thanks for your answer.
Hi,
I downloaded, installed and figured out Crystal Reports 2 weeks ago. (first timer)
Created 5 database views and 5 reports, one per view.
It worked fine for a while and all of a sudden reports was being generated with most data not in it anymore.
I'm creating the reports in my code as below.
All worked fine and I changed nothing in the reports nor the views.
The only thing that DID is add some columns to tables being used in the views, however these fields are not being used in the views at all.
I guess I just have to "drag and drop" the fields back onto the report but the major concern now is what if this happen again in the future.
It's really a major issue since this is a web application being used by clients and I will have no warning whatsoever if this happen once we go to production.
string path = Server.MapPath(string.Concat("~/Reports/XXXXX/", fileName)); | ||
var report = new ReportClass {FileName = Server.MapPath(Url.Content("~/Reports/rpt_xxxx_xxxx.rpt"))}; | ||
report.Load(); | ||
report.SetDatabaseLogon("aaaa", "bbbb", "(local)", "ccccc"); | ||
var parameterValue = new ParameterDiscreteValue {Value = id}; | ||
var parameter = new ParameterValues {parameterValue}; | ||
report.DataDefinition.ParameterFields["recordId"].ApplyCurrentValues(parameter); | ||
report.ExportToDisk(ExportFormatType.PortableDocFormat, path); | ||
return path; | ||
} |
I'm using:
Crystal Reports 2011
SQL Server 2008
C#
Again, all was working perfectly fine for a while, so......
Hi Everyone,
I have Crystal Reports 2011 (version 14) using with Visual Studio 2010 . In one of report I am trying to access store procedure, store procedure return id as a result and id being used as {Command.HomogeneousCurrencyID} in formula but I am getting error "A number is required …. Error in formula.. (See full error details in attachment)" when I access through IIS.
During debugging report, I was getting correct value for {Command.HomogeneousCurrencyID} in formula from store procedure.
This works fine when I launch that report in Visual Studio 2010 development environment.
Help would be greatly appreciated.
Regards,
Wasique
Hi Everyone,
I want detail steps to upgrade Crystal reports 10.5 to Crystal report 2008 (12.x) with visual studio 2008.
As i want to generate dynamic crystal crystal reports using RAS APIs programatically from scratch using C#.
Thanks
Sunilbabu
I've reviewed the information in this discussion: http://scn.sap.com/thread/1347155
That information does not allow me to access the revision number (found on the statistics tab of the Summary Info dialog.
I have tried the .Net FileVersionInfo object and FileInfo. Neither has that property or anything with the same value. Windows Explorer does not expose it.
Is the revision number available?
Hi,
I am unable to get the parameter default value from the report.
I have tried parameterFieldDefinition and defaultvalues properties. But nowhere i can able to get default value for the parameter.
Also i have refered this linkhttp://scn.sap.com/thread/2036996 which talks more about this issue.
In that link we have the following ADAPT Number:ADAPT01582059 Set for Fix Pack 4.2 for CR 2008 and SP for CR For VS 2010.
This issue is not available in any of the CR For VS 2010 service pack fixed issue.
Is it fixed and released in any of the service pack?
So could you please assist us how to proceed on this issue.
Thanks in advance.
Somasekar.T
Hi,
I am developing an application in Visual Studio 2008 which uses Crystal Reports 2008. Due to the new support sight, .NET cannot download the Redistributable Packages when installing the application on new computer.
If possible, could someone direct me to the CR 2008 Redistributable .MSI for .NET 2008. This would be greatly appreciated.
Thanks,
Dave
Hi,
I want to know the difference between ToText and ToWords functions?
If possible, Please give me some example
Thank you!
Hey guys,
hope somebody could help me with this, cause i'm kind of stuck here.
I'm using Visual Studio 2008 with Crystal Reports. When I open the report for the first time - it shows the proper data.
But when I close the report and open it up again, it contains the data twice. And so when I open it up a third time, data is there three times.
I already checked the Datatable, it is providing the right data. At the moment of loading the report, it only contains the relevant information.
So I looked for some solutions and found out that there's the option to "Discard Data When loading report", so i checked it, but nothing changes.
I also found that in older versions of CR there was an extra option "Save data with report" - i can't find this anywhere in my report options/settings.
Hope somebody can give me an hint about that. like I said, i'm kind of stuck here.
Hi
I am a mid size firm, I had built an application based on VS 2008. I have come across this document
http://scn.sap.com/docs/DOC-21575 just click on VIEW DOCUMENT.
This document says we need a OEM contract for Commercial Hosting. Now as CR inside VS 2008 and VS 2008 itself is EOL & Out of support do I need to sign any OEM contract with anybody for its hosting or any kind of Web redistribution.
Kindly reply
Viraj.
I am trying to pass 2 datasets to an existing crystal report. They each have the same table name of 'LossData' but the tables are stored in date specifically named SQL databases. Any report I run using 1 dataset works fine. When I run the reports that employ 2 datasets, I am noticing that the table name is working properly for the first table (index 0). but the second table (index 1) is changing the tablename from 'OldLossData' to LossData_1, so my connection fails and formulaas can't be passed. Sample code below:
Dim _db AsNewSqlDatabase(GetConnectionString(_DbName))
Dim ds AsDataSet = _db.ExecuteDataSet(CommandType.Text, "select * from LossData")
Dim cr1 AsString, cr2 AsString, cr3 AsString, cr4 AsString
Dim oldDatabase AsNewSqlDatabase(GetConnectionString(_oldDbName))
Dim oldDs AsDataSet = oldDatabase.ExecuteDataSet(CommandType.Text, "select * from LossData")
Dim cr AsNew CrystalDecisions.CrystalReports.Engine.ReportDocument
cr.Load(
Path.Combine(My.Settings.ReportPath, "LargeLossDetail.rpt"))
cr1 = cr.Database.Tables(0).Name 'Works properly and returns table name LossData
cr2 = cr.Database.Tables(1).Name 'Works properly and returns table name OldLossData
cr.Database.Tables("LossData").SetDataSource(ds.Tables(0))
cr.Database.Tables("OldLossData").SetDataSource(oldDs.Tables(0))
cr3 = cr.Database.Tables(0).Name 'Works properly and returns name LossData
cr4 = cr.Database.Tables(1).Name 'IMPROPERLY RETURNS NAME LossData_1 instead of OldLossData as intended
So as you can see, once the table name changes in the last line code, my program fails to work since the formulas are looking for table names of LossData (which work) and OldLossData (which are not recognized due to this change).
To add just a bit of confusion, this program works fine on my Windows XP Pro PC but only has this issue on the PC I am installing using Windows 7 (32 bit run time).
Any help would be sincerely appreciated !! Thank you and Happy Holidays !!
Dan
We are currently using CR 11 with Visual Studio C++ and would like to move to CR 13 or 14.
We've looked over some of the documentation and forum responses and were hoping to confirm what is required. We would welcome any responses, but would especially like to get a response from someone at SAP (Ludek and Bhushan have been very helpful with their responses to others).
As mentioned above, our current environment is:
Visual Studio C++
Crystal Reports 11 (CRViewer.DLL and CRAXDRT.DLL)
Using User Defined Functions via COM (some of these interact with our C++ DLL's)
We would like to use Visual Studio 10 (C++). At this point, we believe we need to do the following:
Use the .Net DLL that is part of CR 13 (instead of CRAXDRT.DLL) (possibly having a C# DLL that interacts with the Crystal and then calling this DLL from our C++ code).
I see there is User Defined Function support via .Net, although it wasn't clear to me if we could continue to use the COM User Defined Function approach or not. Is it still an option to use the COM User Defined Functions or is it required to switch to the .Net User Defined Functions.
If anyone has any input on these assumptions, it would be greatly appreciated.
Thanks in advance,
Dave
- version: 13.0.4 (32bit)
- CLR: 4.0
- plattform: WPF (Windows Presentation Foundation)
I'm using the WPF Crystal Report Viewer. If I click the print button, the application simply crashes showing the window telling you that you could send this information to microsoft.
To avoid any other chance of bug, I developed a sample app with a Report within showing just a label. It only happens on Windows XP. On Windows 7 or Vista machines, it prints just fine.
I disabled the firewall and antivirus as well and I run the app with administrative priviledges.
Hello Friends,
I am using Crystal Report 13 (SP 2) for Visual Studio 2010. I have crated a CR and exported it as PDF. There is a field in my CR that contains data for approx 2 or 3 paragraphs. I have set alignment of that filed to Left. The text of that field was looking fine in preview. But in exported pdf file it contains extra space.
Please see below image for reference:
Right and center alignments are also generating extra space, and justified is not suitable in my report.
I followed many posted regarding the issue on this forum, but did not find them helpful. Please help me and guide me, what should I do to resolve this issue.
I will be very thankful to you.
Regards,
Namrata Mathur
In Crystal Reports 11 there is an "Embeddable Crystal Reports Designer Control" (CRDesignerCtrl.DLL). We can add this control to a form and have the possibility to modify reports at runtime. Are there in Crystal Reports 2011 (will become available in the future) something to do the same?
thanks.