Crystal Reports 2008 installation fails
I recently re-installed Windows XP SP3 on my laptop and need to re-install Crystal Reports 2008.
I place the installation CD into the drive and the Auto-run application starts up and asks for the language to install.
I select English and click on the Install button.
After about 10 seconds I get a very cryptic error message.
Crystal Reports 2008 Setup Error
Crystal Reports Setup 2008 has failed.
If the problem persists, please contact Business Objects Product Support.
Any help in this matter would be greatly appreciated.
Edited by: Truper on Feb 9, 2010 1:58 PM
It's likely a dependency issue. Make sure the .NET frame 1.1 and 2.0 are installed. GO to Microsofts site or possibly they are an option in the update page.
Thank you
Don
Similar Messages
-
Crystal Report 2008 Installation Failed - Registering modules
HI Folks
I'm trying to install Crystal Report 2008 on XP Pro SP2. The installation stop on Registering Modules, even if I click Cancel,
it does not do anything it just hang there. I have to kill the process in Task Manager. If I restarted the installation,
it says that I have already an installtion process running. So I have to reboot and then restart the installation,
now it says that it will continue a previous uncompleted installation. But it hangs again at Registering Modules.
It does not even stop at the same file. I have done this process several time with always the same result.
Each time it stops on a different file but always during the Registering Modules process.
By
Arivalagan sAs well as that make sure you are a local PC administrator or belong to that group. Also check Microsoft's site to make sure you have the latest Microsoft Installer. I believe there is a test tool to check your PC.
Do you know what version of CR 2008 you have? There should be a ProductId.txt file to confirm the version. SP 3 should fully support DEP so if you don't have it download it from this [link|https://smpdl.sap-ag.de/~sapidp/012002523100009989492010E/cr2008_sp3_fullbuild.zip].
Then it should get past Microsoft's security. If it's your Anti-V as Stratos suggests then only option is to disconnect from the network and disable it, install and the reconnect.
The other common registration issue is due to missing dependencies or possibly updated dependencies that CR found but can't use. Some of our dependencies are specific versions.
Thank you
Don -
Export from Crystal Reports 2008 viewer fails if run on separate thread
I have a windows desktop application written in Visual Basic using Visual Studio 2008. I have installed and am trying Crystal Reports 2008 to run a report. Everything seems to work well except that when I preview a report (using the viewer control) and click the export button found in the upper left corner of that control, I get the following message:
Error 5: Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it. This exception is only raised if a debugger is attached to the process.
I am a little confused on what to do exactly. Is the problem because I am running in the Visual Studio 2008 IDE? It says this exception is only raise if a debugger is attached to the process. No, I tried running it outside the IDE. The exception wasn't generated but the application hung when the button was clicked.
It says the current thread must be set to single thread apartment (STA) mode. If the report is run on its own thread, is the "current" thread the thread the report is running on or is the main application's UI thread? I don't think I want to set my main application to single thread apartment mode because it is a multi-threaded application (although I really don't know for sure because I am new to multi-threaded programming).
My objective is to allow reports to run asynchronously so that the user can do other things while it is being generated. Here is the code I use to do this:
' Previews the report using a new thread (asynchronously)
Public Sub PreviewReportAsynch(ByVal sourceDatabase As clsMainApplicationDatabase)
Dim backgroundProcess As System.ComponentModel.BackgroundWorker
' Start a new thread to run this report.
backgroundProcess = New System.ComponentModel.BackgroundWorker
Using (backgroundProcess)
' Wire the function we want to run to the 'do work' event.
AddHandler backgroundProcess.DoWork, AddressOf PreviewReportAsynch_Start
' Kick off the report asynchronously and return control to the calling process
backgroundProcess.RunWorkerAsync(sourceDatabase)
End Using
End Sub
Private Sub PreviewReportAsynch_Start(ByVal sender As Object, ByVal e As System.ComponentModel.DoWorkEventArgs)
' The source database needed to call preview report was passed as the only argument
Call PreviewReport(CType(e.Argument, clsMainApplicationDatabase))
End Sub
' Previews the report. From the preview window, the user can print it.
Public Function PreviewReport(ByVal sourceDatabase As clsMainApplicationDatabase) As FunctionEndedResult
Dim errorBoxTitle As String
Dim frmPreview As frmReportPreview
' Setup error handling
errorBoxTitle = "Preview " & Name & " Report"
PreviewReport = FunctionEndedResult.FAILURE
On Error GoTo PreviewError
' Set up the crxReport object
If InitializeReportProcess(sourceDatabase) <> FunctionEndedResult.SUCCESS Then
GoTo PreviewExit
End If
' Use the preview form to preview the report
frmPreview = New frmReportPreview
frmPreview.Report = crxReport
frmPreview.ShowDialog()
' Save any settings that should persist from one run to the next
Call SavePersistentSettings()
' If we got this far everything is OK.
PreviewReport = FunctionEndedResult.SUCCESS
PreviewExit:
' Do any cleanup work
Call CleanupReportProcess(sourceDatabase)
Exit Function
PreviewError:
' Report error then exit gracefully
ErrorBox(errorBoxTitle)
Resume PreviewExit
End Function
The variable crxReport is of type ReportDocument and the windows form called 'frmPreview' has only 1 control, the crystal reports viewer.
The print button on the viewer works fine. Just the export button is failing. Any ideas?Hi Trevor.
Thank you for the reply. The report document is create on the main UI thread of my application. The preview form is created and destroyed on the separate thread. For reasons I won't get into, restructuring the code to move all the initialization stuff inside the preview form is not an option (OK, if you a really curious, I don't always preview a report, sometimes I print and/or export it directly which means the preview form isn't used).
What I learned through some other research is that there are some things (like COM calls and evidently some OLE automation stuff) that cannot be run on a thread that uses the MTA threading model. The export button probably uses some of this technology, thus the message stating that an STA threading model is required. I restructured the code as follows to accomodate this requirement. Here is a sample:
' Previews the report using a new thread (asynchronously)
Public Sub PreviewReportAsynch(ByVal sourceDatabase As clsMainApplicationDatabase)
Dim staThread As System.Threading.Thread
' Start the preview report function on a new thread
staThread = New System.Threading.Thread(AddressOf PreviewReportAsynchStep1)
staThread.SetApartmentState(System.Threading.ApartmentState.MTA)
staThread.Start(sourceDatabase)
End Sub
Private Sub PreviewReportAsynchStep1(ByVal sourceDatabase As Object)
Dim staThread As System.Threading.Thread
' Initialize report preview. This includes staging any data and configuring the
' crystal report document object for use by the crystal report viewer control.
If InitializeReportProcess(DirectCast(sourceDatabase, clsMainApplicationDatabase)) = FunctionEndedResult.SUCCESS Then
' Show the report to the user. This must be done on an STA thread so we will
' start another of that type. See description of PreviewReportAsynchStep2()
staThread = New System.Threading.Thread(AddressOf PreviewReportAsynchStep2)
staThread.SetApartmentState(System.Threading.ApartmentState.STA)
staThread.Start(mcrxReport)
' Wait for step 2 to finish. This blocks the current thread, but this thread
' isn't the main UI thread and this thread has no UI anymore (the progress
' form was closed) so it won't matter that is it blocked.
staThread.Join()
' Save any settings that should persist from one successful run to the next
Call SavePersistentSettings()
End If
' Release the crystal report
Call CleanupReportProcess(DirectCast(sourceDatabase, clsMainApplicationDatabase))
End Sub
' The preview form must be launched on a thread that use the single-threaded apartment (STA) model.
' Threads use the multi-threaded apartment (MTA) model by default. This is necessary to make the
' export and print buttons on the preview form work. They do not work when running on a
' thread using MTA.
Public Sub PreviewReportAsynchStep2(ByVal crxInitializedReport As Object)
Dim frmPreview As frmReportPreview
' Use the preview form to preview the report. The preview form contains the crystal reports viewer control.
frmPreview = New frmReportPreview
frmPreview.Report = DirectCast(crxInitializedReport, ReportDocument)
frmPreview.ShowDialog()
End Sub
Thanks for your help!
Andy -
Crystal Reports 2008 Loading Failed Error in Windows 7
Hi,
We are using Crystal Reports 2008 in our application. These are working fine in XP Professional OS. But the Same code is not working in Windows 7 operating system. When I debug, I found report Load is failing. Error is at below line of code.
CR.Load( "D:\Sample_Win7.rpt", OpenReportMethod.OpenReportByTempCopy) ' CR is Report Document
Can any one suggest me, what settings are required in Win 7 OS to get out of this issue.
Thanks inadvance,
KiranHi,
Thanks for the reply. Here is the exact issue description.
CrystalDecisions.Shared.CrystalReportsException was caught
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 SampleReportInWin7.Form1.Button1_Click(Object sender, EventArgs e) in D:\Brookledge SW\SampleReportInWin7\Form1.vb:line 22
InnerException: System.Runtime.InteropServices.COMException
ErrorCode=-2147467259
Message="The system cannot find the path specified. "
Source="Analysis Server"
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:
Thanks for your time,
Kiran -
Crystal report 2008 installation on top of BO XI R2
Hi,
I would like to install the Crystal Reports 2008 with SP3 and Xcelsius2008 on top of BO XI R2 Version.
Is there any disadvantage by doing this activity on XI R2?
Could you please tell me the installation steps for crystal report 2008 and Xcelsius2008 on top of Business Objects.
Regards,
SridharanNope.
Coz every tool installation has different Setup files.
You can install CR2008, Xcelsius 2008 etc..., on top of BOE. No issues.
Only it matters which datasources you have and it needs Integration kits also.
I-Steps: Follow and give text , Keycodes etc wherever it asks, nothing more.
Thank You!! -
[Crystal Reports 2008] - Logon failed in SAP system
Hi everybody,
I have installed on my notebook Crystal Reports 2008 trial version and the Integration Kit for SAP Solutions that I found on this web page: https://boc.sdn.sap.com/node/18962
When I try to open a SAP Data Source, Crystal Reports finds the connections I have in my SAPLogon and ask me credential infos. I get the following credential error:
"You do not have the necessary rights to design reports against the SAP System"
The user I enter has full administration right on the system, which is a SAP R/3 Enterprise.
Thanks,
ValerioHello Valerio,
Please make sure you install the corresponding transports for the Driver you are trying to use in Crystal Reports.
The transports are available on the SAP Integration Solution CD.
thanks
Mike -
Crystal Reports 2008 Installation Error
Hi,
I have bought CR 2008 from third-party vendor online. I am trying to install it on my Laptop (Windows XP SP3).
It asks for Language (selected English). Then after accepting License Agreement and entering Product KeyCode, Typical Installation option is selected.
System then checks for disk space requirements and after that it starts installing the CrystalReports. After few minutes the installation is hanged.
On screen I see that at the time of freezing it was registering modules like shortcut.dll or pdf.dll or LicenseKey.dll etc..Everytime I try to install it is different dll when installtion is stopped. I have waited for couple of hours hoping that installtion will be complete but it never finishes.
I have tried so many times but every time it freezes when it tries to register some dll.
I have then downloaded trial version from the Web and tried to install from there, but again I'm getting the same result.
Any help in resolving this issue is very much appreciated.
ThanksHi
I assume you are trying to install the CR Designer 2008 V0 package. Unfortunately this is not compatible with Windows XP SP3. Talk to the online vendor and request the CR Designer 2008 V1 package (you can use the same poduct code to activate it).
Regards,
Stratos -
How is the best way to install the latest version of Crystal Reports 2008
I have been downloading for hours all the service packs, hot fixes, fix packs and chasing my tail for way too long on this.
I keep getting errors about a file being out of sequence.... I assume there is a very loooooong list of fixpacks that need to be applied!!! This is such a nightmare.
Is there a simple way to just install the latest version of 2008 Crystal Reports?
If I have to follow a long sequence of updates, is it written down anywhere?
The reason for this in the firstplace is because I moved to Visual Studio 2010 with .Net 4.0 framework and now none of my crystal reports work.
I am using the full version of Crystal Reports 2008 installation, not the one built into Visual Studio
HELP!!!!!!When I try installing SP2 it starts the update and just locks up... no errors... just sits there. I let it sit for about an hour.
Is it compatible with Windows 7 ?
When I tried installing a fixpack, I kept getting errors that a file was out of sequence. I will try uninstalling all of Crystal and just reinstall in this order:
1. Crystal Reports 2008 from CD
2. Install Crystal Reports 2008 SP2
3. Install FixPack 2.6
This is what I tried the first time and got all the errors, but I will try it again... is this correct?
(I don't need to install SP0 or SP1 or any other Fixpacks.... Correct?) -
Invalid export DLL or export format" with Crystal Reports 2008 to Excel xls
We are experiencing the same issue as reported in the sticky thread. I answered in that thread, but thought that I woudl open a new thread to keep track of this issue. I can give you the responses to your questions you have requested in that thread:
Server Operating System - MS Windows Server 2003 R2 Enterprise Edition SP2
Version of the .NET Framework - MS .NET Framework 3.5 SP1
How did you deploy? - Installed CR 2008 SP1 runtime with msi package
If you deployed with CRRuntime_12_0_mlb.msi - what was the date of the file and its size? CRRuntime_12_1_mlb.msi dated Sept. 16, 2008 12:55:00 PM, size: 56,717,824 bytes
What is the file version of crpe32.dll on your server? You'll find this in the C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 directory - File was created 9/13/08 11:21AM, 9451KB File Version: 12.1.0.882
How many libpng10.dll files are on your system? List all instances. - 1 instance is on the system located in C;\Program Files\Business Objects\Business Objects Enterprise 12.0\win32_x86 directory. It is dated 9/13/08 8:52:26AM 132KB version 1.0.30.1
Any additional comments - We have tried to export to PDF and this works successfully. However, we can not export to xls or rft formats.
CRXF_XLS.dll is 905KB 9/13/08 9:38AM Version 12.1.0.882
CRXF_RTF.dll is 509KB 9/13/08 9:35AM Version 12.1.0.882
We also have the CR XIR2 server runtime installed side by side on the server as we migrate from CR 2008 to CR XIR2 SP4 ( where this function does work currently).
Please let me know if you need anything additional.
Phil
"Invalid export DLL or export format" with Crystal Reports 2008
Posted: Sep 27, 2008 12:36 AM E-mail this message Reply
I've included this sticky because we are seeing many posts in this forum regarding the error Invalid export DLL or export format when exporting to Excel and RTF in .NET applications using the Crystal Reports 2008 .NET SDK.
Issue
Exporting a Crystal Report to Excel or RTF format
.NET application using the Crystal Reports 2008 runtime (version 12.0)
error Invalid export DLL or export format
We've been doing some testing in-house and haven't reproduced this behavior. In order to figure this issue out we will need your help. If you are getting this error please reply to this post with the following information:
Server Operating System
Version of the .NET Framework
How did you deploy?
If you deployed with CRRuntime_12_0_mlb.msi - what was the date of the file and its size?
What is the file version of crpe32.dll on your server? You'll find this in the C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 directory
How many libpng10.dll files are on your system? List all instances.
Any additional comments
What We Know
The error invalid export DLL or export format may occur when exporting to Excel and RTF formats in .NET applications utilizing the Crystal Reports 2008 runtime (v 12.0)
Other export formats like Adobe PDF, Crystal Reports, CSV all export with no error
Some customers have resolved this by adding C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 to their environment path variables
This may have something to do with the file libpng10.dll. Both crxf_xls.dll and crxf_rtf.dll are dependent on it.
Thanks in advance for your co-operation. We hope to figure out what is causing this issue soon.Hi,
I am also having the same problem, except that I am not using Crystal Report 2008 runtime but the actual Crystal Report 2008 installation on Windows XP SP2 with VS Studio 2005 (VC++). MS .NET Framework 2.0.
Cyrstal Report XIR2 was installed on the same machine but uninstalled before installing Crystal Report 2008.
So only one instance of libpng10.dll and found in C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86
Crpe32.dll 3/1/2008 version 12.0.0.683
Crxf_xls.dll 3/1/2008 version 12.0.0.683
Crxf_rtf.dll 3/1/2008 version 12.0.0.683
crdb_oracle.dll 3/1/2008 version 12.0.0.683
libpng10.dll 3/1/2008 version 1.0.30.0 122880 bytes
There is no problem for exporting to pdf, html, word, csv, Crystal Report. If I create a testing report without any data from database, the testing report can then be exported also to rtf and xls.
Oracle 11.1.0.6 is the DB for the reports.
Adding C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 to the path did not resolve my problem.
Any idea to fix this issue?
Thanks
Kin H Chan -
Crystal Reports 2008 Setup Has Failed
Post Author: MWheeler
CA Forum: Upgrading and Licensing
I get a setup error as soon as I hit "install" on the English upgrade to 2008 on my Windows Xp Sp2 machine. I am running XI developer edition on this machine. The Window title for the error message is "Crystal Reports 2008 Setup Error" and the text is "Crystal Reports 2008 Setup has failed. If this continues contact http:
support.businessobjects.com". I tried to open a Support case on this, but the Create a Case screen didn't have anyplace to enter any data at all and ended up just timing out.I have got the same error message.
I was unable to uninstall the program from the control panel.
Try to install Windows Installer CleanUp software, and uninstall with this program the previous version on Crystal Reports.
http://download.microsoft.com/download/e/9/d/e9d80355-7ab4-45b8-80e8-983a48d5e1bd/msicuu2.exe -
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? -
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 -
Failed to export the report in Crystal Reports 2008
I am using Crystal Reports 2008 version 12.1.0.892, when i try to export data to Microsoft Excel(Data Only) it's failing with the error "Failed to export the report.", please help in resolving this issue.
Hi Abhilash,
I tried suppressing the report header and page header it was working fine, but previously i used to export with all the headers. Without page headers the output file is of no use. I was facing the same issue on one of the local desktops too then i uninstalled the software and installed it again then it was working fine but its not the solution.
-Srikar -
Crystal Reports 2008 failed to retrive data, and instead deleted it.
I have been using crystal reports 2008 for the past year or so with our billing software through an OBDC data source. I was using xp pro sp3. However I recently upgraded to a new computer running xp pro sp3 as well, and now I am having some serious issues.
When I try to connect to a data source in the database expert, it shows all the tables, and then the field explorer shows the fields, but when I actually try to brows the data, view a preview, verify the database, or refresh an old report it gives me an error and DELETES the .dat file that the field was located in. I am so glad I have regular backups to restore too, because pulling a report nuked 5 .dat files.
The errors I am getting are as follows:
"Failed to retrieve data from database."
Clicked ok
"Failed to retrieve data from database."
Clicked ok
"Database Connector Error: 'HY000:[Pervasive][ODBC Client Interface][LNA][Pervasive][ODBC Engine Interface][Data Record Manager]The file cannot be created with Variable-trail Allocation Tables (VATs)(Btrieve Error 105)'"
Clicked ok
"Failed to retrieve data from database.
Details:HY000:[Pervasive][ODBC Client Interface][LNA][Pervasive][ODBC Engine Interface]Unable to open table: <nameoftable>"
Click ok
and Crystal stays open but has just deleted the .dat file that the table was located in. It will still show the fields but no data. Trying to open the other software leads to an error "missing <name of table>.dat" It then has to be restored from a backup.
I have tried updating crystal as well as fully uninstalling it and reinstalling it, we have created a new ODBC connection, and cloned the database for testing purposes. The same thing occurs with the new database and ODBC data source.
We have no other computers, except my old one that has crystal reports on it. I have tried the old computer again and it is working fine.
Does anyone have an suggestions? This is pretty critical. Thanks in advance.
Edited by: Russellk on Jan 13, 2010 8:27 PMHello, you could try turning on ODBC tracing to see if it logs anything. It's a pain to get going but here's how.
Go to ODBC Admin, Click on the Tracing tab and create a log file and save. Don't start tracing yet. Close the ODBC admin and then re-open it and then turn tracing on. You may have to do this a few times to get it working.
Once it's tracing then open CR and try the demo data. Then close the report, log off, log onto the real data and do the same with a new report. You'll see a bunch of ODBC API's but there may be one or 2 that don't look right or errors may be logged compared to the DEMODATA.
Another suggestion is it may not be your PC doing the deleting. Maybe the Server thinks you have infected the data files and it's deleting them. Have a look in anti-virus quarantine logs on the server to see if it's doing the nasty....
Check the trust between your PC and the server.
I've also seen this type of odd behaviour with corrupted Profiles. Check with your IT guys on creating a new one for you, it's apain because you loose everything on your work station.
What happens if you log on from another PC using your account? Does that also delete the files? Or get someone else who it does work for log into your PC, does that work? If so it may be your Profile is either not trusted or it's been corrupted.
Good luck
Don -
Failed to retrieve data from the database crystal reports 2008 in SAP B1
Hello friends,
I am using Crystal report 2008 with SAP B1 PL 8.8. When I run any report, it runs correctly from Crystal Report. But whenever I try to open the same report through SAP ( Tools -> Preview External Crystal Report ), it prompts the parameters for that report and then open up the crystal report window and throws an Error message ("failed to retrieve data from the database. Details [Database Vendor Code: 156]").
Please any one suggest me the corrective solution.
Thanks in Advance,
Keyur Raval.I had the same problem in SAP B1 2007. Report worked fine except when it was open from B1. Generally there may be different problems. In my case the same problem was caused by using some procedure which was in a specific schema. Changing the schema into "dbo" solved the problem.
Radoslaw Blaniarz
Maybe you are looking for
-
Hi gurus A document for employee advance with spl gl has been created with poring keys 24E(dr) and 39S(Cr.)and then transferred the same to normal GL with posting keys 21(Dr.) and 39E(Cr.). lastly on clearing the opn items,though all doc get cleared
-
New 27inch iMac keeps asking to choose Wifi network. How do I stop it?
I recently purchased the new 27inch iMac and i'm really enjoying everything except this little annoyance. Everytime my computer restarts or goes to sleep, it automatically asks me to join a wifi network when I start it up again. I've already selected
-
URL vs. document attached in back end EBP 4.0 Classic/4.7 E
Based on documentation provided by SAP (Powerpoint) regarding new functionality available in SRM 4.0, we should have two choices regarding documents attached in shopping carts. One is the copy-to-DMS option well covered elsewhere, the second does NOT
-
Illustrator CS 5 Print Problem
CS5 (suite) Windows XP SP3, drivers etc up to date. Photoshop, InDesign, Acrobat, MS Office apps all print fine. Illustrator, Any attempt to change printer settings causes Illustrator to lock up solid, CAD required. (Can change printers, but not sett
-
Hi, We are upgrading our exisiting database (9.2.0.8.) to Oracle Database 11g R2, it has got spatial and non spatial data, i need to know best approch to migrate the database. Thanks !!