C# - Loading Crystal Report From Embedded Resource
Mar 29, 2011
I have an ASP.NET website and a referenced class library project. In this class library I have a Crystal Report set as embedded resource. I want to load the report dynamically into a CrystalReportViewer.
I have an ASP.Net (.Net 2.0) application that creates Crystal Reports (version 11.5) and shows them with CrystalReportViewer control. For some reason the control isn't showing the logo image in the header of the report. It renders the following html
How Can I load a crystal report using a URL like http://.... Or reports that are located in different servers then my Application's ? I have tried:
O_Report.Load( http://myServer/MyApplication/Myreport.rpt); but didn't work and when I tried:
O_Report.Load(Server.MapPath( http://myServer/MyApplication/Myreport.rpt)); an error message telling me that http://myServer/MyApplication/Myreport.rpt is not a Valid Virtual path, knowing that is the virtual path to my crystal
Question: Is it possible to embed .skin files as a resource?
However, the last thing I would like to do is embed skin files in this project so that all the controls have the same look. I know I can control look solely with css, but I would like to control some of the other asp attributes as well(ie AllowSorting and AllowPaging attributes of a grid). Is it possible to embed skin files as a resource? Or will each individial project need a copy of the skin file? If anyone could provide insight on how I can go about embedding a skin file..
I expect these two lines to yield the same result, but instead I get this:
Auswertungen für den Tagesabschluss End of Day
In other words, the first syntax <%= ReportTitles.EndOfDay %>successfully retrieves the value from the ReportTitles.de.resx file we're using, but the second syntax <asp:Literal ID="litLabel" runat="server" Text="<%$ Resources:ReportTitles, EndOfDay %>"/> gets the value out of the default US English ReportTitles.resx file.
They all seem to say I need to, after adding the JS file, change the build action to 'embedded resource' through its properties. However, the only properties I can actually see on the file are 'File Name' and 'File Path'. Right clicking the file in the solution explorer doesn't allow me access to properties, and right clicking (as one of those links suggests) anywhere else doesn't expose it either. I tried looking through VS Options but couldn't find anything, although I get the impression that I have something configured wrong that's not allowing me to see as many properties as I should be able to.
Firstly, "Modifying" may be the wrong term, I see a few people have posted online just asking whether they can actually modify an embedded resource. What I am wanting to to, is use a resource in my assembly as a kind of template which I would do a find and replace on before registering it on the page - is this possible?
For example; say I have a few lines of jQuery as an embedded resource in my assembly and in this script I am referencing a CSS class name that can be set by the front-end programmer. Since I do not know what the CSS class will be until implementation, is there a way of going through the embedded resource and replacing, say, $myclass$ with ThisClassName.
i have developed my asp.net application along wih crystal report .... i need to show loading image on ever client and server side request .... (i.e) like when ever IE progress bar get loading i want to show my gif loading ... after IE progress bar finish its loading, my gif loading image should disappear .
I have a class library and was to add a resource file to it to support both English and Spanish. Any tips as how I can do this? The language will be dictated by the user visiting the site. Would like to have to only load each resource file once and cache or set in static variable and avoid any overheads.
Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. Details: To enable the details of this specific error message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off". Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's configuration tag to point to a custom error page URL. ----------------------------------- This error will be display when I am try to show the Crystal Report. Can anybody tell me what Property I have to ser in Windows Server 2008 R2 or in IIS7???
I am developing an web application where I have Crystal Reports which I need to provide print option for users. I also don't like to use CR Toolbar. I created an ASP button (PDF Print) where I write code for converting CR into .pdf and popup the .pdf file. When I run the application on my local machine it works fine but when I run it from server and click the PDF Print button it shown the logon page. Also it's not working after providing the logon credentials. Here is my code fro converting and printing CR:
a myth has been passed to me by a senior who told me to 'always' design a crystal report using Add command and not through the table view (like selecting tables and linking them manually).I have been having a hard time writing the queries for master detail reports and making sub report links manually. It gets pretty confusing sometimes.I find it easy to design reports by just selecting two tables and dragging and dropping the link in crystal report designer.
Hi...I have developed an ASP.NET app. The Crystal Report Viewer Print usually displays a printer install dialog box when a user 1st tries to print however on 2 of my users the dialog box does not display (with other users the install dialog popup works fine). I have enabled popups, disabled the firewall, enabled internet & intranet activex components in the browser security options etc... We have developed in VS2005 using IE6 on XP.
using vs.net 2005, sql server 2005, creating windows form appI have a dataset that I bound to a crystal report as follows:
and in the Crystal Report in design view I added a Text Object called "myTxtObj".I am assuming that I can do something like this
However I'm not seeing the "myTextObj" with intellisense in the code behind in the form.so my question is: after binding a dataset to a report how to you bind column values to text objects on your crystal report?and actually one mor thing:I just ran the project and found out when I try to do the databind that i'm getting an error:"The report has no tables"how to solve this too?
I have a Registration form with two Buttons "Save" & "Report". When I click on "Save" the data will store in the Database. Now I want when click on the "Report" button the report of that particular will be produce in the Crystal report. How can I do that??
I am developing we application using Csharp on Visual studio 2008.How can I pass values from Page or GridView to a Crystal Report? For example I want some details on a Default.aspx want to appear on the Crystal report when I click on it. How do I pass theses values from Page to crystal report at Runtime?
I have try to add crystal report viewer to my tool box by clicking - choose tool box items under the .net compoenent i can see report viewer but not crystal report viewer. when add report viewer to webpage it shows <rsweb:ReportViewer tag
but I need to add <CR:CrystalReportViewer
Also I can t see crystal reports in Add new item list in VwD. In a previous post of asp.net member I saw a link to instal microsoft report viewer ridistributable .Like that do i need to install any thing to local machine which Business objects crystal report (v12) and Visual web developer(for 2005 or 2008) installed.
i upload my site on server but there is error in crystal report web.comfig there is error as belowParser Error Message:Could not load file or assembly 'CrystalDecisions.ReportAppServer.ClientDoc, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
ent system (Windows 7 x64) and live system (Server 2008 x64), and both with IIS7 I receive the following error message, after clicking the "Print" button in the printer selection popup."An error occurred on the server. Printing will be stopped. Would you like to view the error information?"If I click "y
I used push method with my crystal report. I used a dataset which on page load loads 2 seperate datatables and are added to it. Everything works fine. But if the Milestones Datatable is empty, the crystal report shows none of the data related to the Projects Datatable, as if the table is empty. The Select Method of the business logic layer objects uses querystrings of the name ProjectNo. Below is a sample code.
to print a crystal report from the server's printer with a button on the web application.Assume that I have a ASP .NET Web Application, When i press the "print" button on the web application, the server which holds the web application prints the specific crystal report with specific data set. Is this possible? How I am going to make this happened?I am sorry to say that I'm very new to all these web programming,
I installed Visual Web develperTrying to get a crystal report to show in the form but therte are no Crystal obhject to select Installed Visual Studio 2008 I can add an Item for Crystal now in form show the form and I see it has menu bar for crystal viewer and I see the report Now if I move the webpage to our server which has IIS 7.0, ASP.net 3.5 what else do I need to install on the server so it wil show the crystal report in the form?
I have a crystal report viewer control that loads a report dynamically based on input. Locally (on development machine), the app runs perfectly. I can see the report itself and all the navigation icons, print icons, export icon, search, etc. I can also actually print the reports and export them to various formats. The problem I am having is when I push the program out to our Intranet I can still see the report itself, but instead of seeing images for all the icons in the Crystal Report Viewer navigation bar, I just see the standard red X showing that an image doesn't exist. I can still click though and navigate, but I have no top bar anymore in CRV. Am I missing a reference on the web or something? Did I install the wrong version of CR for the server? Also, as I said, exporting and printing on development machine works correctly, but on intranet the export button just causes page to refresh and the print button opens a new window that says the Page cannot be Found.
FYI, I installed the redistributable found in my .net folder C:Program FilesMicrosoft Visual Studio 8SDKv2.0BootStrapperPackagesCrystalReportsCRRedist2005_x86.msi on the server's GAC. IS this the correct server install for VS2005.NET CR?
I'm struggling with this problem about 2 weeks and still cannot find the resolution.I was developed a .Net application with visual studio 2008 and using crystal report to generate report.It is working fine in my local machine. However, after I deployed the application to web server with microsoft server 2003 64bits server. The report cannot open and I get this error The type initialize or 'crystaldecisions.crystalreports.engine.reportdocument' threw an exception. I try to install the redistribution package from C:Program FilesMicrosoft SDKsWindowsv6.0ABootstrapperPackagesCrystalReports10_5 but it doesn't work.
I create an ASP.NET Crystal Report Web application using VS.NET 2010. In ASP.NET page, I stored two values in Session state and need to pass them as input parameters to Oracle stored procedure. In Crystal reports 2010 once you connect to a stored-procedure as data source, it automatically creates the parameter fields with Crytal Report Viewer. how I pass values to store procedure at runtime automatically.
We have migrate from VS2005 to VS2010. CR2010 installed too.
We have 1 website and class project in one solution.
The assembly of web.config has point to new version of CR ver13 and also checked that the references is ver13 too.
However in code behind, when "Go To Definition" the imported CrystalDesicions Namespace, it go to CR version10 location.
The class project has references to correct ver13.
In the end we get error of :
Error 17 The project currently contains references to more than one version of CrystalDecisions.CrystalReports.Engine, a direct reference to version 10.2.3600.0 and an indirect reference (through 'Web_cl.clsAccountRpt.GetAccountStatementSummaryRptDoc') to version 13.0.2000.0. Change the direct reference to use version 13.0.2000.0 (or higher) of CrystalDecisions.CrystalReports.Engine. D:ProjectWebGlobal 4.0Web_developCpAdminReportFormAccountReportModule.aspx.vb 40 28 D:...Web_develop
The function in class has return ReportObject back to the website, because of the website reference did not really point to new version has causes this error. I have checked all references in web.config and project properties all is point to new version, but in program it seems still point to old one.