Crystal Reports not rendering in webpage - asp.net

I have been trying to display a Crystal Reports report inside a ASP.NET application I designed. The report is properly made, and in fact in Visual Studio I can see the report loading in the preview page. The problem comes when I try to open the page I have the report in my browser. Nothing displays. Not an error, nothing. Tried IE, Firefox, etc.
I used the built in Crystal Reports Viewer tool and added the report there as a source. Then I added the next in code:
ReportDocument crystalReport = new ReportDocument();
crystalReport.Load(Server.MapPath("~/CrystalReport3.rpt"));
crystalReport.SetDatabaseLogon
("suer", "apss", #"servername", "DBNAME");
CrystalReportViewer1.ReportSource = crystalReport;
Yet nothing loads. Nothing. Have been at this well for a day now but no go. Any help would be greatly appreciated.

If you use "~" to specify the Server.MapPath, the report must be at the root of your project. Maybe try specifying a different location. See this post which explains the different options very well.
I personally use a CrystalReportSource in my projects and specify a mapped drive where all my reports reside.
Hope that helps,
Chris

Related

Crystal Reports shows barcode ONLY locally

I use Crystal Reports to show an .rpt file in an asp.net page.
When I run both at server, the CR's preview on design software and the WebPage(IE) where the CR viewer is embedded, the reports shows the barcode and can be printed.
(the barcode is a function Bar128AB( *BarTextIn*, *Subset* ) )
BUT when I run it from another computer or from another browser(Firefox, Chrome) on the same server, the barcode shows the input string(BarTextIn) from Bar128AB function and not the result(final barcode) of the function.
The font which is used to represent the barcode is Code 128AB HR, which has restricted embeddability, but I don't mind for exporting it in PDF, just view and print it.
HOW can I fix it?
How can the rest browsers(Firefox, Chrome) on the server show the barcode properly?
How can another computer show the barcode properly?
You need to install a couple of packages in order to show the barcode properly.
Install the latest package of crystal reports
Install this patch for the font with fsType value 0 to achieve installation
Also according to this thread you can try to print the page and see if barcode its works
Try to install Code 128AB HR font on another computer and then to run the report there.
Is it working now? If it is, it means that your solutions need the font to be installed on any client (and I think it is).
If you think this is not the right solution for you, you could turn into javascript barcode tools (this is one).

Using Cross tabs in Crystal Reports

I am trying to use Crystal Reports in generating my report for my ASP.NET website. Unfortunately, it appears like this. It appears properly when exported to other extensions. I have tried tinkering with every thing but it won't display as it is supposed to be. Can anyone settle this one? Thanks very much!!
Screenshot can be found here:
http://imgur.com/RGn4q

SharePoint Link Tools (Ribbon) Remove Link does not delete link

I have a SP 2010 Publishing Site (14.0.4762.1000). It has a contenttype containing a Publishing Hyperlink (SPFieldLink). Inserting a link with the Link Tools (part of the ribbon) works fine, but I can't delete the link once I set it.
For quick reproduction:
Create a Publishing Portal site
Create a column of type Publishing Hyperlink
Add the column to de Welcome Page contenttype
Navigate to the Press Releases page
View information -> Edit
Add a link to the newly created column and save the page
Open it again, remove the link (the link is visually removed, it even says: Click here to add a new Hyperlink)
Save the page again
Now open the page again.
In our situation, the message 'Click here...' is gone, and if you view the source our original link is still there, but there is no text inside it.
I did some testing on it and these are the results:
It occurs on dev and prod server with a custom solution installed
It occurs on a server with no custom solution installed (clean install)
It also occurs on the 'Adventure Works' site (both on a clean install and on a server with custom solution)
It occurs both when creating a sitecolumn of type Publishing Hyperlink through API and UI
When viewed with firebug the 'deleted' link is still in the href property, but the text property is empty
Tested on IE/FF
When viewing with Sharepoint Manager 2010, the link is still in de DB (with no text property as stated above)
It happens on Dutch and English sites
Anyone familiar with this behaviour? Is there a solution for this problem?
I currently have exactly the same issue in a publishing site. I'm looking into it. Let you know if I find anything.
Found your topic on social MSDN. Apperently this is a bug in SP2010.
http://social.msdn.microsoft.com/Forums/en-AU/sharepoint2010general/thread/8ce468ec-096b-4ad2-a1e9-0bfb93cecf95
Currently there is a powershell fix (not really an option for me)
http://vasya10.wordpress.com/2011/06/07/inconspicuous-sharepoint-quirks-2/
Hope this helps.

Disabling viewer options for birt reports J2EE (Eclispe)

Hi
I have to display a birt report where I need to disable the viewer options. For example on top of every report there is run report option where I can change the parameters and see the report. I want to disable that option.
I am displaying this report on click of a link in the browser.
Any Ideas?
Thanks
Got answer myself!!
Changes needed to be done in ToolbarFragment.jsp.

Crystal Report in ASP.NET - display image

I am using a Crystal Report on my website to dynamically build a PDF file for download. This is working great. However, now I want to add an image to the report. When I go to Insert - Picture, browse to my image file, and click OK nothing happens, which leads me to believe that I'm adding it incorrectly. How can I do this? Also, does the image need to exist on my web server or is it imbedded in the report?
So you're adding the picture to the report through the Crystal Reports designer?
Possibly the picture is in an unsupported format? Try saving it into another format and add it again, might just work!
As far as I'm aware, the image will be embedded into the report.

Resources