"Load report failed" after upgrading to Crystal Report for VS 2010
I switched to Visual Studio 2010 few months ago. Today, I needed to update my Crystal Report reports, so I installed the Crystal Report for Visual Studio 2010 on my local server. I updated my reports and it works fine on my local server.
On my remote server, I installed the Crystal Report runtime engine for Framework 4.0 (note that my project use the framework 3.5) and published my project. But now I got the following error when I want to create a report "Load report failed". I double-checked the path of my report and its permissions (note that it was working before the update).
Am I missing a step ?
Thanks for your help.
Edited by: David1111_ on Mar 1, 2011 6:08 PM
Edited by: David1111_ on Mar 1, 2011 6:09 PM
Googling 'FILE LOCKED WITH ONLY READERS' I came up with the following:
http://forum.sysinternals.com/topic21378.html
So, no, that does not appear to be the issue.
However my assertion - given that the correct dlls are loading - is still that either the report is not there (do you see it loaded in Process Monitor?) or the process has no access to either the actual rpt or the temp files that the print engine creates. Those really are the only reasons for report load errors.
This being a web app, try a simple win app - as a test. All you need is the viewer and CrystalreportViewer1.ReportSource = <path to report> (use a saved data report). Compile, throw the exe on the server. Run. What happens there?
- Ludek
Similar Messages
-
Some reports do not work after upgraded to Crystal Report 2008
Hi All,
After upgraed from Crystal Report XI to Crystal Report 2008, some reports work fine. others not. All of the not-working reports have the same problem: Database connection failed.
And I can even not be able to create a brand new report. The problem looks like following:
1. Created a new ASP.NET solution in Visual Studio 2008. The page file is default.aspx
2. Created an empty Crystal Report file: CrystalReportTEST.rpt
3. Asign CrystalReportTEST.rpt to default.aspx
4. Run default.aspx. It works fine
5. Just connect to database without place any field to the report
6. Run default.aspx again. It does not work. It shows blank screen with the message "Database logon failed." on the top-left corner.
Regards,
TripleHi Amit,
I have tested many times again for creating new report in new solution. It looks like that, the preview in VS2008 always work fine, but when runing the application, sometimes it works sometimes does not work. I have not still found the role. Following step shows my testing process:
1. Start Visual Studio 2008
2. Go to menu "File->New->Web Site..."
3. In dialogbox "New Web Site"
a. Highlight "ASP.NET Crystal Reports Web Site"
b. Select location "File System"
c. Select language "Visual C#"
d. Select "E:\JL\CrystalReportsWebSite1"
e. Click button "OK"
4. It appears dialogbox "Crystal Reports Gallery"
a. Select "Using the Report Wizard" in portion of "Create a New Crystal Report Document"
b. Select "Standard" in portion of "Choose an Expert"
c. Click button "OK"
5. It appears dialogbox "Standard Report Creation Wizard"
a. Click button "Cancel"
6. It is back to page edit view of "CrystalReport1.rpt"
7. Click button "Main Report Preview". It shows the preview with blank page
8. Click button "Main Report". It came back to the edit view
9. Go to menu "Crystal Reports -> Database -> Database Expert...", dialogbox "Database Expert" appears. Select table u201Cactivity_cdu201D as showing in following screen shot:
10. Click button u201COKu201D. It returns to the edit view without any changes
11. Place some fields into the report, then click button "Main Report Preview". It shows the preview with data
12. Run application by pressing key F5 or key combinition Ctrl+F5, it shows up database connection import screen
13. Close the browser and back to file Default.aspx, change u201CEnableDatabaseLogonPromptu201D to u201DFalseu201D and run the application again, it shows following message "Database logon failed."
Regards,
Triple -
Report fails to generate on Crystal Reports Server
Post Author: cmilkosk
CA Forum: General
Hello all!
I have a case open with BO on generating a report from a Crystal Reports Server (CRS). The report works fine when running in Crystal Reports on my PC, but after I send it to the Crystal Reports Server, it fails with a message like:"Failed to open the connection.
C:\Program Files\Business Objects\BusinessObjects Enterprise 11.5\Data\procSched\metrixdb.reportjobserver\~tmp9bc512965895e0.rpt"This error appears to be telling you that it is trying to connect to
the CRS's reportjobserver process and having a problem, but the service is up according to the Central Config Manager. I tried starting and stopping it, but it didn't make a difference. This happens for different reports sent to the server. One common thing that I've noticed is that the reports that connect to the CRS's local SQL Server 2005 database are the ones that are failing. So, my CRS resides on the same host as the SQL Server 2005 database (which also houses the CRS SQL DB). Interestingly, reports scheduled that connect to a remote SQL Server 2000 database work fine. It could be the simplest report that I am running off of the CRS/SQL Server 2005 host, and it still fails every time. Tech support so far hasn't been much of a help. They suggested that I upgrade my Crystal Reports software on my PC to R2, but that didn't fix the problem.Has anyone had any trouble like this before? If so, have you found out what the cause was?I'm beginning to wonder if it is related to SQL Server 2005 or potentially just that it is connecting to a local database.Note - my CRS's software version appears to be 11.5.3.438. I'm not sure if I am running CRS R1 or R2 (how can you tell?).Anyone have any ideas?Thanks,ChrisPost Author: cmilkosk
CA Forum: General
Anyone have any ideas? Tech Support doesn't seem to be helping much. Chris -
Crystal Reports Server XI upgrade to Crystal Reports Server 2008
I have downloaded the Crystal Reports Server 2008 upgrade from the portal. Questions:
The "Upgrading Your Crystal Reports Server Delpoyment from XI or XI Relase 2 to Crystal Rpeorts Server 2008" (simple install) documentation mentions that the installer should recognize my installation and prompt to upgrade. Instead, the first prompt that I get is for a license key. Is this normal, or should the application be seeing my existing install?
If I do indeed need a 2008 license key, how do I obtain one? It will not accept may CRXI Server keys, and I cannot see anyplace to download the new keys.
Any help would be appreciated.
JeffHi,
I think you can request for new keys:
For a new key:
Request key codes for new orders via SAP Marketplace (SMP), will receive a download letter on new purchases providing them with their SMP login credentials. Using these credentials you can login and click in the "Keys & Requests" tab > Request a License key.
If your Key code does not work
You need create a customer message https://websmp107.sap-ag.de/message using component XX-SER-LIKEY-BOJ.
Regards,
Deepti Bajpai -
Function Sequence Error -- After upgrading to Crystal Reports 2008
Since we intergrated Crystal 2008 in our application, We are having the ODBC DRIVER ERROR "S1010, Function Sequence Error"
The following steps reproduces the error.
I open any crystal report(using my application) and close it.
And then I try to close another dialog in my application.
The destructor of that dialog has the DELETE FROM TMPRPT WHERE etc... But actually the TMPRPT table is empty.
But This Scenario in general, does not produce any error. Only after I open and close Crystal report, and when the TMPRPT table doesn't have any records, executing the above DELETE sql throws CDBException, Funciton Sequence Error.
Is it because of the upgrade/mismatch of dlls? Can any one help how to work around this?
Thanks.Hi Don,
I would like to thank you for your helpful advice. your tips for odbc tracing really works.
Just to simplify things, I have created a simple mfc dialog based application that opens a connection using CDatabase in the initdialog and closes the connection in the destructor(because that is how we do in our main large application). On the dialog i put a "Print" button and when i click it, I open a crystalreportform and fill the connectioninfo structure and then call SetDBLogonForReport(ConnectionInfo connectionInfo, ReportDocument reportDocument). on the Form_closed function, I close database connections and close the report document.
When I come back to mfc application I execute a Delete from table where 1 =0, basically any delete/update that return empty recordset and it throws function sequence error.
BOOL CCrystalDemoDlgDlg::OnInitDialog()
CDialog::OnInitDialog();
ConnectDatabase() ;
return TRUE; // return TRUE unless you set the focus to a control
BOOL CCrystalDemoDlgDlg::ConnectDatabase()
if ( m_Database.IsOpen() )
m_Database.Close();
// Process database open request.
CString szConnection("DSN=CRYSTALTEST32;UID=DBA;PWD=picture");
!m_Database.OpenEx( szConnection, CDatabase::noOdbcDialog ) )
return TRUE;
BOOL CCrystalDemoDlgDlg::bExecuteSQL( CString SqlString )
if(m_Database.IsOpen())
m_Database.ExecuteSQL( (LPCTSTR)SqlString );
return TRUE;
void CCrystalDemoDlgDlg::OnBnClickedBtnPrint()
TRY
bExecuteSQL(_T("DELETE FROM TMPRPT WHERE 1=0"));
CrystalReportsForm ^ CRForm = gcnew CrystalReportsForm(gcnew System::String("ActvSumm1.rpt"));
CRForm->ShowDialog();
//CRForm->RunCrystalReports();
delete CRForm;
CRForm = nullptr;
bExecuteSQL(_T("DELETE FROM TMPRPT WHERE 1=0"));
CATCH(CDBException, e)
AfxMessageBox( e->m_strError );
return ;
END_CATCH
the following is the code in crystalreports library
namespace CR2008Library
public partial class CrystalReportsForm : Form
private ReportDocument _reportDocument;
private string _reportFile = "C:\\Nomadic\\Report\\";
public CrystalReportsForm(string reportFile)
InitializeComponent();
_reportDocument = CreateReportDocument(reportFile);
private ReportDocument CreateReportDocument(string reportFile)
ReportDocument newDocument = new ReportDocument();
_reportFile += reportFile;
newDocument.Load(_reportFile);
return newDocument;
public void ConfigureCrystalReports()
ConnectionInfo connectionInfo = new ConnectionInfo();
connectionInfo.DatabaseName = "CRYSTALTEST";
connectionInfo.UserID = "DBA";
connectionInfo.Password = "picture";
connectionInfo.ServerName = "CRYSTALTEST32";
SetDBLogonForReport(connectionInfo, _reportDocument);
crystalReportViewer.ReportSource = _reportDocument;
private void SetDBLogonForReport(ConnectionInfo connectionInfo, ReportDocument reportDocument)
Tables tables = reportDocument.Database.Tables;
foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
TableLogOnInfo tableLogonInfo = table.LogOnInfo;
tableLogonInfo.ConnectionInfo = connectionInfo;
table.ApplyLogOnInfo(tableLogonInfo);
public void CrystalReportForm_Load(object sender, EventArgs e)
ConfigureCrystalReports();
private void CrystalReportsForm_FormClosed(object sender, FormClosedEventArgs e)
DisposeCR();
private void DisposeCR()
// Clean up by closing and disposing of the ReportDocument object
if (_reportDocument != null)
if (_reportDocument.Database.Tables.Count > 0)
Tables tables = _reportDocument.Database.Tables;
foreach (Table table in tables)
table.Dispose();
_reportDocument.Database.Dispose();
_reportDocument.Close();
_reportDocument.Dispose();
_reportDocument = null;
I have the log file which doesn't show any error in crystalreports library. I am giving some of the log file for your reference to see what's happening while exiting from crystal and executing the problem sql
CrystalDemoDlg 16c8-e8c EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 00F41CC0
CrystalDemoDlg 16c8-e8c ENTER SQLFetch
HSTMT 00F41CC0
CrystalDemoDlg 16c8-e8c EXIT SQLFetch with return code 100 (SQL_NO_DATA_FOUND)
HSTMT 00F41CC0
CrystalDemoDlg 16c8-e8c ENTER SQLCloseCursor
SQLHSTMT 00F41CC0
CrystalDemoDlg 16c8-e8c EXIT SQLCloseCursor with return code 0 (SQL_SUCCESS)
SQLHSTMT 00F41CC0
CrystalDemoDlg 16c8-e8c ENTER SQLFreeHandle
SQLSMALLINT 3 <SQL_HANDLE_STMT>
SQLHANDLE 00F41CC0
CrystalDemoDlg 16c8-e8c EXIT SQLFreeHandle with return code 0 (SQL_SUCCESS)
SQLSMALLINT 3 <SQL_HANDLE_STMT>
SQLHANDLE 00F41CC0
CrystalDemoDlg 16c8-e8c ENTER SQLDisconnect
HDBC 00F427A0
CrystalDemoDlg 16c8-e8c EXIT SQLDisconnect with return code 0 (SQL_SUCCESS)
HDBC 00F427A0
CrystalDemoDlg 16c8-e8c ENTER SQLFreeHandle
SQLSMALLINT 2 <SQL_HANDLE_DBC>
SQLHANDLE 00F427A0
CrystalDemoDlg 16c8-e8c EXIT SQLFreeHandle with return code 0 (SQL_SUCCESS)
SQLSMALLINT 2 <SQL_HANDLE_DBC>
SQLHANDLE 00F427A0
CrystalDemoDlg 16c8-e8c ENTER SQLFreeHandle
SQLSMALLINT 1 <SQL_HANDLE_ENV>
SQLHANDLE 00F42718
CrystalDemoDlg 16c8-e8c EXIT SQLFreeHandle with return code 0 (SQL_SUCCESS)
SQLSMALLINT 1 <SQL_HANDLE_ENV>
SQLHANDLE 00F42718
CrystalDemoDlg 16c8-a34 ENTER SQLAllocStmt
HDBC 00F419A0
HSTMT * 0012E2C4
CrystalDemoDlg 16c8-a34 EXIT SQLAllocStmt with return code 0 (SQL_SUCCESS)
HDBC 00F419A0
HSTMT * 0x0012E2C4 ( 0x00f41cc0)
CrystalDemoDlg 16c8-a34 ENTER SQLSetStmtOption
HSTMT 00F41CC0
UWORD 0 <SQL_QUERY_TIMEOUT>
SQLPOINTER 0x0000000F
CrystalDemoDlg 16c8-a34 EXIT SQLSetStmtOption with return code 0 (SQL_SUCCESS)
HSTMT 00F41CC0
UWORD 0 <SQL_QUERY_TIMEOUT>
SQLPOINTER 0x0000000F (BADMEM)
CrystalDemoDlg 16c8-a34 ENTER SQLExecDirectW
HSTMT 00F41CC0
WCHAR * 0x03A30458 [ -3] "DELETE FROM TMPRPT WHERE 1=0\ 0"
SDWORD -3
CrystalDemoDlg 16c8-a34 EXIT SQLExecDirectW with return code 100 (SQL_NO_DATA_FOUND)
HSTMT 00F41CC0
WCHAR * 0x03A30458 [ -3] "DELETE FROM TMPRPT WHERE 1=0\ 0"
SDWORD -3
CrystalDemoDlg 16c8-a34 ENTER SQLNumResultCols
HSTMT 00F41CC0
SWORD * 0x0012E2B8
CrystalDemoDlg 16c8-a34 EXIT SQLNumResultCols with return code -1 (SQL_ERROR)
HSTMT 00F41CC0
SWORD * 0x0012E2B8
DIAG [S1010] [Microsoft][ODBC Driver Manager] Function sequence error (0)
CrystalDemoDlg 16c8-a34 ENTER SQLErrorW
HENV 00F418D8
HDBC 00F419A0
HSTMT 00F41CC0
WCHAR * 0x0012DE00 (NYI)
SDWORD * 0x0012E224
WCHAR * 0x0012DE20
SWORD 511
SWORD * 0x0012DE14
CrystalDemoDlg 16c8-a34 EXIT SQLErrorW with return code 0 (SQL_SUCCESS)
HENV 00F418D8
HDBC 00F419A0
HSTMT 00F41CC0
WCHAR * 0x0012DE00 (NYI)
SDWORD * 0x0012E224 (0)
WCHAR * 0x0012DE20 [ 56] "[Microsoft][ODBC Driver Manager] Function sequence error"
SWORD 511
SWORD * 0x0012DE14 (56)
CrystalDemoDlg 16c8-a34 ENTER SQLErrorW
HENV 00F418D8
HDBC 00F419A0
HSTMT 00F41CC0
WCHAR * 0x0012DE00 (NYI)
SDWORD * 0x0012E224
WCHAR * 0x0012DE20
SWORD 511
SWORD * 0x0012DE14
I know that my post is too long, but i would like to give enough information for you to see what's happening. I use visual studio 2008 with crystal library 2008.
Thanks,
Lavanya. -
Memory Leak in Report after upgrading from Crystal Reports 10.5 to 13.0.1/2
I'm currently having an issue with crystal reports 13 (Visual Studio 2010), We have recently updated our CRM Solution to use the newer crystal reports runtime as we are now using Visual Studio 2010,
We have a client who has a report which contains a sub report which basically contains a Image pulled from a MSSQL Database as a BLOB Image Field which is basically scanned images relating to the report, Previously the report worked fine before the Client Updated our CRM Solution to the latest version, Now for each individual page which has the scanned image the application is swallowing 100 MB of ram, as there are around 32 of these scanned images and our solution is a 32 bit application we are getting out of memory errors due to the whole 2GB addressable to a 32 bit process limitation,
The images are around 4MP and stored in JPG format in the database so should not be consuming over 100mb of ram per image displayed by the report even if they are being stored uncompressed in RGBA Format,
Likewise when viewing the pages of the report manually after a specific page (when the amount of memory addressable by a 32 bit application gets hit) the images just don't display and then any pages with the image are not being displayed and not giving an error / exception.
I have tried re-saving the .rpt files to cause them to be in the newer crystal reports format and this is still happening, likewise I have tried un-installing the 13.0.1 and installing the 13.0.2 runtime.
I am just about to check SQL which pulls the image for the sub report, although I am sure for each sub report it should only be pulling one row with one jpeg image in case the sub report is holding quite a few images but only displaying the first.
Likewise If all else fails I will try re-creating the report as I have experienced issues with some other specific reports doing strange things after being updated from the 2008 runtime which I really am not liking the idea of due to how fiddly crystal reports can be, It is good and does the job but takes far longer than some other solutions to get what you are trying to achieve done.
This report had been working fine for 2+ years before the client updated to the most recent version of our CRM Software.
Has anyone else experienced simular issues with the latest runtime.I have just been reviewing the code for this and it appears that the sub report is pulling all of the images,
It is strange that previously this was working fine seems like the newer runtime does not dispose of the data once it has been displayed on a sub report which would explain memory leak as it will call the select again pulling approx 60 images which are probably approx 8 - 900KB plus sub report + uncompressed image to display and then filtering.
I am about to modify this report and will post if fix i put in place resolves the issue. -
E-Mail reports failing after upgrading to DPM 2012 R2.
I am trying to follow Mike Jacquet's blog post regarding fixing e-mailed reports after ugprading to DPM 2012 R2. The link is here: http://blogs.technet.com/b/dpm/archive/2013/12/05/attempts-to-schedule-a-mailed-report-in-dpm-2012-fail-with-reporting-services-server-cannot-connect-to-the-dpm-database.aspx
I get to step 13, and at that point, I try to Test the Connection - I get the error "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that
the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)"
On my system, there is no Connection String on that screen - I assume that could be the problem? Does anyone know approximately what should go in that box? I've tried something similar to what the screenshot displays, changing the server
name and database names of course, but I get the same error.
KWHi
From within DPM console select Management tab. From here select About DPM. Obtain needed information from section DPM’s SQL Server.
The data source = DPM ServerName\SQL instance
initial catalog = DPMDB Name
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial
to other community members reading the thread. Regards, Dwayne Jackson II. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights."
Figure 1: From DPM console select About DPM -
Database Logon Failed which created by Crystal Report 2008
this time i meet the famous error again which is database logon failed.
i created a crystal report 2008 starting from blank report, then connect with odbc
i use 2008 method
objRpt.SetDatabaseLogon(db_username, db_password, odbc_name, database_name);
2008 method will get database logon failed even set database location and verify database again
then i use 8.5 method and try again for 2008 report. it said field name is unknown for one of formula
then i drag field again for formula and set database location and verify database again
it said the same error.
then i uninstall 8.5 crytal report software in window 7 deployment machine, and do above again, it said the same error
//'Create a new Stored Procedure Table to replace the reports current table.
CrystalDecisions.ReportAppServer.DataDefModel.Procedure boTable = new CrystalDecisions.ReportAppServer.DataDefModel.Procedure();
//'boMainPropertyBag: These hold the attributes of the tables ConnectionInfo object
PropertyBag boMainPropertyBag = new PropertyBag();
//'boInnerPropertyBag: These hold the attributes for the QE_LogonProperties
//'In the main property bag (boMainPropertyBag)
PropertyBag boInnerPropertyBag = new PropertyBag();
//'Set the attributes for the boInnerPropertyBag
boInnerPropertyBag.Add("Connect Timeout", "15");
//boInnerPropertyBag.Add("Data Source", "MyDataSource");
boInnerPropertyBag.Add("Data Source", "10.1.1.191");
boInnerPropertyBag.Add("DataTypeCompatibility", "0");
boInnerPropertyBag.Add("General Timeout", "0");
//boInnerPropertyBag.Add("Initial Catalog", "MyCatalog");
boInnerPropertyBag.Add("Initial Catalog", database_name);
boInnerPropertyBag.Add("Integrated Security", "False");
boInnerPropertyBag.Add("Locale Identifier", "1033");
boInnerPropertyBag.Add("MARS Connection", "0");
//boInnerPropertyBag.Add("OLE DB Services", "-5");
//boInnerPropertyBag.Add("ODBC", "-5");
boInnerPropertyBag.Add("ODBC", "Cheque");
boInnerPropertyBag.Add("Provider", "SQLNCLI");
boInnerPropertyBag.Add("Tag with column collation when possible", "0");
boInnerPropertyBag.Add("Trust Server Certificate", "0");
boInnerPropertyBag.Add("Use Encryption for Data", "0");
//'Set the attributes for the boMainPropertyBag
boMainPropertyBag.Add("Database DLL", "crdb_ado.dll");
//boMainPropertyBag.Add("Database DLL", "p2sodbc.dll");
//boMainPropertyBag.Add("QE_DatabaseName", "VEPILOT");
boMainPropertyBag.Add("QE_DatabaseName", database_name);
//boMainPropertyBag.Add("QE_DatabaseType", "OLE DB (ADO)");
boMainPropertyBag.Add("QE_DatabaseType", "ODBC");
//'Add the QE_LogonProperties we set in the boInnerPropertyBag Object
boMainPropertyBag.Add("QE_LogonProperties", boInnerPropertyBag);
boMainPropertyBag.Add("QE_ServerDescription", "MyServer");
boMainPropertyBag.Add("QE_SQLDB", "True");
boMainPropertyBag.Add("SSO Enabled", "False");
//'Create a new ConnectionInfo object
CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo boConnectionInfo = new CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo();
//'Pass the database properties to a connection info object
boConnectionInfo.Attributes = boMainPropertyBag;
//'Set the connection kind
boConnectionInfo.Kind = CrConnectionInfoKindEnum.crConnectionInfoKindCRQE;
//'*EDIT* Set the User Name and Password if required.
boConnectionInfo.UserName = db_username;
boConnectionInfo.Password = db_password;
//'Pass the connection information to the table
boTable.ConnectionInfo = boConnectionInfo;
CrystalDecisions.ReportAppServer.DataDefModel.Tables boTables = objRpt.ReportClientDocument.DatabaseController.Database.Tables;
CrystalDecisions.CrystalReports.Engine.Tables tables = objRpt.Database.Tables;
foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
if (!string.IsNullOrEmpty(table.Name))
//boTable.Name = table.Name;
//boTable.QualifiedName = database_name + ".dbo." + table.Name;
//boTable.Alias = table.Name;
boTable.Name = "sp_ChequeIssueDetRpt";
boTable.QualifiedName = database_name + ".dbo.sp_ChequeIssueDetRpt";
boTable.Alias = "sp_ChequeIssueDetRpt";
objRpt.ReportClientDocument.DatabaseController.SetTableLocation(boTables[0], boTable);
objRpt.VerifyDatabase();
http://sourceforge.net/projects/aspchequesprint/files/ChequeIssueDet.rpt/downloadNo subreport, only a stored procedure with final two lines are
print @m_sql
exec (@m_sql)
After use generated code in the link above
Error at boReportDocument.VerifyDatabase();
Inner Exception : no error
Message "Logon failed"
ErrorID : CrystalDecisions.CrystalReports.Engine.EngineExceptionErrorID.LogOnFailed
HelpLink : null
stacktrace : CrystalDecisions.CrystalReports.Engine.ReportDocument.VerifyDatabase()\r\n at viewReport.Page_Load(Object sender, EventArgs e) 於 d:
Data
My Documents
Visual Studio 2008
WebSites
Cheques
viewReport.aspx.cs: row 1302\r\n at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)\r\n at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)\r\n at System.Web.UI.Control.OnLoad(EventArgs e)\r\n at System.Web.UI.Control.LoadRecursive()\r\n 於 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
TargetSite : {Void VerifyDatabase()}
string reportPath = report_path + "ChequeIssueDet.rpt";
boReportDocument = new ReportDocument();
//**EDIT** Change the path and report name to the report you want to change.
boReportDocument.Load(reportPath, OpenReportMethod.OpenReportByTempCopy);
//Create a new Stored Procedure Table to replace the reports current table.
CrystalDecisions.ReportAppServer.DataDefModel.Procedure boTable =
new CrystalDecisions.ReportAppServer.DataDefModel.Procedure();
//boMainPropertyBag: These hold the attributes of the tables ConnectionInfo object
PropertyBag boMainPropertyBag = new PropertyBag();
//boInnerPropertyBag: These hold the attributes for the QE_LogonProperties
//In the main property bag (boMainPropertyBag)
PropertyBag boInnerPropertyBag = new PropertyBag();
//Set the attributes for the boInnerPropertyBag
boInnerPropertyBag.Add("Database", database_name);
boInnerPropertyBag.Add("DSN", "Cheque");
boInnerPropertyBag.Add("UseDSNProperties", "False");
//Set the attributes for the boMainPropertyBag
boMainPropertyBag.Add("Database DLL", "crdb_odbc.dll");
boMainPropertyBag.Add("QE_DatabaseName", database_name);
boMainPropertyBag.Add("QE_DatabaseType", "ODBC (RDO)");
//Add the QE_LogonProperties we set in the boInnerPropertyBag Object
boMainPropertyBag.Add("QE_LogonProperties", boInnerPropertyBag);
boMainPropertyBag.Add("QE_ServerDescription", "Cheque");
boMainPropertyBag.Add("QE_SQLDB", "True");
boMainPropertyBag.Add("SSO Enabled", "False");
//Create a new ConnectionInfo object
CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo boConnectionInfo =
new CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo();
//Pass the database properties to a connection info object
boConnectionInfo.Attributes = boMainPropertyBag;
//Set the connection kind
boConnectionInfo.Kind = CrConnectionInfoKindEnum.crConnectionInfoKindCRQE;
//**EDIT** Set the User Name and Password if required.
boConnectionInfo.UserName = db_username;
boConnectionInfo.Password = db_password;
//Pass the connection information to the table
boTable.ConnectionInfo = boConnectionInfo;
//Get the Database Tables Collection for your report
CrystalDecisions.ReportAppServer.DataDefModel.Tables boTables;
boTables = boReportDocument.ReportClientDocument.DatabaseController.Database.Tables;
//For each table in the report:
// - Set the Table Name properties.
// - Set the table location in the report to use the new modified table
boTable.Name = "sp_ChequeIssueDetRpt;1";
boTable.QualifiedName = database_name+".dbo.sp_ChequeIssueDetRpt;1";
boTable.Alias = "sp_ChequeIssueDetRpt;1";
boReportDocument.ReportClientDocument.DatabaseController.SetTableLocation(boTables[0], boTable);
//Verify the database after adding substituting the new table.
//To ensure that the table updates properly when adding Command tables or Stored Procedures.
boReportDocument.VerifyDatabase();
//**EDIT** Set the value for the Stored Procedure parameters.
string m_curUser = "";
int spid = Convert.ToInt32(Request.Cookies["login_cookie"]["spid"]);
queryString = "select * from v_All_Session where SPID=" + spid.ToString();
//string _connectionString = ConfigurationManager.ConnectionStrings["ChequeConnectionString"].ConnectionString;
using (SqlConnection connection = new SqlConnection(_connectionString))
SqlCommand command = connection.CreateCommand();
command.CommandText = queryString;
connection.Open();
using (SqlDataReader datareader = command.ExecuteReader())
if (datareader.HasRows == true)
while (datareader.Read())
if (datareader["UserID"] != System.DBNull.Value)
m_curUser = datareader["UserID"].ToString();
datareader.Close();
connection.Close();
boReportDocument.SetParameterValue("@UserID", m_curUser);
if (string.IsNullOrEmpty(Session["fm_CoCode"].ToString()))
boReportDocument.SetParameterValue("@fm_CoCode", Session["fm_CoCode"].ToString());
if (string.IsNullOrEmpty(Session["to_CoCode"].ToString()))
boReportDocument.SetParameterValue("@to_CoCode", Session["to_CoCode"].ToString());
if (string.IsNullOrEmpty(Session["fm_BankACNo"].ToString()))
boReportDocument.SetParameterValue("@fm_BankACNo", Session["fm_BankACNo"].ToString());
if (string.IsNullOrEmpty(Session["to_BankACNo"].ToString()))
boReportDocument.SetParameterValue("@to_BankACNo", Session["to_BankACNo"].ToString());
if (string.IsNullOrEmpty(Session["fm_BatchNo"].ToString()))
boReportDocument.SetParameterValue("@fm_BatchNo", Session["fm_BatchNo"].ToString());
if (string.IsNullOrEmpty(Session["to_BatchNo"].ToString()))
boReportDocument.SetParameterValue("@to_BatchNo", Session["to_BatchNo"].ToString());
Edited by: Mathew_666 on Jul 19, 2011 4:27 AM
Edited by: Mathew_666 on Jul 19, 2011 4:28 AM -
Error after migration to Crystal Reports 12 for existing reports
Hi,
We had reports written using Crystal Reports Version 8.5. These reports were not modified for a long time. Recently, we had migrated to Crystal Reports 12 (2008). Some of the these existing reports were modified using the Crystal Reports 2008 designer. After installing our application (we ship Merge Module of Crystal Reports 12 i.e. 2008 which gets installed in GAC)
1) If we create new reports in 2008 designer and try to view these reports, it works as expected without any issue(s).
2 ) However, if these modified reports are tried to be viewed, there is an error which states "Database Logon Failed".
Details:
CrystalDecisions.CrystalReports.Engine.LogOnException {"Database logon failed."}
ErrorID CrystalDecisions.CrystalReports.Engine.EngineExceptionErrorID.LogOnFailed
InnerException {"Database logon failed."}
Message "Database logon failed."
Source "CrystalDecisions.ReportAppServer.DataSetConversion"
Stack Trace at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToDisk(ExportFormatType formatType, String fileName)
TargetSite {Boolean ThrowDotNetException(System.Exception)}
Also, it is worth to note that if we try to view these modified reports from any environment which has both Crystal Reports 10 and Crystal Reports 12 in GAC, then these reports work as expected.
P.S. We have mechanism in application's code to reset the database connections when any report is being viewed using ReportDocument class' method.
From the above scenario I believe issue is specific to migration to Crystal Reports 12 (2008). Any help /workaround to solve this problem will be highly appreciated.Make sure you have the latest SP for CR 2008 installed;
https://smpdl.sap-ag.de/~sapidp/012002523100009038092009E/cr2008win_sp2.exe
Ensure you are deploying SP 2 runtime;
MSM
https://smpdl.sap-ag.de/~sapidp/012002523100009159092009E/cr2008sp2_mm.zip
MSI
https://smpdl.sap-ag.de/~sapidp/012002523100009159002009E/cr2008sp2_redistinstall.zip
If that does not help;
1) Do these reports work in the designer?
2) What database are you using and what is the connection type?
3) Compare the dlls loading on the systems where this app works (environment which has both Crystal Reports 10 and Crystal Reports 12 in GAC) and a system that is giving you the error. Use the [Modules|https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip] utility.
4) Open the reports in the designer and look at the properties in the Database menu -> Set Datasource Location. Check to see if there are any differences between the two reports.
5) If there is a subreport in the report that causes the issue, remove it and see if the report works without the subreport.
Ludek -
Upgrading from CRYSTAL REPORTS XI TO X1 RELEASE 2
Post Author: speed_champ
CA Forum: Migration to XI R2
Hi there
We have crystal reports XI running on our production server. We have now our application converted to Visual Studio 2005 and in order to use crystal reports with Visual Studio 2005 we need to upgrade to crystal reports Release 2 version.
If we decide to update with Release 2 version , should the production servers need also be updated ? Or when the application built in VS 2005 is deployed to production will deploy the Release 2 version crystal dlls to the server which already has Crystal Reports XI.
Any information will be advisable.
Thanks again
speed champPost Author: rodneyaz
CA Forum: .NET
I'm having the same issue. Worked fine for me in XI, but stopped working when I upgraded XI to XI R2.
Please post a follow-up if you get this resolved! Thanks!
RodneyAZ -
Failed to Install the Crystal Reports 2008
Post Author: cechow
CA Forum: Crystal Reports
Hi,
I am facing some error message when installing the Crystal Reports 2008 that I have purchased. I am currently working on a Windows XP Pro SP2, 1 GB RAM, 60 GD Free Space to install the Crystal Reports but failed. The error stated on the Crystal Reports installation screen is "Crystal Reports 2008 Setup has Failed".
Thanks.
AdrianPost Author: cechow
CA Forum: Crystal Reports
Basic Template
Product: Crystal Report 2008
Version:
Patches Applied: I'm not sure what patches need to be installed
Operating System(s): Windows XP Professional SP2
Database(s): SQL Server 2000 sp3a
Error Messages: Failed to INstall the Crystal Reports 2008.Steps to Reproduce: When I entered the CR disc in the CD ROM, there was no auto-run, then i decided to browse into the CD and execute the Setup.exe which then prompt the error above. Please advise.Is there some Pre-requisites that I need to install, any JRE or some other application? -
Upgradation of Crystal reports from 7.0 to 11.0
<p><strong><font face="verdana,geneva">Upgradation of Crystal reports from 7.0 to 11.0</font></strong></p><p><font face="verdana,geneva">I have reports created in CR 7.0 which need to upgraded to CR XI. These upgraded reports are accessed though an application developed in VC++. To view the report created in CR 7.0, i have used <strong>PDSODBC.DLL</strong> and <strong>CRPE32.DLL</strong>. What DLLs should be used for the upgraded reports.</font></p><p>Thanks in advance</p><p>Rajkumar S</p>
It will take more than just the .dll files - there are MAJOR changes in the object model when you move to XI. You'll want to check the samples in the Developer Library (the link is in the menu above...)Â
Click on "Viewers SDK", "Developer Guides and API Reference", and "COM developer guide and API reference" for documentation. There is also a "Samples" link. I haven't found specific C++ examples, but there are ASP and Java examples that you can work from.
-Dell
- A computer only does what you told it to, not what you thought you told it to!</p> -
Upgrade from Crystal report 8 to Crystal report 2013
Dear all,
Need some information pertaining to upgrade of Crystal report 8 to Crystal report 2013 (to be invoked from thick client .NET applications)
Is it possible to directly upgrade from 8 to 2013 ? Or should there be a move to intermediate version before going to 2013 ?
How is the upgrade generally done ? (do we just open the report and save in new version, or do they have any upgrade wizard)
What are the typical issues we may face while going from lower version to higher version (I understand queries may break, format and layout may change. Are there any other issues specific to upgradation.
Regards,
JainHi Jain,
Moved your post to .NET Forums.
Since CR 8.0 is 12 or more years old there is no "upgrade path" now. The Database drivers have all changed and the Parameter API's have also.
Best way is to get CR 2011 and manually open each and every report and update the DB connection using the Set Table Location, this requires updating the DB Client to current versions also.
Note there are some old legacy DB sources no longer available so that can be a problem also.
CR 8 is not Side By Side compatible with any other version so make sure it's not installed on the same PC. It will never work and cause all sorts of problems for you.
Basic report layout stayed the same but Printing has changed a lot also so search here, lots of post on the subject.
For more help need to know your data source also?
And check the Overview Tab, on the left side, lots of resources and samples to get you started.
Also, first warning is set your project to X86 and the full Framework, do not use the Client version.
And the SDK is no longer shipped with CR Designer install, VS installer and redist packages are all available from here:
SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads
Don -
Currently in our application, we are using Crystal Report XI R2 for generating the reports. We are in the process of upgrading the Crystal Report to SAP Crystal Reports, developer version for Microsoft Visual Studio (File Version 13.8). I updated that on my machine and all the reports work fine. I didn't have to modify any of the reports.
However when comparing the reports, we found that there are few reports on which the total no. of pages differ from the report displayed using Crystal Report XI R2 vs SAP Crystal Reports, developer version for Microsoft Visual Studio (File Version 13.8). Comparing the reports, it looks all the data that were fit on one page earlier with version XI R2 doesn't fit on the same page with version 13.8, thereby increasing the page counts.
The fonts, page margins everything set on report itself. Nothing being set in the code.
Both the application is using the same report that is pulling the data from the same database. Our application is a web application.
Any suggestion, why this is happening.
Thanks.
SanjayI am not sure what is being compared here?
CRXI R2 designer to CRVS?
CR XI R2 in some version of .NET to CRVS?
CR XI R2 using RDC SDK to CRVS?
Also, is this happening on your development computer or after you deploy?
If you compare the the "Page setup" options dialog between reports that work and those that do not work, do you see any difference?
Is this a web or a win app?
Are you seeing the same issue when viewing and exporting - say export to PDF?
What is the printer driver used and it's version?
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter -
Crystal Reports XI (11.0) vs Crystal Reports XI R2 (11.5)
Are there documented difference or compatability issues between Crystal Reports 11.0 components and Crystal Reports 11.5 components? We are using Crystal Reports XI 11.0 Professional edition, and we have an integrated 3rd party software that has compatability concernts with our version of Crystal XI 11.0.
We are wondering if there is any documented component incompatabilities between the compontents of 11.5, and 11.0. The 3rd party software company states that they are using 11.5 components.
Thank you for your time. I am a first time poster, and appreciate any assistance given.Hello,
1st XI R2 is still supported and you can upgrade to R2 for free. Go to this link: http://www.sdn.sap.com/irj/boc and download the trial version of CR XI R2 and use your XI keycode, then apply the patches which you can get to by clicking on the BusinessObjects tab above, then Downloads.
Direct link to the Trial version: http://www.sap.com/solutions/sapbusinessobjects/sme/freetrials/index.epx
Once you get it installed go to the keycode page and request an XI R2 keycode to enable all functionality.
Check the Businessobjects tab above for more info on the differences.
Thank you
Don
Maybe you are looking for
-
8.1.6 install fails with Error 1321 Installer has insufficient privileges -
Adobe Reader "Check for Updates" identifies "Adobe Reader 8.1.6 (CPSID_49167)" as "Available". Installation fails with "Error 1321.The Installer has insufficient privileges to modify the file C:\Program Files\Adobe\Reader 8.0\Reader\plug_ins\Search.a
-
How to catch PL/SQL: ORA-04052 error?
I need to execute a procedure that select remote objects but the remote db is a RAC DB and I only have access to one of the nodes, the remote RAC have load balancing enabled and the remote DBA can't create a DB Service for my connection, so, I have t
-
Hi, I am running Leopard Server in a small office with mixed Windows XP, Vista and Mac 10.6 clients. I am not an IT administrator, but I own the company and have been teaching myself on a DIY basis. These forums are a very helpful source of informati
-
When I build slide shows and burn them to dvd, the image quality is really bad when viewed. Looks great while being built though. Sometimes need to do this for clients, so it needs to look great. I start with jpg images that are pretty big. Have trie
-
How to configure BpmPatternSerializeMultipleTrigger
Hi, i have question regarding complete of ID. anyway, i am trying to configure Serialize BPM, in fork, receive step1 receive step2 receive step3 until receiving all message 3 send step1 send step3 send step2 i understand object http://sap.com/xi/XI/S