Crystal Reports :: Add A Reference To CrystalDecisions.CrystalReports.Engine?
Aug 29, 2010I am using NET 3.0
how to add a reference to CrystalDecisions.CrystalReports.Engine(crystal report),I tried, but its not working.
I am using NET 3.0
how to add a reference to CrystalDecisions.CrystalReports.Engine(crystal report),I tried, but its not working.
I have created a asp.net web site using Visual Studio 2008 and Crytal Reports. I have two small reports that work perfectly on my development machine, and I have tripple checked that I have added reference to the CrystalDecisions.CrystalReports.Engine in my project. I do not have any CrystalReports dll's in my bin folder but when select my project and then click on the properties window the following refereces are there.
CrystalDecisions.CrystalReports.Engine, CrystalDecisions.EnterpriseFrameWork, CrystalDecisions.Enterprice.InfoStore, CrystalDecisions.ReportAppServer.ClientDoc, CrystalDecisions.ReportSource, CrystalDecisions.Shared, CrystalDecisions.Web
I have tried publishing, I have tried creating a Deployment Package etc and I continue to get the same error. Is there some deployment assembly that I am supposed to include with my install etc.
In web application developed in asp.net 1.1 using vb.net. My application crystal reports working fine in my local machiene. when i placed in web sever it throws the error " File or assembly name CrystalDecisions.CrystalReports.Engine, or one of its dependencies, was not found."
Line 38: <compilation defaultLanguage="vb" debug="true"><assemblies>
Line 39: <add assembly="CrystalDecisions.CrystalReports.Engine, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
Line 40: <add assembly="CrystalDecisions.ReportSource, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/> Line 41: <add assembly="CrystalDecisions.Shared, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
The following information can be determine why the assembly 'CrystalDecisions.CrystalReports.Engine' could not be loaded.
When running my crystal report I got the follwoing erro r
Unhandled Exception: CrystalDecisions.CrystalReports.Engine.InternalException: E
rror in File C:DOCUME~1aliLOCALS~1Temp1 emp_8b7deeee-5769-4457-8c1f-f21fa8
c49cb5.rpt:
Failed to open a rowset. at ☻.☻N(String ♠-, EngineExceptionErrorID ♠0)
at ☻.☻I(Int16 ♠!, Int32 ♠")
at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestCo
ntext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export()
at CMP_BL_INC_W.Module1.Main()
Also I verified the database and no errors appeared, I use .NET 2003 and crystal report 9
Currently, I have a page contains a report. But while I need to load the report for several times , the latest one I got the err about
'crystaldecisions.crystalreports.engine.logonexception load report failed'
What's the problem?
i hve CRRedist2005_x86 installed in my ststem but still it give the below error
{"The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception."}
{"An error has occurred while attempting to load the Crystal Reports runtime.
Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.
I'm making a solution with Visual Studio 2010 using "cr4vs2010". When I start my web app from Visual Studio and I open my report, There is any problem, but if I want to export this file to a .pdf file or to other format, I receive a JS error message:
"Object required" and the debugger marks the following line:
bobj.crv.stateManager.setComponentState('CRV1__UI',eval('('+document.getElementById('__CRYSTALSTATECRV1').value+')'));
Sometimes in previous versions of CrystalReports I only copy the "aspnet_client" folder in the application root and it works, but in this version of Crystal Reports this folder does not exists.
Do you have CrystalDecisions.Web dll version 12.0.2000.0?
View 4 RepliesI installed Microsoft Visual Studio 2010 and I got a setup of crystal report from my friend titled with "CRforVS_13_0" , everything till now smooth and the world that rose !
let us the error scenario
1 - Create new Website
2 - add new table on the Default.aspx web page
3 - Build solution everything look great
4 --- Drag drop of the control CrystalReportViewer and build to find the below errors
Error 2 'CrystalReportViewer' is ambiguous in the namespace 'CrystalDecisions.Web'. C:UsersuserDocumentsVisual Studio 2010WebSitesWebSite6Default.aspx 28
Error 3 'CrystalReportViewer' is ambiguous in the namespace 'CrystalDecisions.Web'. C:UsersuserDocumentsVisual Studio 2010WebSitesWebSite6Default.aspx 28
Error 4 'CrystalReportViewer' is ambiguous in the namespace 'CrystalDecisions.Web'. C:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Fileswebsite64931b126339b72a7App_Web_tyipm02u.2.vb
Error 5 'CrystalReportViewer' is ambiguous in the namespace 'CrystalDecisions.Web'. C:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Fileswebsite64931b126339b72a7App_Web_tyipm02u.2.vb
Error 6 'CrystalReportViewer' is ambiguous in the namespace 'CrystalDecisions.Web'. C:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Fileswebsite64931b126339b72a7App_Web_tyipm02u.2.vb
Error 1 C:UsersuserDocumentsVisual Studio 2010WebSitesWebSite6Default.aspx(28): error BC30560: 'CrystalReportViewer' is ambiguous in the namespace 'CrystalDecisions.Web'.
Error 7 Unable to load referenced library 'C:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Fileswebsite64931b126\_shadow339b72a725213691630133667App_Web_site.master.cdcab7d2.0yuyrufa.dll': The system cannot find the path specified.
Error 8 Unable to load referenced library 'C:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Fileswebsite64931b126\_shadow339b72a725213691630133667App_Web_site.master.cdcab7d2.0yuyrufa.dll': The system cannot find the path specified. C:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary
ASP.NET Fileswebsite64931b126\_shadow339b72a725213691630133667App_Web_site.master.cdcab7d2.0yuyrufa.dll
my hyperlink is broken down onto many hyperlinks when
1. displayed on a webpage
2. link takes more than 1 line
I have hyperlnk CSS highlighting and it looks quite strange when only a part of the link is highlighted.I have tried to fix it through Format Object dialog in Crystal Reports, but unsuccessfully.Tweaking CrystalReportViewer did not help either.What I do:
1. Create a text object
2. Make it a "WebSite on Internet" (Format object > Hyperlink tab)
3. Bind datasource field to "Website address" (Format object > Hyperlink tab > Hyperlink information)
3. Make it multiline (Format object > Common > Can Grow)
The resulting HTML on long links looks like:<a href="..."><span class="fc2c1d044e-bf85-4d44-aff2-4cda991b748c-2">Link</span></a><a href="..."><span class="...">01</span></a><a href="..."><span> to</span></a>
<a href="..."><span> my business object</span></a>
and I expect it to be:<a href="..."><span>Link01 to my business object</span></a>
I get this error while compiling in vs studio 2008 but in vs 2005 i dont get this error please help view code below
:Designer code:Option Strict On
Option Explicit On
Partial Public Class stockvaluation [code]....
I have a web application which runs crystal reports. Crystal reports were running properly and its been 2 years that we deployed crystal reports on the web server.Two days ago, suddenly users started getting the following error message. Need urgent help. I have an option to re-register .Net framework and re-installing IIS but i have other very critical application running too, which i don't want to risk at the moment. The server is running on Windows server 2003 with IIS 6.Drop Table INC_IND_CONTRACT;
View 2 RepliesI have a Visual Studio project that uses three different Crystal Reports. I've upgraded to Crystal Reports 11.5.3300.0 from the version 10.2.3600.0 due to one of the reports requiring the upgraded version. I updated all of the assembly references in the web.config and installed the new assemblies using merge modules. When I run the project I receive the following error:
Could not load type 'CrystalDecisions.Web.CrystalImageHandler' from assembly 'CrystalDecisions.Web, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
when i use CR v13 in my web site there is error message
Configuration Error Could not load file or assembly 'CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file
specified.
I upgraded my web application from visual studio 2003 to 2008. When I want to create a report in visual studio 2008 and receiving this error at runtime. I am able to compile but when runnning thats when I am getting this error. How can I solve this problem?
Server Error in '/IRPSDEV' Application.
Compilation Error
Description:
An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0433: The type 'CrystalDecisions.Web.CrystalReportViewer' exists in both
'c:WINDOWSassemblyGAC_MSILCrystalDecisions.Web10.5.3700.0__692fbea5521e1304CrystalDecisions.Web.dll' and 'c:WINDOWSMicrosoft.NETFrameworkv2.0.50727Temporary
ASP.NET Filesirpsdev9e97e0a994a2ecdassemblydl3151eb571�0df56e1_6064c201CrystalDecisions.Web.DLL'
Source Error:
[Code]....
Line 161:
Line 162: [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 163: private global::CrystalDecisions.Web.CrystalReportViewer @__BuildControlCrystalReportViewer1() {
Line 164: global::CrystalDecisions.Web.CrystalReportViewer @__ctrl;
Line 165:
Source
File: c:WINDOWSMicrosoft.NETFrameworkv2.0.50727Temporary ASP.NET
Filesirpsdev9e97e0a994a2ecdApp_Web_customsapprovedcalimsreport.aspx.cdcab7d2.qc0hdu8q.0.cs
Line: 163
Show
Detailed Compiler Output:
I have installed the final version of Crystal Reports for Visual Studio 2010. I created a new ASP.Net project, saved it, closed it, and then came back to it later. I was prompted to convert the project because of an out of date version of Crystal Reports. But I just created the project...how can the version already be out of date? Also, once the conversion is complete the CrystalReportViewers error stating "Unable to cast object of type 'CrystalDecisions.Web.CrystalReportViewer' to type 'CrystalDecisions.Web.CrystalReportViewerBase'. I am using .NET Framework 3.5 (I cannot use 4.0 for other reasons). Is this the cause?
View 2 RepliesIn my system Visual studio 2008 with sp1 and Crystal Reports XI Release 2.In Visaul studio 2008 ,while adding add reference it showing crystal reports version 10 instead of 11.How to solve the version problem.
View 1 RepliesI'm working on a vb.net windows project using crystal reports for report generating.I'm using stored procedures as well.Stored procedures are used by crystal reports.When I run report with some parameters it gives error,like this " Unknown Query Engine Error ".I have checked the Stored Procedure and there is no problem with the SP, no extra parameters.
View 1 RepliesWhen i run the application locally it works fine but when i publish it n access from it it gives the error asEither the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.
View 2 RepliesI have been creating asp.net application for accessing data from multiple service references, is it possible to access it with same namespace in Reference.cs file
View 1 RepliesI'm new to Visual Studio.NET . I need to integrate the crystal reports into an ASP.NET application. I generated Crystal report with the help of crystal report XI developer edition(Stand alone version and NOT from the one which comes from visual studio).
How to integrate this report with the web application.
We have quite a few reports which were developed earlier in Crystal Reports 8.5. We are now planning to use these reports in our web application developed in VS 2008 (C#).
What dlls are needed for calling 8.5 in the application and how should they be added to the application while shipping it to the client?
They are also struggling to get the code running. Would also need the code to call the report with parameters.
I have already generated crystal reports but i've made them static. but now i want to make the user to select the criteria for generating the reports. for eg., in one of them i want to show monthwise data so user should be able to select the month and year and that would be passed as parameter and compared to the existing data. provide me with proper exact code that can be used for giving parameters in such a report using C#.
View 3 RepliesI am considering using Crystal Report 2008 as my tool of creating reports on my webpage.The only problem which I'm facing is that I have no control of the remote server which hosts my site (besides uploading files). I can't run a MSI to deploy the CR runfiles.I can't find anywhere in the CR user manual of how to deploy the runtime files without running the msi, and I'm not even sure it's possible.Have anyone deployed CR 2008 without running the MSI and without having to register any files?
View 8 RepliesI have a field in my dataset with type nvarchar(1000). when I link it to crystal reports, it converts it to a field of type string with length set to 100. As a result of that, the string in that field is being truncated on the report. How can I increase the string length to 1000? (I already checked the "Can grow" option).
View 3 Replies