CrystalDecisions.CrystalReports.Engine.DataSourceException with VS 2010 4.0
Hi All,
i have converted my Windows 2.0 Application to 4.0 framework & installed Crystal Reports For VS 2010.
we have also upgraded to 64 bit.
But i am not able to open the Reports at runtime it throws an error :
"Failed to Load Database information".
CrystalDecisions.CrystalReports.Engine.DataSourceException
i m using Dataset as a datasource which i set at runtime
& xml as Schema for Report Design it was working fine before i upgraded to 4.0 Framework.
m i missing some Reference or Assembly??
Edited by: Varsha Ramnani on Mar 15, 2011 6:50 AM
Moved to .NET SDK forum....
Search first, lots of info available.
Go to the bottom of this page to get the distribution packages for your updated app:
http://www.sdn.sap.com/irj/boc/crystalreports-dotnet
You also need to set the CPU to x86 or X64 depending on which platform your WEB server is running in, 32 or 64 bit mode.
And set the Framework to for the Full version, not the client only.
CR for VS 2010 is the only version supported in VS 2010.
Don
Similar Messages
-
Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine.dll
Hi there,
I am going through the process of migrating an existing web solution from Visual Studio 2008 to Visual Studio 2010.
As part of that I have installed the recently released Crystal Reports for Visual Studio 2010.
One of our projects has a reference to 'CrystalDecisions.CrystalReports.Engine and everything seems fine within Visual Studio 2010, but when I try to run the solution I get the following error.
System.BadImageFormatException: Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine.dll' or one of its dependencies. is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
I have set up the projects to target .net framework 4 and started by setting them to compile for 32 bit....
This is quite frustrating so any ideas would be very much appreciated.
Kind Regards
RobertHi Don,
Yes, it is set to the full framework... I am running on a 64 bit Windows 7 machine.
One thing I have noticed is that if I try to load the crystal library through Depends (an application that shows the library dependancies), the different libraries that CrystalDecisions.CrystalReports.Engine.dll depend on are listed as 64 bit (on my machine), yet 'CrystalDecisions.CrystalReports.Engine.dll is a 32 bit library... this is flagged as an error in depends... In fact the first time I ran it it also couldn't find IESHIMS.DLL (because it is not in the PATH) by default. Anyway, there is no 64 bit CrystalDecisions.CrystalReports.Engine.dll that I can see so I'm a bit confused. In fact I am a lot confused.
I have not as yet tried to building a fresh simple test solution with a crystal reference in it..
Thanks
Robert -
CrystalDecisions.CrystalReports.Engine version 9.1.5000 assembly missing
Hi I'm a potential employee for a software developing company called Data Futures. I recently applied for the Quality Assurance Specialists job and they gave me a project to work on to determine If I'm a good fit for their company. The project is to write and execute a test plan for an application program. When I try to run this application program it runs fine until I click the reports option. When I click it the program throws an exception saying it's missing the CrystalDecisions.CrystalReports.Engine version 9.1.5000. I did alot of googling on the net and I think I know the problem but I'm not 100% sure. I think according to the assembly version it shows that I need the Crystal Reports for Visual Studio 2003 .NET runtime files. Am I correct in assuming that? I don't have either CR or VS 2003 on my computer. Because I don't have VS 2003.NET I don't think I can use merge files(.msm). If I find msi files will I need to enter a product key to install them? The application program they gave me didn't come as a deployment package. All they gave me was the executable, some dlls and some other files with it but no runtime files to make it run properly. Please Help! Here is the exact error I get:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
Exception Text **************
System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
File name: 'CrystalDecisions.CrystalReports.Engine, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
at SlickSellCustomerInvoicesSystem.DisplayForm..ctor(DataSet dataset)
at SlickSellCustomerInvoicesSystem.RunReports.RunInvoiceReport()
at SlickSellCustomerInvoicesSystem.MainForm.menuItemAllInvoiceRpt_Click(Object sender, EventArgs e)
at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
at System.Windows.Forms.MenuItem.MenuItemData.Execute()
at System.Windows.Forms.Command.Invoke()
at System.Windows.Forms.Command.DispatchID(Int32 id)
at System.Windows.Forms.Control.WmCommand(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
SlickSellCustomerInvoicesSystem
Assembly Version: 1.0.1867.16218
Win32 Version: 1.0.1867.16218
CodeBase: file:///C:/Documents%20and%20Settings/Tommy/Desktop/Sample%20Test%20Project/SlickSellSolution/SlickSellSolution/SlickSellSolution/SlickSellCustomerInvoicesSystem/obj/Release/SlickSellCustomerInvoicesSystem.exe
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.I assume this is posted in error as it is the same as:
CrystalDecisions.CrystalReports.Engine version 9.1.5000 assembly missing
Thus marking as answered and locking
Ludek -
Post Author: olabisi
CA Forum: .NET
Hello All,
i am working on a project and try to come up with a report using crystal report that is embedded with vs 2003.net and the following error was generated.
this is the error in detail:
Server Error in '/BISI' Application.
Logon failed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed.Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace:
[LogOnException: Logon failed.]
. I(String , EngineExceptionErrorID )
. D(Int16 , Int32 )
. C(Int16 )
CrystalDecisions.CrystalReports.Engine.FormatEngine.GetLastPageNumber(ReportPageRequestContext reqContext)
CrystalDecisions.ReportSource.LocalReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext)
CrystalDecisions.Web.ReportAgent.get_LastPageNumber()
CrystalDecisions.Web.ReportAgent.u(Boolean n)
CrystalDecisions.Web.CrystalReportViewer.OnPreRender(EventArgs e)
System.Web.UI.Control.PreRenderRecursiveInternal()
System.Web.UI.Control.PreRenderRecursiveInternal()
System.Web.UI.Control.PreRenderRecursiveInternal()
System.Web.UI.Page.ProcessRequestMain()
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
Note: this report has a main report that have three subreport in it. It was working fine until i added the third sub report to the main form.I will be glad if a solution could come up fast. This is my email : [email protected] or [email protected]
JacobsI would recommend looking at this White paper on how to logon to a database:
http://www.businessobjects.com/global/pdf/dev_zone/VS2005_Walkthroughs.pdf
Right now, looking at your code, it's quite convoluted. E.g.; you se the connection info, then load the report, then set it to the viewer, then do setdatabaselogon...
You may also want to see the sample app vbnet_win_dbengine sample app in this download:
https://smpdl.sap-ag.de/~sapidp/012002523100006252822008E/net_win_smpl.exe
Finally, I'd recommend that you search these forums as there are a number of great solutions here also.
Ludek -
CrystalDecisions.CrystalReports.Engine.InternalException Error
Post Author: crash75k
CA Forum: .NET
I am getting the following error when generating and printing a crystal report from my .net project. It's rather intermitant, that is i know the data isn't the problem as have re-run a record which caused the error and it printed successfully. Little bit confused as to actually what is causing the problem? One thing i did try is moving to a different printer which helped, that is the problem happens less frequently but still occurs. Any ideas Ta CrystalDecisions.CrystalReports.Engine.InternalException: Error in File F:\DOCUME1\ADMINI1.RIM\LOCALS1\Temp\Omgeo Import Print {7AE4245E-AC71-47F2-BEDB-C76014B48B83}.rpt:The request could not be submitted for background processing. ---> System.Runtime.InteropServices.COMException (0x800002AD): Error in File F:\DOCUME1\ADMINI1.RIM\LOCALS1\Temp\Omgeo Import Print {7AE4245E-AC71-47F2-BEDB-C76014B48B83}.rpt:The request could not be submitted for background processing. at CrystalDecisions.ReportAppServer.Controllers.DatabaseControllerClass.ReplaceConnection(Object oldConnection, Object newConnection, Object parameterFields, Object crDBOptionUseDefault) at CrystalDecisions.CrystalReports.Engine.Table.SetDataSource(Object val, Type type) at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type) --- End of inner exception stack trace --- at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e) at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type) at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSource(DataTable dataTable) at OmgeoImporter.CrystalComponent.setDataSetTable(DataTable dsp) at OmgeoImporter.Importer.printCrystal(DataSet txtds)Post Author: MJ@BOBJ
CA Forum: .NET
Intermittent issues can be very difficult to troubleshoot and solve. This particular error typically occurs when trying to process data (not necessarily a particular row of data), but it could be related to other things (as you noticed when changing printer drivers). I would make sure you have the latest patch for the version of CR you are using as there have been fixes done for this error.
Otherwise, I recommend working with the BOBJ support team to help troubleshoot the issue as there are a lot of things that can be investigated to find the root of the issue. -
Post Author: olabisi
CA Forum: .NET
Hello All,
i am working on a project and try to come up with a report using crystal report that is embedded with vs 2003.net and the following error was generated.
this is the error in detail:
Server Error in '/BISI' Application.
Logon failed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed.Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace:
[LogOnException: Logon failed.]
. I(String , EngineExceptionErrorID )
. D(Int16 , Int32 )
. C(Int16 )
CrystalDecisions.CrystalReports.Engine.FormatEngine.GetLastPageNumber(ReportPageRequestContext reqContext)
CrystalDecisions.ReportSource.LocalReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext)
CrystalDecisions.Web.ReportAgent.get_LastPageNumber()
CrystalDecisions.Web.ReportAgent.u(Boolean n)
CrystalDecisions.Web.CrystalReportViewer.OnPreRender(EventArgs e)
System.Web.UI.Control.PreRenderRecursiveInternal()
System.Web.UI.Control.PreRenderRecursiveInternal()
System.Web.UI.Control.PreRenderRecursiveInternal()
System.Web.UI.Page.ProcessRequestMain()
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
Note: this report has a main report that have three subreport in it. It was working fine until i added the third sub report to the main form.I will be glad if a solution could come up fast. This is my email : [email protected] or [email protected]
JacobsPost Author: mewdied
CA Forum: .NET
You need to make sure that you are passing the database logon code to the third sub-report correctly. If you are currently only passing database logon to the main report, it may be that the other two subreports are using the same connection as the main, but the third one is using something different. -
'Load report failed' msg reported by CrystalDecisions.CrystalReports.Engine
Dear member,
We are using Crystal Report viewer (Version 11.5) from our Web based product on Windows Server 2003.
Sometime when we run the report generating application we get the error message 'Load report failed'.
So far, we don't find any problem in our product.
Has someone experienced a similar problem?
How did you solve the issue?
Thanks and best regards,
Makoto
Below are the error messages detail logged on event logs.
Event Type: Error
Event Source: AvantGard eTreasury
Event Category: None
Event ID: 140
Date: 4/02/2011
Time: 2:21:31 PM
User: N/A
Computer: JP0010SWFIN41
Description:
The description for Event ID ( 140 ) in Source ( AvantGard eTreasury ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Source: CrystalDecisions.CrystalReports.Engine
Target: EnsureDocumentIsOpened
Function: .Initialise
Message: Load report failed..
Event Type: Error
Event Source: AvantGard eTreasury
Event Category: None
Event ID: 140
Date: 4/02/2011
Time: 2:14:18 PM
User: N/A
Computer: JP0010SWFIN41
Description:
The description for Event ID ( 140 ) in Source ( AvantGard eTreasury ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Source: CrystalDecisions.CrystalReports.Engine
Target: PEOpenEngineEx
Function: .Initialise
Message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt..Make sure you are closing and disposing of the report object once you are finished with them.
What Service Pack are you on?
Thank you
Don -
Incorrect CrystalDecisions.CrystalReports.Engine.Table.Location
Hi All,
I'm doing a project where my report developer team is developing reports in Crystal reports XI.
This report use oledb provider to connect to sql server 2000.
I have tables name like
"abcowner.xyztable"
"pqrowner.xyztable"
so same table in different owner/schema.
Crystal report is using "pqrowner.xyztable" and it runs fine in crystal report.
I'm have embedded this report in asp.net 3.5 and using 11.5.37.0 runtime. When this report is run in asp.net application using
CrystalDecisions.CrystalReports.Engine.ReportDocument() , it's using table in different schema i.e. "abcowner.xyztable".
I have to manually change the location of the table to point to correct owner. I can't fix like this becuase the application wouldn't know which owner/schema to pick.
foreach (CrystalDecisions.CrystalReports.Engine.Table crTable in crTables)
crTableLogonInfo = crTable.LogOnInfo;
crTableLogonInfo.ConnectionInfo = crConnectionInfo;
string strLocation = crConnectionInfo.DatabaseName + "SCHEMA/OWNER." + crTable.Location.Substring(crTable.Location.LastIndexOf(".") + 1);
crTable.ApplyLogOnInfo(crTableLogonInfo);
crTable.Location = strLocation;
Any suggestion ?
Thanks
Thanks in advance.One thing I'd do 1st is make sure you are on [SP 6|https://smpdl.sap-ag.de/~sapidp/012002523100015859952009E/crxir2win_sp6.exe]. Eventually you'll need the SP 6 runtime:
CR XI r2 (SP6) MSM
https://smpdl.sap-ag.de/~sapidp/012002523100000634042010E/crxir2sp6_net_mm.zip
CR XI r2 (SP6) MSI
https://smpdl.sap-ag.de/~sapidp/012002523100000633302010E/crxir2sp6_net_si.zip
Perhaps using the InProc RAS SDK will be better also. See KB [1553921 - Is there a utility that would help in writing database logon code?|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533353333333933323331%7D.do].
- Ludek -
CrystalDecisions.CrystalReports.Engine.dll not installed on client
I developped a small test application in VS 2010 that uses a reportviewer. The report has its own connection to a database and only accepts parameters at startup. When I try to run this program on a client computer, the program fails with an error message that the above mnetioned dll cannot be found. That is correct, as the .dll is not present. On my development computer it is present in the C:\Program Files\SapBusinessObjects\...\dotnet folder. On the client this folder contains just one .dll. I installed .Net 4 on it and I used the 32 bit runtime installer. The client's OS is win 7 starter.
What is wrong?Fairly new to VS 2010. I have the exact same issues that were described in this discussion.
However, I do not understand how to make a deployment project, and I especially don't understand what you included in your deployment project.
What, exactly, was installed using the deployment project? Did it have the runtime installer .msi? The results of the runtime installer?
Any help would be appreciated. -
Post Author: N11689
CA Forum: .NET
We are using standalone Crystal Reports XI Release 2 with Service Pack 2 to write our reports. We have created a VB.NET 2005 application that our own software will run to execute the Crystal Reports we have developed.
One of the options is to allow the user to Preview the report. We do this using the CrystalReportViewer.
We have noticed that not all of the ReportOptions from the report, specifically, Create Group Tree, is not available.
We need this property to conditionally enable the Toggle Group Tree icon in the viewer. We have 500+ reports that our users can select to print from our software, so we need to conditionally display the group tree based on how the report's Create Group Tree property is set.
I have two questions:
1) Does anyone know how to access the report's Create Group Tree property from withing VB.NET 2005 using the Crystal Reports for .NET assemblies?
2) Where do I find the list of Business Object's open issues for the Crystal Reports for .NET assemblies?
Thank youPost Author: N11689
CA Forum: .NET
Thank you for confirming that the group tree report option property is not there.
Do you know where I can go to request an enhancement without having to open a $195.00 incident to tell Business Objects that they have left some functionality out of the Crystal Reports for .NET assemblies?
Business Objects recommended we move to the .NET assemblies rather than RDC because the RDC has very limited support in the .NET environment. Sounds like they are phasing it out. So, we have move to using the .NET assemblies (per their recommendation), but keep coming across situations such as this.
Thank you. -
Crystal Report Viewer integration with Sharepoint 2010
We had a requirement in our project to view crystal report off an hyper link embedded into sharepoint web part developed using ASP .NET. The report accepted few parameters from the sharepoint page and passed those on to the SQL server to retrive data and
display the data in the report. The challenge was to open the report in the web browser.
The first difficulty was to find the right control to use, the report viewer tool that comes with Visual Studio 2010 is not the right one to use to view Crystal reports, I realised this after spending half a day trying to figure out why wouldn't the report
load. I then downloaded the Crystal Report Viewer for VS 2010 Standard from http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp. After you install this, you get the crystal report viewer in your toolbar. All you have to do is drag and drop it on
to the web part and configure it to use your report. If any one needs help with this let me know I will show how to do that.
So far so good. The biggest challenge was to deploy this on to the production server which took better part of 3 days to figure out how its done. If you deploy the WSP file as it is expecting that the crystal DLLs would be embedded in it then be ready to
expect a rude shock because it isn't. Here are the steps -
1. Deploy the WSP to the sharepoint server
2. Install the crystal dlls used in the project (CrystalDecisions.CrystalReports.Engine.dll, CrystalDecisions.ReportSource.dll, CrystalDecisions.Shared.dll, CrystalDecisions.Web.dll) into the GAC using GacUtil command
3. Add following entries to Web.Config file (C:\inetpub\wwwroot\wss\VirtualDirectories\80\web.congif)
<SafeControl Assembly="CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.CrystalReports.Engine" TypeName="*" Safe="True" SafeAgainstScript="False"
/>
<SafeControl Assembly="CrystalDecisions.ReportSource, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.ReportSource" TypeName="*" Safe="True" SafeAgainstScript="False" />
<SafeControl Assembly="CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Shared" TypeName="*" Safe="True" SafeAgainstScript="False" />
<SafeControl Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Web" TypeName="*" Safe="True" SafeAgainstScript="False" />
4. Install crystal redistributable package which can be downloaded from http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp (
SAP Crystal Reports runtime engine for .NET Framework 4 (64-bit))
5. Copy aspnet_client folder from C:\>inetpub\wwwroot and overwrite it on C:\>inetpub\wwwroot\wss\VirtualDirectories\80
And we are done. Fingers crossed it should all work.
Prasad Matkar MCP, MCTSHi Mahesh,
How are you loading the report in your webpart? This is what I have done. I have tried to explain what I am doing in the program comments. Hope this helps. Good luck.
SPSite mySite = new SPSite(SPContext.Current.Site.Url.ToString());
SPWeb thisSite = mySite.OpenWeb();
// Writing to event log after every step in debug mode so that you get to know if there was a failure what step the failure occured after.
EventLog.WriteEntry("Reports", "Inside PAge Load ", EventLogEntryType.Error);
SPFolder folder = thisSite.GetFolder("Reports");
if (folder.Exists)
// get collection of Crystal Reports rpt files in the document library
SPFileCollection files = folder.Files;
// open the rpt file and get the contents
SPFile srcfile = files[reportToLaunch];
byte[] content = srcfile.OpenBinary();
// make a temporary folder
DirectoryInfo dir2 = new DirectoryInfo("~/temp");
if (!dir2.Exists)
dir2.Create();
if (File.Exists("~/temp/temp.rpt"))
File.Delete("~/temp/temp.rpt");
// write the report definition to a temporary file
// EventLog.WriteEntry("Reports", "Before Creating temp report ", EventLogEntryType.Error);
//EventLog.WriteEntry("Reports", "Before Create ", EventLogEntryType.Error);
BinaryWriter bw =
new BinaryWriter(File.Open("~/temp/temp.rpt", FileMode.Create));
bw.Write(content);
bw.Close();
// EventLog.WriteEntry("Reports", "After Create ", EventLogEntryType.Error);
// set up the crystal report
ReportDocument reportDoc = new ReportDocument();
reportDoc.Load("~/temp/temp.rpt");
EventLog.WriteEntry("Reports", "after report load ", EventLogEntryType.Error);
ConnectionInfo connection = new ConnectionInfo();
connection.ServerName = "SQLServerName";
connection.DatabaseName = "SQLDatabase";
connection.UserID = "sqluser";
connection.Password = "sqlpassword";
TableLogOnInfo logon = new TableLogOnInfo();
logon.ConnectionInfo = connection;
reportDoc.SetParameterValue("@Parameter1", parameter1);
reportDoc.SetParameterValue("@Parameter2", parameter2);
EventLog.WriteEntry("Reports", "after assigning parameters ", EventLogEntryType.Error);
foreach (CrystalDecisions.CrystalReports.Engine.Table t in reportDoc.Database.Tables)
t.ApplyLogOnInfo(logon);
EventLog.WriteEntry("Reports", "after applying login info ", EventLogEntryType.Error);
// and the Crystal report Viewer
CrystalReportViewer1.ReportSource = reportDoc;
EventLog.WriteEntry("Reports", "Before delete ", EventLogEntryType.Error);
// clean up
File.Delete("~/temp/temp.rpt");
EventLog.WriteEntry("Reports", "after delete ", EventLogEntryType.Error);
Prasad Matkar MCP, MCTS -
CRVS2010 Beta - .CrystalReports.Engine.Table.Friend -BUG Coding ERR
Table is is a Constructor in System.Web.UI.WebControls
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.table.aspx
Yet you are using this reserved word in CrystalDecisions.CrystalReports.Engine.Table.Friend Sub New()
try
Imports CrystalDecisions.CrystalReports.Engine
Partial Class tablerror
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim tbl As Table = New Table()
End Sub
End Class
Updated to inform it's CRVS2010 issue
Edited by: Don Williams on Oct 30, 2010 8:44 AMWhat other information are you looking for? This is an extremely simple issue to track down.
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.table.aspx - is all you need.
Imports CrystalDecisions.CrystalReports.Engine
Dim tbl As Table = New Table()
Try it...
This IS a BUG with CRVS2010 Beta. -
Could not load file or assembly 'CrystalDecissions.CrystalReports.Engine, '
Dear Experts,
I am running crystal report viewer in SAP B1 2007A but one of my client machine will get the following error messages
when I try to run the CR application:
Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
The client is not using any MS VS & CR in her machine. I also not so sure what is the main cause of this problem as I not so familiar with CR in SAP B1.
Kindly help me to resolve the error. thx.
Regards,
xavierHi xavier.rayne,
Check following link.
http://forums.asp.net/t/1388703.aspx/1?CouldnotloadfileorassemblyquotCrystalDecisionCrystalReports+
http://social.msdn.microsoft.com/Forums/en/vscrystalreports/thread/c9df7a18-513e-4c26-8b65-9578d3bddef0
SAP Crystal Solutions Support
I hope this will help you
Thanks,
Srujal Patel -
In the very near future we will be forced to upgrade to Office 2010 Company wide and I am a little concerned with some of our older test platforms that have applications built in LabView 8.2.1. These applications save data to MS-ACCESS 2000 databases using the LabView database connectivity toolkit 1.0.1. Office 2003 is also loaded on these test platforms with all test reports generated using the LabView report generation toolkit for Office 1.1.3.
I have not gotten my hands on a copy of Office 2010 yet to see if there will be any compatibility issues. Does anyone have any experience in this area?The MS-Access part is fairly well isolated through the ADO interface LabVIEW uses. The only possible problems there IMHO are difficulties with possible Acess compatibilities itself such as an example, SQL statement you may have invoked directly through the ADO interface. Maybe you did use a depreciated command back then that has since been removed. As long as the only thing you do are simple INSERT and SELECT statements only, I would expect it to just keep working.
The Report Generation interface is a different beast. Microsoft manages to change the Automation interface with every version of office in a way that strongly binding applications like LabVIEW break on. There is no good way around that except not changing those methods, but that is a cause that has been lost already. You will certainly have to verify the version dependant Report Generation API VIs to still work with Office 2010 and most likely you will have to make some changes to those VIs to make them work again with the modified ActiveX interface of Office 2010. Note, that I have no experience with porting report generation to Office 2010 but I have had some headaches from porting that between Office 97, 2000, 2003, and 2007.
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
IIS Url Rewriting supported with SharePoint 2010?
I am currently working for a client that is investigating how they can do vanity domain names for sub sites. I don't believe this will actually work with SharePoint 2010 and believe it may put the environment in an unsupported state...however I need
to find some sort of official MS statement saying so.
Everything I find points me to
http://technet.microsoft.com/en-us/library/cc261814%28office.12%29.aspx#section2 which states that "Windows SharePoint Services 3.0 does not support asymmetrical paths" however I can't find anything that says the equivalent for 2010.
I know that web apps and AAM are the typical approaches, and now in 2010 you can do host named site collections, however they want to do sub-sites.
Can anyone point me to any official MS statement stating that this is not support with SharePoint 2010?
Tony Testa www.tonytestasworld.comWe ran into the same question. Since there's no official statement from Microsoft to be found on the internet that takes away the rumors about it being supported, we set out the question with Microsoft to provide their official statement. Their
reply was that URL rewriting is supported. Find the full reply from Microsoft at my website at
https://www.zomers.eu/knowledge/sharepoint2010/Pages/Url-rewriting-is-supported-for-SharePoint-2010.aspx
This link doesn't work and also directly contradicts statements from other Microsoft sources, e.g.
http://blogs.msdn.com/b/opal/archive/2010/04/23/sharepoint-2010-search-engine-optimization-seo-tips.aspx
where the following is stated:
"URL Rewriting is still not supported - however url redirect is supported. We are using url redirect feature in url rewrite model."
Please provide a link that works and/or back up your claim. Thanks.
Maybe you are looking for
-
My hard drive fried and had to be replaced. I'm trying to install CS4 from my original discs but keep getting this error message - "One or more of the required components of Adobe Creative Suite 4 Design Standard failed to install correctly". A custo
-
Intel HD Driver issues when downgrading from Win8 to Win7
Hi Guys, I currently have a bunch of HP Pro3500MT machines which have come preinstalled with Win8 on these and after checking with HP they stated that these are compatible to be downgraded to run on Win7. The install works fine up until the point whe
-
How do I resolve a ClassNotFoundException for a custom class
I am new to Java and am having frustrating problems. I am creating a Desktop application and want the application to have the capability to read from the file system. I created a custom class to hold mapping data and stored the object to file using O
-
IPod not remembering playback position
hi all. i have converted many movies files into the mp4 for my 5g 30gb ipod (mainly from .avi files already converted from DVD's) and my ipod wont remember the playback position. if i watch a movie, stop, auto-sync my ipod with itunes, the position i
-
Analysis Services 2012 hungs up
Hi everybody, I am using sql server 2012 sp2, 16 cores CPU, 128 Gb Memory. Both sql server and analyis servics are installed on the same server. sql server is allocated to use (60 Gb). And analysis services instance properties are set to default val