C# - Loading Crystal Report From Embedded Resource
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.
View 1 Replies (Posted: Mar 29 at 14:24)
Sponsored Links:
Related Forum Messages For ASP.NET category:
Crystal Report Viewer Control Isn't Loading The Images Inside The Report
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 <img width="320" height="76" alt="Imagem" src="CrystalImageHandler.aspx?dynamicimage=cr_tmp_image_e47fba99-96fc-471b-ab11-06fd2212bbdd.png" border="0"/> I already included the aspnet_client folder in my Virtual Directory in IIS.
Posted: Feb 12 10 at 17:18
View 1 Replies!
View Related
Loading Crystal Report From URL Path?
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
Posted: Aug 27, 2009 04:11 AM
View 6 Replies!
View Related
Web Forms :: Skin File As An Embedded Resource?
Question: Is it possible to embed .skin files as a resource? I am creating a library of user controls(grids, buttons, etc.) that are common among all of our web projects. I have included several common javascript files used by the controls by adding them as an embedded resource and registering them as a resource using RegisterClientScriptResource. Everything works great. 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..
Posted: May 11, 2010 03:33 PM
View 1 Replies!
View Related
Proper Syntax For Embedded Resource Tags?
I'm trying to localize an asp.net web application. Consider the following asp.net code. I'm running with CurrentCulture and CurrentUICulture set to German ("DE-DE"). <%= ReportTitles.EndOfDay %> <asp:Literal ID="litLabel" runat="server" Text="<%$ Resources:ReportTitles, EndOfDay %>"/> 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.
Posted: Aug 26 10 at 15:49
View 1 Replies!
View Related
How To Localize A Non Embedded Javascript File With Resource
I have a question about javascript. In my project, there are embedded and non-embedded javascript codes. And i did localization of the embedded codes like below and it works. CN.DEFAULT_CONFIG = { strings : { year: '<%=GetGlobalResourceObject("Resource", "YEAR") %>' But, this method does not work for non-embedded javascript codes. How can i do localization for them?
Posted: Sep 3 10 at 8:17
View 1 Replies!
View Related
Visual Studio :: Adding A JS File As An Embedded Resource
My objective is to include a JavaScript file in my Custom Server Control, because it's a bit tedious writing all the JS in C#. I've done a lot of searching and most resources seem to say that I need to add the file as an embedded resource, and access that. I found a few pages describing how to do this: [URL] 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.
Posted: Jul 04, 2010 01:48 AM
View 2 Replies!
View Related
C# - Programmatically Modifying An Embedded Resource Before Registering / Referencing It On The Page
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.
Posted: Mar 5 10 at 15:37
View 2 Replies!
View Related
Custom Server Controls :: Accessing Embedded Resource From IScriptControl?
My Composite control implements IScriptControl interface. ScriptReferences java script file does the client-side work, there I want to load a html file inside iFrame. The Html file is an embedded resource: ([assembly: System.Web.UI.WebResource("Control.Resources.list.htm", "text/html")]) I pass the path of the html to the javascript file via descriptor property: IEnumerable<ScriptDescriptor> IScriptControl.GetScriptDescriptors() { descriptor.AddProperty("iframe", iframe); return new ScriptDescriptor[] { descriptor }; } Where iframe is a string that contains the path from the webresource. Now, in this html file I want to display few images that must be also loaded from resource. The Question is how to access the resources from this html file? Do I have to pass every image path as descriptor property?
Posted: Dec 01, 2010 04:48 PM
View 10 Replies!
View Related
Crystal Reports :: Error In Crystal Report When Using Windows Server 2008 R2 And IIS7?
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???
Posted: May 29, 2010 02:35 PM
View 1 Replies!
View Related
Crystal Reports :: Export Crystal Report Into Pdf Format And Open A Popup Window
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: protected void Button1_Click(object sender, EventArgs e) { ReportDocument Rpt = new ReportDocument(); //report path in application string reportPath = Server.MapPath("Reports\14DaysReport.rpt"); Rpt.Load(reportPath); CRConnectionInfo connectionInfo = new CRConnectionInfo(); CRConnectionInfo.SetDBLogonForReport(connectionInfo, Rpt); //Rpt.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, false, "BiWeeklyReport.pdf"); Rpt.ExportToDisk(ExportFormatType.PortableDocFormat, @"C:BiWeeklyReport.pdf"); string popupScript= "<script language='javascript'>" + "window.open('C:/BiWeeklyReport.pdf');</script>" ; } in SetDBLogonForReport() method I already provided the logon credentials.
Posted: May 19, 2009 09:10 PM
View 29 Replies!
View Related
Fill Crystal Report Data Through Custom Query & Not Crystal Reports Wizard?
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.
Posted: Mar 17, 2010 06:21 AM
View 1 Replies!
View Related
Crystal Reports :: Crystal Report Viewer Print Install Dialog Box Not Displaying?
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.
Posted: Jul 19, 2007 06:53 AM
View 5 Replies!
View Related
Crystal Reports :: Bind Dataset Fields To Text Object In A Crystal Report?
using vs.net 2005, sql server 2005, creating windows form appI have a dataset that I bound to a crystal report as follows: [Code].... 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 [Code].... 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?
Posted: Nov 10, 2010 05:21 PM
View 1 Replies!
View Related
Crystal Reports :: How To Get Crystal Report To Visual Web Developer 2008 /2005
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.
Posted: Apr 28, 2008 08:54 AM
View 9 Replies!
View Related
Crystal Reports :: Crystal Report Showing No Data If One Of The Datatables Has No Rows?
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. [Code]....
Posted: Mar 26, 2010 10:01 AM
View 1 Replies!
View Related
Crystal Reports ::install On The Server Show The Crystal Report In The Form?
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?
Posted: Jun 22, 2010 04:28 PM
View 5 Replies!
View Related
Crystal Reports :: Crystal Report Viewer Icons Are Missing As Is Export And Printing On Server?
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?
Posted: Jan 15, 2008 05:41 PM
View 4 Replies!
View Related
Crystal Reports :: Visual Studio 2008 Crystal Report 10.5 Merge Modules Download?
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.
Posted: Dec 15, 2010 09:22 AM
View 1 Replies!
View Related
Crystal Reports :: How To Pass Values From Page To Oracle Store Procedure In Crystal Report
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. Detail code: 1. ASP.NET page store the values in the Session: Sesion.Item("CourseNumber") Sesion.Item("StudentNumber") 2. I like to pass above values to the store procedure with IN parameters named P_CourseNo and P_StudentNo to print out the Crytal Report with Store Procedure as data source.
Posted: Mar 11, 2011 07:32 AM
View 3 Replies!
View Related
Crystal Reports :: Migrate Vs2005 To Vs2010 Having Error Of Incorrect Crystal Report References
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. WEB CONFIG: [code].... 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.
Posted: Apr 02, 2011 03:51 AM
View 5 Replies!
View Related
|