How do I make Crystal report viewer navigation icons display
Visual Studio 8 accessing Crystal Reports Server 11 r2 using development web server.
Report renders just fine in viewer but none of the viewer icons seem to find their image - all appear as X.
Debugging shows the src for icons is "this.src='/crystalreportviewers11/images/toolbar/(gif name)" such as "this.src='/crystalreportviewers11/images/toolbar/export_over.gif'". I have such a directory\file in c:\program files\common files\business objects\3.0\crystalreportviewers11\images\toolbar\export_over.gif .
perhaps related or a different problem: I get java script error when trying to print or export the rendered report: "Microsoft JScript runtime error: Object doesn't support this action" pointing to line: print = false;crystal_postback="<input type='hidden' name='__EVENTTARGET' value='myCrystalReportViewer'><input type='hidden' name='__EVENTARGUMENT' value='export'><input type='hidden' name='__LASTFOCUS' value=''><input type='hidden' name='__VIEWSTATE' etc.
I see that java src is in the same neighborhood as the missing images: "JavaScript" src="/crystalreportviewers11/js/export.js" and using same hierarchy as above, I find this java file.
Regarding missing images, how do I make viewer see these? Where do I copy the images or how do I point the viewer to where they are?
alan
Out of the frying pan and into the fire... I offer the following for other novices like myself and hope that experts will correct any misconceptions.
My Crystal viewer control still does not display icons or print and now behaves badly when trying to display a report. I would appreciate any advice. Details follow.
We have a Crystal Reports Server XI r 2. I obtained the installation disks from tech support to install client tools on my development workstation. These disks installed version 11.0.3300 . After some research I have come to believe the following:
Crystal Reports XI r1 = 11.0 = Managed 3.0
Crystal Reports XI r2 = 11.5 = Managed 3.5
Crystal Reports 2008 = 12 = Managed 4.0
So I actually installed release one client tools. The disks I received were the only installation disks we have, but I believe the server was updated to release 2 via web. I could not find anywhere on web where I could download the release 2 client tools nor could I find any executable on server installation of release 2 to install the client tools to the development workstation.
However, I also hold a license to the full blown BOE server at XI r2 release I installed the client tools from these disks to my development workstation. This installed version 11.5.3300 . Based on other messages, I believe I need to get to 11.5.3700, but I am lost as to how to get this version. The differences in versions may be the sole cause of my remaining problems, but I doubt it.
To make sure I had no conflicts on development workstation, I removed all vestiges of Visual Studio and Crystal and then reinstalled VS2008, then Crystal designer, then Crystal Server client tools. I also installed all service packs for these. Tech Support tells me Crystal Reports Server has all service packs installed. I noticed that the release one toolset installation created needed .dll's in both a program files\business objects\common folder and a program files\common\business objects folder, but the release two installation created only the former, not the latter - don't know if that matters.
I had a Crystal viewer app at version 10.5 that worked fine for all reports except those that use the Server business view layer. I am creating a new web version that can handle all Crystal reports including those using business view layer. I am following the BOE SDK tutorial for creating a viewer. I am binding to Crystal Viewer with an infoObject cast as report per one of the tutoral ways of binding. (I wonder if I need to use a different kind of binding though the tutoral indicates this should work.)
When I was using release 1 tools with release 2 server, the report would render just fine but the navigation icons appeared as X's and the print/export buttons resulted in error of "Microsoft JScript runtime error: Object doesn't support this action".
Per suggestions, I got everything in sync (to version 11.5.3300 which is only release two version I have available) - all references, viewer control, image handler. I did have to change the image handler type to "CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandlerPage, to get a successful build because type CrystalImageHandler (no "page" suffix) is not defined in Crystal Decisions.Web version 11.5.3300, I also had to add a reference to CrystalDecisions.Enterprise,PlugInManager for the constant CePictureState.cePictureThumbnail to be defined. This reference was not necessary with version 1 toolset and not mentioned in tutoral. Now I have the following symptoms:
1. When I bind to a very simple .rpt file stored in filing system of my workstation (displays a constant), the report will render in viewer but the navigation icons are still X's and print/export buttons still get JScript error message.
2. When I bind to this same simple report copied into Server folder using an infoObject cast as report (which used to render fine with release one client tools), I get the message: "The Page Server you are trying to connect to is not accessible. Please contact your system administrator." This same report in Server folder runs fine using my Crystal Designer client. I am able to display other attributes of the report object so I know I have a good report object. So, my upgrade to 11.5.3300 has now additionally broken the report render.
I would love to get to version 11.5.3700 and see what is still broken (I suspect there will still be some), but haven't a clue how to get this version of client tools. Upgrading server to 2008 is not an option. Downgrading Visual Studio to an earlier release is an option if VS2008 is contributing to the problem. If I have to downgrade VS, what release is recommended?
Any advice about any of these problems is welcome!
alan
Similar Messages
-
Page Not Found Error when clicking on Crystal Report Viewer print icon
Hi,
I am working with ASP.NET 2.0 and crystla reportXI release2.
I am getting "Page Can not be Found " error when clicking on Crystal Report Viewer print icon.
Could you please tell me how to get rid of this error?
Regards,
SmithaThis sounds like a postback issue. Does your application handle postback by putting the report in session?
There is a [sample|http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/CrystalReports_dotNET_SDK/crsdk_samples_aspx/data/crsdk_net_tutorials_115_en.zip] to look at on our website. It was created with Crystal Reports XI R2 and Visual Studio .NET but the code will be the same.
A short pseudocode would be something like this:
Dim rptDocument As ReportDocument
If Not Me.IsPostBack or Session("Report") = Nothing Then
rptDocument = New ReportDocument
rptDocument.Load(sGlobalPath & "\myreport.rpt";)
Ludek -
Crystal Report Viewer navigation slow in ASP
Hi all,
We have a simple asp page that is rendering a report in a crystal report viewer. We are using the using the default parameter panel for parameter selection, and are setting the db credentials in the report document, see code below.
Two things we are seeing.....
First, this isn't a big report, and it seems to take about 20 seconds for the progress bar on the bottom of the Internet Explorer to complete loading
Second, navigating the tree to other nodes is really slow. In the code, the pageload event is firing each time. I tried checking the Page.IsPostBack value, but that is false only for the time the default parameter panel renders, and then the code throws and exception when the actual report is trying to render.
Can you help?
Thanks,
Cindy
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using CrystalDecisions.Shared;
using CrystalDecisions.CrystalReports.Engine;
public partial class _Default : System.Web.UI.Page
protected void Page_Load(object sender, EventArgs e)
if (Page.IsPostBack == false)
ReportDocument rdReport = new ReportDocument();
rdReport.Load(this.Server.MapPath("MyReport.rpt"));
System.Configuration.ConnectionStringSettings connString = System.Configuration.ConfigurationManager.ConnectionStrings["MyConnectionString"];
if (connString != null)
SqlConnectionStringBuilder sb = new SqlConnectionStringBuilder(connString.ConnectionString);
ConnectionInfo ci = new ConnectionInfo();
ci.ServerName = sb.DataSource;
ci.UserID = sb.UserID;
ci.Password = sb.Password;
ci.DatabaseName = sb.InitialCatalog;
ci.Type = ConnectionInfoType.CRQE;
if (CrystalReportViewer1.ReportSource == null)
rdReport.DataSourceConnections[0].SetConnection(ci.ServerName, ci.DatabaseName, ci.UserID, ci.Password);
CrystalReportViewer1.ReportSource = rdReport;
CrystalReportViewer1.ReportSource = rdReport;Hello Amit,
Thank you for your quick response.
That did help; however, in order for the code to compile, I needed to move the instantiation of the report document out of the IsPostBack loop, as well as the reportdocument.load (or I get that exception again). As a result, I'm then prompted for the db credentials, which we cannot have happen..
Is there another way around this?
Thanks so much,
Cindy -
How can I get Crystal Report Viewer 2008 to view boe xi r2 sp4 rpts
we're getting an error when trying to open a report generated out of boe xi r2 sp4....the report does have "save data" with report.... I send to myself via email, save the rpt but when I try to open on a machine with viewer installed....it tries and gets to the end and presents an 'unexpected error' with detail:
any suggestions? I put in case# 1020775
Product Info:
Crystal Reports Viewer 2008
com.businessobjects.crystalreports.viewer.shell.application
JVM Info:
1.6.0_02-b05
Sun Microsystems Inc.
Java HotSpot(TM) Client VM
System Configuration:
win32
x86
en_US
Plug-ins:
org.eclipse.osgi version: 3.4.0.v20080605-1900
org.eclipse.equinox.common version: 3.4.0.v20080421-2006
org.eclipse.update.configurator version: 3.2.200.v20080417
org.eclipse.core.runtime version: 3.4.0.v20080512
com.businessobjects.crystalreports.designer.BOEIntegration.cs version: 12.2.0.r325
com.businessobjects.crystalreports.designer.BOEIntegration.de version: 12.2.0.r325
com.businessobjects.crystalreports.designer.BOEIntegration.en version: 12.2.0.r325
com.businessobjects.crystalreports.designer.BOEIntegration.es version: 12.2.0.r325
com.businessobjects.crystalreports.designer.BOEIntegration.fr version: 12.2.0.r325
com.businessobjects.crystalreports.designer.BOEIntegration.hu version: 12.2.0.r325
com.businessobjects.crystalreports.designer.BOEIntegration.it version: 12.2.0.r325
com.businessobjects.crystalreports.designer.BOEIntegration.ja version: 12.2.0.r325
com.businessobjects.crystalreports.designer.BOEIntegration.ko version: 12.2.0.r325
com.businessobjects.crystalreports.designer.BOEIntegration.nl version: 12.2.0.r325
com.businessobjects.crystalreports.designer.BOEIntegration.pl version: 12.2.0.r325
com.businessobjects.crystalreports.designer.BOEIntegration.pt version: 12.2.0.r325
com.businessobjects.crystalreports.designer.BOEIntegration.ru version: 12.2.0.r325
com.businessobjects.crystalreports.designer.BOEIntegration.sv version: 12.2.0.r325
com.businessobjects.crystalreports.designer.BOEIntegration.zh version: 12.2.0.r325
com.businessobjects.crystalreports.designer.BOEIntegration.zh_HK version: 12.2.0.r325
com.businessobjects.crystalreports.designer.BOEIntegration.zh_MO version: 12.2.0.r325
com.businessobjects.crystalreports.designer.BOEIntegration.zh_MY version: 12.2.0.r325
com.businessobjects.crystalreports.designer.BOEIntegration.zh_TW version: 12.2.0.r325
com.businessobjects.crystalreports.designer.BOEIntegration version: 12.2.0.r325
com.businessobjects.crystalreports.boesdk.libs version: 12.0.0
com.businessobjects.crystalreports.boesdk version: 12.2.0.r325
com.businessobjects.crystalreports.designer.core.cs version: 12.2.0.r325
com.businessobjects.crystalreports.designer.core.de version: 12.2.0.r325
com.businessobjects.crystalreports.designer.core.en version: 12.2.0.r325
com.businessobjects.crystalreports.designer.core.es version: 12.2.0.r325
com.businessobjects.crystalreports.designer.core.fr version: 12.2.0.r325
com.businessobjects.crystalreports.designer.core.hu version: 12.2.0.r325
com.businessobjects.crystalreports.designer.core.it version: 12.2.0.r325
com.businessobjects.crystalreports.designer.core.ja version: 12.2.0.r325
com.businessobjects.crystalreports.designer.core.ko version: 12.2.0.r325
com.businessobjects.crystalreports.designer.core.nl version: 12.2.0.r325
com.businessobjects.crystalreports.designer.core.pl version: 12.2.0.r325
com.businessobjects.crystalreports.designer.core.pt version: 12.2.0.r325
com.businessobjects.crystalreports.designer.core.ru version: 12.2.0.r325
com.businessobjects.crystalreports.designer.core.sv version: 12.2.0.r325
com.businessobjects.crystalreports.designer.core.zh version: 12.2.0.r325
com.businessobjects.crystalreports.designer.core.zh_HK version: 12.2.0.r325
com.businessobjects.crystalreports.designer.core.zh_MO version: 12.2.0.r325
com.businessobjects.crystalreports.designer.core.zh_MY version: 12.2.0.r325
com.businessobjects.crystalreports.designer.core.zh_TW version: 12.2.0.r325
com.businessobjects.crystalreports.designer.core version: 12.2.0.r325
com.businessobjects.crystalreports.designer.CRDCIntegration.cs version: 12.2.0.r325
com.businessobjects.crystalreports.designer.CRDCIntegration.de version: 12.2.0.r325
com.businessobjects.crystalreports.designer.CRDCIntegration.en version: 12.2.0.r325
com.businessobjects.crystalreports.designer.CRDCIntegration.es version: 12.2.0.r325
com.businessobjects.crystalreports.designer.CRDCIntegration.fr version: 12.2.0.r325
com.businessobjects.crystalreports.designer.CRDCIntegration.hu version: 12.2.0.r325
com.businessobjects.crystalreports.designer.CRDCIntegration.it version: 12.2.0.r325
com.businessobjects.crystalreports.designer.CRDCIntegration.ja version: 12.2.0.r325
com.businessobjects.crystalreports.designer.CRDCIntegration.ko version: 12.2.0.r325
com.businessobjects.crystalreports.designer.CRDCIntegration.nl version: 12.2.0.r325
com.businessobjects.crystalreports.designer.CRDCIntegration.pl version: 12.2.0.r325
com.businessobjects.crystalreports.designer.CRDCIntegration.pt version: 12.2.0.r325
com.businessobjects.crystalreports.designer.CRDCIntegration.ru version: 12.2.0.r325
com.businessobjects.crystalreports.designer.CRDCIntegration.sv version: 12.2.0.r325
com.businessobjects.crystalreports.designer.CRDCIntegration.zh version: 12.2.0.r325
com.businessobjects.crystalreports.designer.CRDCIntegration.zh_HK version: 12.2.0.r325
com.businessobjects.crystalreports.designer.CRDCIntegration.zh_MO version: 12.2.0.r325
com.businessobjects.crystalreports.designer.CRDCIntegration.zh_MY version: 12.2.0.r325
com.businessobjects.crystalreports.designer.CRDCIntegration.zh_TW version: 12.2.0.r325
com.businessobjects.crystalreports.designer.CRDCIntegration version: 12.2.0.r325
com.businessobjects.crystalreports.crdcsdk.libs version: 12.0.0
com.businessobjects.crystalreports.crdcsdk version: 12.2.0.r325
com.businessobjects.crystalreports.crsdk.libs version: 12.2.0.r325
com.businessobjects.crystalreports.crsdk version: 12.2.0.r325
com.businessobjects.GEFUtilities.cs version: 12.2.0.r325
com.businessobjects.GEFUtilities.de version: 12.2.0.r325
com.businessobjects.GEFUtilities.en version: 12.2.0.r325
com.businessobjects.GEFUtilities.es version: 12.2.0.r325
com.businessobjects.GEFUtilities.fr version: 12.2.0.r325
com.businessobjects.GEFUtilities.hu version: 12.2.0.r325
com.businessobjects.GEFUtilities.it version: 12.2.0.r325
com.businessobjects.GEFUtilities.ja version: 12.2.0.r325
com.businessobjects.GEFUtilities.ko version: 12.2.0.r325
com.businessobjects.GEFUtilities.nl version: 12.2.0.r325
com.businessobjects.GEFUtilities.pl version: 12.2.0.r325
com.businessobjects.GEFUtilities.pt version: 12.2.0.r325
com.businessobjects.GEFUtilities.ru version: 12.2.0.r325
com.businessobjects.GEFUtilities.sv version: 12.2.0.r325
com.businessobjects.GEFUtilities.zh version: 12.2.0.r325
com.businessobjects.GEFUtilities.zh_HK version: 12.2.0.r325
com.businessobjects.GEFUtilities.zh_MO version: 12.2.0.r325
com.businessobjects.GEFUtilities.zh_MY version: 12.2.0.r325
com.businessobjects.GEFUtilities.zh_TW version: 12.2.0.r325
com.businessobjects.GEFUtilities version: 12.2.0.r325
com.businessobjects.crystalreports.designer.IntegrationBase.cs version: 12.2.0.r325
com.businessobjects.crystalreports.designer.IntegrationBase.de version: 12.2.0.r325
com.businessobjects.crystalreports.designer.IntegrationBase.en version: 12.2.0.r325
com.businessobjects.crystalreports.designer.IntegrationBase.es version: 12.2.0.r325
com.businessobjects.crystalreports.designer.IntegrationBase.fr version: 12.2.0.r325
com.businessobjects.crystalreports.designer.IntegrationBase.hu version: 12.2.0.r325
com.businessobjects.crystalreports.designer.IntegrationBase.it version: 12.2.0.r325
com.businessobjects.crystalreports.designer.IntegrationBase.ja version: 12.2.0.r325
com.businessobjects.crystalreports.designer.IntegrationBase.ko version: 12.2.0.r325
com.businessobjects.crystalreports.designer.IntegrationBase.nl version: 12.2.0.r325
com.businessobjects.crystalreports.designer.IntegrationBase.pl version: 12.2.0.r325
com.businessobjects.crystalreports.designer.IntegrationBase.pt version: 12.2.0.r325
com.businessobjects.crystalreports.designer.IntegrationBase.ru version: 12.2.0.r325
com.businessobjects.crystalreports.designer.IntegrationBase.sv version: 12.2.0.r325
com.businessobjects.crystalreports.designer.IntegrationBase.zh version: 12.2.0.r325
com.businessobjects.crystalreports.designer.IntegrationBase.zh_HK version: 12.2.0.r325
com.businessobjects.crystalreports.designer.IntegrationBase.zh_MO version: 12.2.0.r325
com.businessobjects.crystalreports.designer.IntegrationBase.zh_MY version: 12.2.0.r325
com.businessobjects.crystalreports.designer.IntegrationBase.zh_TW version: 12.2.0.r325
com.businessobjects.crystalreports.designer.IntegrationBase version: 12.2.0.r325
com.businessobjects.crystalreports.platformext.win32 version: 12.2.0.r325
com.businessobjects.crystalreports.designer.promptingui.cs version: 12.2.0.r325
com.businessobjects.crystalreports.designer.promptingui.de version: 12.2.0.r325
com.businessobjects.crystalreports.designer.promptingui.en version: 12.2.0.r325
com.businessobjects.crystalreports.designer.promptingui.es version: 12.2.0.r325
com.businessobjects.crystalreports.designer.promptingui.fr version: 12.2.0.r325
com.businessobjects.crystalreports.designer.promptingui.hu version: 12.2.0.r325
com.businessobjects.crystalreports.designer.promptingui.it version: 12.2.0.r325
com.businessobjects.crystalreports.designer.promptingui.ja version: 12.2.0.r325
com.businessobjects.crystalreports.designer.promptingui.ko version: 12.2.0.r325
com.businessobjects.crystalreports.designer.promptingui.nl version: 12.2.0.r325
com.businessobjects.crystalreports.designer.promptingui.pl version: 12.2.0.r325
com.businessobjects.crystalreports.designer.promptingui.pt version: 12.2.0.r325
com.businessobjects.crystalreports.designer.promptingui.ru version: 12.2.0.r325
com.businessobjects.crystalreports.designer.promptingui.sv version: 12.2.0.r325
com.businessobjects.crystalreports.designer.promptingui.zh version: 12.2.0.r325
com.businessobjects.crystalreports.designer.promptingui.zh_HK version: 12.2.0.r325
com.businessobjects.crystalreports.designer.promptingui.zh_MO version: 12.2.0.r325
com.businessobjects.crystalreports.designer.promptingui.zh_MY version: 12.2.0.r325
com.businessobjects.crystalreports.designer.promptingui.zh_TW version: 12.2.0.r325
com.businessobjects.crystalreports.designer.promptingui version: 12.2.0.r325
com.businessobjects.RCPRuntimeUtilities.cs version: 12.2.0.r325
com.businessobjects.RCPRuntimeUtilities.de version: 12.2.0.r325
com.businessobjects.RCPRuntimeUtilities.en version: 12.2.0.r325
com.businessobjects.RCPRuntimeUtilities.es version: 12.2.0.r325
com.businessobjects.RCPRuntimeUtilities.fr version: 12.2.0.r325
com.businessobjects.RCPRuntimeUtilities.hu version: 12.2.0.r325
com.businessobjects.RCPRuntimeUtilities.it version: 12.2.0.r325
com.businessobjects.RCPRuntimeUtilities.ja version: 12.2.0.r325
com.businessobjects.RCPRuntimeUtilities.ko version: 12.2.0.r325
com.businessobjects.RCPRuntimeUtilities.nl version: 12.2.0.r325
com.businessobjects.RCPRuntimeUtilities.pl version: 12.2.0.r325
com.businessobjects.RCPRuntimeUtilities.pt version: 12.2.0.r325
com.businessobjects.RCPRuntimeUtilities.ru version: 12.2.0.r325
com.businessobjects.RCPRuntimeUtilities.sv version: 12.2.0.r325
com.businessobjects.RCPRuntimeUtilities.zh version: 12.2.0.r325
com.businessobjects.RCPRuntimeUtilities.zh_HK version: 12.2.0.r325
com.businessobjects.RCPRuntimeUtilities.zh_MO version: 12.2.0.r325
com.businessobjects.RCPRuntimeUtilities.zh_MY version: 12.2.0.r325
com.businessobjects.RCPRuntimeUtilities.zh_TW version: 12.2.0.r325
com.businessobjects.RCPRuntimeUtilities version: 12.2.0.r325
com.businessobjects.crystalreports.designer.readingpage.cs version: 12.2.0.r325
com.businessobjects.crystalreports.designer.readingpage.de version: 12.2.0.r325
com.businessobjects.crystalreports.designer.readingpage.en version: 12.2.0.r325
com.businessobjects.crystalreports.designer.readingpage.es version: 12.2.0.r325
com.businessobjects.crystalreports.designer.readingpage.fr version: 12.2.0.r325
com.businessobjects.crystalreports.designer.readingpage.hu version: 12.2.0.r325
com.businessobjects.crystalreports.designer.readingpage.it version: 12.2.0.r325
com.businessobjects.crystalreports.designer.readingpage.ja version: 12.2.0.r325
com.businessobjects.crystalreports.designer.readingpage.ko version: 12.2.0.r325
com.businessobjects.crystalreports.designer.readingpage.nl version: 12.2.0.r325
com.businessobjects.crystalreports.designer.readingpage.pl version: 12.2.0.r325
com.businessobjects.crystalreports.designer.readingpage.pt version: 12.2.0.r325
com.businessobjects.crystalreports.designer.readingpage.ru version: 12.2.0.r325
com.businessobjects.crystalreports.designer.readingpage.sv version: 12.2.0.r325
com.businessobjects.crystalreports.designer.readingpage.zh version: 12.2.0.r325
com.businessobjects.crystalreports.designer.readingpage.zh_HK version: 12.2.0.r325
com.businessobjects.crystalreports.designer.readingpage.zh_MO version: 12.2.0.r325
com.businessobjects.crystalreports.designer.readingpage.zh_MY version: 12.2.0.r325
com.businessobjects.crystalreports.designer.readingpage.zh_TW version: 12.2.0.r325
com.businessobjects.crystalreports.designer.readingpage version: 12.2.0.r325
com.businessobjects.crystalreports.designer.reportviewlib.cs version: 12.2.0.r325
com.businessobjects.crystalreports.designer.reportviewlib.de version: 12.2.0.r325
com.businessobjects.crystalreports.designer.reportviewlib.en version: 12.2.0.r325
com.businessobjects.crystalreports.designer.reportviewlib.es version: 12.2.0.r325
com.businessobjects.crystalreports.designer.reportviewlib.fr version: 12.2.0.r325
com.businessobjects.crystalreports.designer.reportviewlib.hu version: 12.2.0.r325
com.businessobjects.crystalreports.designer.reportviewlib.it version: 12.2.0.r325
com.businessobjects.crystalreports.designer.reportviewlib.ja version: 12.2.0.r325
com.businessobjects.crystalreports.designer.reportviewlib.ko version: 12.2.0.r325
com.businessobjects.crystalreports.designer.reportviewlib.nl version: 12.2.0.r325
com.businessobjects.crystalreports.designer.reportviewlib.pl version: 12.2.0.r325
com.businessobjects.crystalreports.designer.reportviewlib.pt version: 12.2.0.r325
com.businessobjects.crystalreports.designer.reportviewlib.ru version: 12.2.0.r325
com.businessobjects.crystalreports.designer.reportviewlib.sv version: 12.2.0.r325
com.businessobjects.crystalreports.designer.reportviewlib.zh version: 12.2.0.r325
com.businessobjects.crystalreports.designer.reportviewlib.zh_HK version: 12.2.0.r325
com.businessobjects.crystalreports.designer.reportviewlib.zh_MO version: 12.2.0.r325
com.businessobjects.crystalreports.designer.reportviewlib.zh_MY version: 12.2.0.r325
com.businessobjects.crystalreports.designer.reportviewlib.zh_TW version: 12.2.0.r325
com.businessobjects.crystalreports.designer.reportviewlib version: 12.2.0.r325
com.businessobjects.SWTUtilities.cs version: 12.2.0.r325
com.businessobjects.SWTUtilities.de version: 12.2.0.r325
com.businessobjects.SWTUtilities.en version: 12.2.0.r325
com.businessobjects.SWTUtilities.es version: 12.2.0.r325
com.businessobjects.SWTUtilities.fr version: 12.2.0.r325
com.businessobjects.SWTUtilities.hu version: 12.2.0.r325
com.businessobjects.SWTUtilities.it version: 12.2.0.r325
com.businessobjects.SWTUtilities.ja version: 12.2.0.r325
com.businessobjects.SWTUtilities.ko version: 12.2.0.r325
com.businessobjects.SWTUtilities.nl version: 12.2.0.r325
com.businessobjects.SWTUtilities.pl version: 12.2.0.r325
com.businessobjects.SWTUtilities.pt version: 12.2.0.r325
com.businessobjects.SWTUtilities.ru version: 12.2.0.r325
com.businessobjects.SWTUtilities.sv version: 12.2.0.r325
com.businessobjects.SWTUtilities.zh version: 12.2.0.r325
com.businessobjects.SWTUtilities.zh_HK version: 12.2.0.r325
com.businessobjects.SWTUtilities.zh_MO version: 12.2.0.r325
com.businessobjects.SWTUtilities.zh_MY version: 12.2.0.r325
com.businessobjects.SWTUtilities.zh_TW version: 12.2.0.r325
com.businessobjects.SWTUtilities version: 12.2.0.r325
com.businessobjects.crystalreports.designer.uibase.cs version: 12.2.0.r325
com.businessobjects.crystalreports.designer.uibase.de version: 12.2.0.r325
com.businessobjects.crystalreports.designer.uibase.en version: 12.2.0.r325
com.businessobjects.crystalreports.designer.uibase.es version: 12.2.0.r325
com.businessobjects.crystalreports.designer.uibase.fr version: 12.2.0.r325
com.businessobjects.crystalreports.designer.uibase.hu version: 12.2.0.r325
com.businessobjects.crystalreports.designer.uibase.it version: 12.2.0.r325
com.businessobjects.crystalreports.designer.uibase.ja version: 12.2.0.r325
com.businessobjects.crystalreports.designer.uibase.ko version: 12.2.0.r325
com.businessobjects.crystalreports.designer.uibase.nl version: 12.2.0.r325
com.businessobjects.crystalreports.designer.uibase.pl version: 12.2.0.r325
com.businessobjects.crystalreports.designer.uibase.pt version: 12.2.0.r325
com.businessobjects.crystalreports.designer.uibase.ru version: 12.2.0.r325
com.businessobjects.crystalreports.designer.uibase.sv version: 12.2.0.r325
com.businessobjects.crystalreports.designer.uibase.zh version: 12.2.0.r325
com.businessobjects.crystalreports.designer.uibase.zh_HK version: 12.2.0.r325
com.businessobjects.crystalreports.designer.uibase.zh_MO version: 12.2.0.r325
com.businessobjects.crystalreports.designer.uibase.zh_MY version: 12.2.0.r325
com.businessobjects.crystalreports.designer.uibase.zh_TW version: 12.2.0.r325
com.businessobjects.crystalreports.designer.uibase version: 12.2.0.r325
com.businessobjects.crystalreports.updateserviceplugin.cs version: 12.2.0.r325
com.businessobjects.crystalreports.updateserviceplugin.de version: 12.2.0.r325
com.businessobjects.crystalreports.updateserviceplugin.en version: 12.2.0.r325
com.businessobjects.crystalreports.updateserviceplugin.es version: 12.2.0.r325
com.businessobjects.crystalreports.updateserviceplugin.fr version: 12.2.0.r325
com.businessobjects.crystalreports.updateserviceplugin.hu version: 12.2.0.r325
com.businessobjects.crystalreports.updateserviceplugin.it version: 12.2.0.r325
com.businessobjects.crystalreports.updateserviceplugin.ja version: 12.2.0.r325
com.businessobjects.crystalreports.updateserviceplugin.ko version: 12.2.0.r325
com.businessobjects.crystalreports.updateserviceplugin.nl version: 12.2.0.r325
com.businessobjects.crystalreports.updateserviceplugin.pl version: 12.2.0.r325
com.businessobjects.crystalreports.updateserviceplugin.pt version: 12.2.0.r325
com.businessobjects.crystalreports.updateserviceplugin.ru version: 12.2.0.r325
com.businessobjects.crystalreports.updateserviceplugin.sv version: 12.2.0.r325
com.businessobjects.crystalreports.updateserviceplugin.zh version: 12.2.0.r325
com.businessobjects.crystalreports.updateserviceplugin.zh_HK version: 12.2.0.r325
com.businessobjects.crystalreports.updateserviceplugin.zh_MO version: 12.2.0.r325
com.businessobjects.crystalreports.updateserviceplugin.zh_MY version: 12.2.0.r325
com.businessobjects.crystalreports.updateserviceplugin.zh_TW version: 12.2.0.r325
com.businessobjects.crystalreports.updateserviceplugin version: 12.2.0.r325
com.businessobjects.crystalreports.viewer.shell.cs version: 12.2.0.r325
com.businessobjects.crystalreports.viewer.shell.de version: 12.2.0.r325
com.businessobjects.crystalreports.viewer.shell.en version: 12.2.0.r325
com.businessobjects.crystalreports.viewer.shell.es version: 12.2.0.r325
com.businessobjects.crystalreports.viewer.shell.fr version: 12.2.0.r325
com.businessobjects.crystalreports.viewer.shell.hu version: 12.2.0.r325
com.businessobjects.crystalreports.viewer.shell.it version: 12.2.0.r325
com.businessobjects.crystalreports.viewer.shell.ja version: 12.2.0.r325
com.businessobjects.crystalreports.viewer.shell.ko version: 12.2.0.r325
com.businessobjects.crystalreports.viewer.shell.nl version: 12.2.0.r325
com.businessobjects.crystalreports.viewer.shell.pl version: 12.2.0.r325
com.businessobjects.crystalreports.viewer.shell.pt version: 12.2.0.r325
com.businessobjects.crystalreports.viewer.shell.ru version: 12.2.0.r325
com.businessobjects.crystalreports.viewer.shell.sv version: 12.2.0.r325
com.businessobjects.crystalreports.viewer.shell.zh version: 12.2.0.r325
com.businessobjects.crystalreports.viewer.shell.zh_HK version: 12.2.0.r325
com.businessobjects.crystalreports.viewer.shell.zh_MO version: 12.2.0.r325
com.businessobjects.crystalreports.viewer.shell.zh_MY version: 12.2.0.r325
com.businessobjects.crystalreports.viewer.shell.zh_TW version: 12.2.0.r325
com.businessobjects.crystalreports.viewershellext.win32 version: 12.2.0.r325
com.businessobjects.crystalreports.viewer.shell version: 12.2.0.r325
com.businessobjects.ui.controls.de version: 12.0.0.r325_v20080731
com.businessobjects.ui.controls.en version: 12.0.0.r325_v20080731
com.businessobjects.ui.controls.es version: 12.0.0.r325_v20080731
com.businessobjects.ui.controls.fr version: 12.0.0.r325_v20080731
com.businessobjects.ui.controls.it version: 12.0.0.r325_v20080731
com.businessobjects.ui.controls.ja version: 12.0.0.r325_v20080731
com.businessobjects.ui.controls.ko version: 12.0.0.r325_v20080731
com.businessobjects.ui.controls.nl version: 12.0.0.r325_v20080731
com.businessobjects.ui.controls.pl version: 12.0.0.r325_v20080731
com.businessobjects.ui.controls.pt version: 12.0.0.r325_v20080731
com.businessobjects.ui.controls.ru version: 12.0.0.r325_v20080731
com.businessobjects.ui.controls.sv version: 12.0.0.r325_v20080731
com.businessobjects.ui.controls.zh version: 12.0.0.r325_v20080731
com.businessobjects.ui.controls.zh_HK version: 12.0.0.r325_v20080731
com.businessobjects.ui.controls.zh_MO version: 12.0.0.r325_v20080731
com.businessobjects.ui.controls.zh_MY version: 12.0.0.r325_v20080731
com.businessobjects.ui.controls.zh_TW version: 12.0.0.r325_v20080731
com.businessobjects.ui.controls version: 12.0.0.r325_v20080731
com.ibm.icu version: 3.8.1.v20080530
org.eclipse.core.commands version: 3.4.0.I20080509-2000
org.eclipse.core.contenttype version: 3.3.0.v20080604-1400
org.eclipse.core.databinding version: 1.1.0.I20080527-2000
org.eclipse.core.expressions version: 3.4.0.v20080603-2000
org.eclipse.core.jobs version: 3.4.0.v20080512
org.eclipse.core.runtime.compatibility.auth version: 3.2.100.v20070502
org.eclipse.draw2d version: 3.4.0.v20080529
org.eclipse.equinox.app version: 1.1.0.v20080421-2006
org.eclipse.equinox.launcher.win32.win32.x86 version: 1.0.100.v20080509-1800
org.eclipse.equinox.launcher version: 1.0.100.v20080509-1800
org.eclipse.equinox.preferences version: 3.2.200.v20080421-2006
org.eclipse.equinox.registry version: 3.4.0.v20080516-0950
org.eclipse.gef version: 3.4.0.v20080526
org.eclipse.help version: 3.3.100.v20080610
org.eclipse.jface.databinding version: 1.2.0.I20080515-2000a
org.eclipse.jface version: 3.4.0.I20080606-1300
org.eclipse.rcp version: 3.4.0.v20080507
org.eclipse.swt.win32.win32.x86 version: 3.4.0.v3448f
org.eclipse.swt version: 3.4.0.v3448f
org.eclipse.ui.views version: 3.3.0.I20080509-2000
org.eclipse.ui.workbench version: 3.4.0.I20080606-1300
org.eclipse.ui version: 3.4.0.I20080610-1200
Libraries:
C:\Program Files\Business Objects\Crystal Reports Viewer 2008\libs\CR\us.jar version: null
Stack Trace:
Caused by : java.lang.IndexOutOfBoundsException
com.crystaldecisions.reports.formulas.FieldExpression$Type.a(Unknown Source)
com.crystaldecisions.reports.formulas.ExpressionNode.getType(Unknown Source)
com.crystaldecisions.reports.datafoundation.DFQuery.a(Unknown Source)
com.crystaldecisions.reports.datafoundation.DFQuery.a(Unknown Source)
com.crystaldecisions.reports.datafoundation.DFQuery.a(Unknown Source)
com.crystaldecisions.reports.datafoundation.DFQuery.<init>(Unknown Source)
com.crystaldecisions.reports.datafoundation.DFRuntime.if(Unknown Source)
com.crystaldecisions.reports.datafoundation.DFRuntime.a(Unknown Source)
com.crystaldecisions.reports.datalayer.a.if(Unknown Source)
com.crystaldecisions.reports.datalayer.a.char(Unknown Source)
com.crystaldecisions.reports.datalayer.a.long(Unknown Source)
com.crystaldecisions.reports.datalayer.a.f(Unknown Source)
com.crystaldecisions.reports.datalayer.a.c(Unknown Source)
com.crystaldecisions.reports.datalayer.a.case(Unknown Source)
com.crystaldecisions.reports.dataengine.m.char(Unknown Source)
com.crystaldecisions.reports.dataengine.j.char(Unknown Source)
com.crystaldecisions.reports.dataengine.m.j(Unknown Source)
com.crystaldecisions.reports.dataengine.m.a(Unknown Source)
com.crystaldecisions.reports.dataengine.ContextNode.a(Unknown Source)
com.crystaldecisions.reports.dataengine.ContextNode.a(Unknown Source)
com.crystaldecisions.reports.dataengine.j.case(Unknown Source)
com.crystaldecisions.reports.dataengine.h.<init>(Unknown Source)
com.crystaldecisions.reports.dataengine.DataContext.a(Unknown Source)
com.crystaldecisions.reports.dataengine.DataProcessor2.a(Unknown Source)
com.crystaldecisions.reports.dataengine.DataProcessor2.a(Unknown Source)
com.crystaldecisions.reports.dataengine.DataProcessor2.new(Unknown Source)
com.crystaldecisions.reports.dataengine.DataProcessor2.try(Unknown Source)
com.crystaldecisions.reports.dataengine.DataProcessor2.int(Unknown Source)
com.crystaldecisions.reports.dataengine.DataProcessor2.I(Unknown Source)
com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.fl(Unknown Source)
com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.if(Unknown Source)
com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.a(Unknown Source)
com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.Y(Unknown Source)
com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.moveToPageN(Unknown Source)
com.crystaldecisions.reports.formatter.formatter.lightmodel.FCMPageFormatter.goToPage(Unknown Source)
com.businessobjects.crystalreports.designer.core.elements.formatted.MultiPageModel.B(Unknown Source)
com.businessobjects.crystalreports.designer.core.elements.formatted.MultiPageModel.A(Unknown Source)
com.businessobjects.crystalreports.designer.core.elements.formatted.FormattedPages.create(Unknown Source)
com.businessobjects.crystalreports.designer.core.elements.formatted.FormattedDocumentModeller.getValidFormattedPages(Unknown Source)
com.businessobjects.crystalreports.designer.reportviewlib.FormattedModelHelper$1.A(Unknown Source)
com.businessobjects.crystalreports.designer.reportviewlib.FormattedModelHelper$1.call(Unknown Source)
com.businessobjects.crystalreports.designer.uibase.dialogs.ProgressMonitorDialog$6.run(Unknown Source)
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)going back to crystal viewer xi worked / resolved....
-
Open programatically Crystal Report Viewer XI to display rpt file
Thank you in Advance!!!
I got the following VBA code.
1) What library do I need to include to access Crystal Report Viewer XI?
2) How do I declare CRViewer11 to open Crystal Report Viewer XI and a created report?
Please look at ***???
Dim crrpt As New CRAXDRT.Report
Dim crapp As New CRAXDRT.Application
***???Problem here: Dim CRViewer11 As New CrystalActiveXReportViewer
Dim myParamField As CRAXDRT.ParameterFieldDefinition
Dim intCounterPartyId, intNoCreditLimit, intAllAccounts, intOpenTrades, intOpenFail, intOpenOver As Integer
Dim dtFirstDayOfYear As Date
Dim dblCreditUsed, dblYTDAmount As Double
Dim db As Database, rs As Recordset, strSql, strFileName, strMsg As String
Dim strAttachDir, strAttachment, strReportDir, strCrReport As String
'Set db = CurrentDb
strAttachDir = "T:\Work\"
'open crystal report(rpt)
strReportDir = "T:\Work\"
strCrReport = "TimeDetailwithData.rpt"
Set crrpt = crapp.OpenReport(strReportDir & strCrReport)
strFileName = Format(Now(), "YYYY-MM-DD-HHMM") & "-TimeDetail.rpt"
strAttachment = strAttachDir & strFileName
crrpt.DiscardSavedData
'SET PARAMETER FIELDS
Set myParamFields = crrpt.ParameterFields
For Each myParamField In myParamFields
With myParamField
Select Case .ParameterFieldName
Case "StartPeriod"
.SetCurrentValue CDate("2008-7-16")
Case "EndPeriod"
.SetCurrentValue CDate("2008-7-17")
Case "Org - Comp"
.SetCurrentValue "2WV"
Case "Org - Dpt"
.SetCurrentValue "300"
Case "Org - Fac"
.SetCurrentValue "01302"
End Select
End With
Next
crrpt.EnableParameterPrompting = False
crrpt.ExportOptions.FormatType = crEFTCrystalReport70
crrpt.ExportOptions.DestinationType = crEDTDiskFile
crrpt.ExportOptions.DiskFileName = strAttachment
crrpt.Export False
Set CRViewer11 = crapp.OpenReport(strAttachment)
***???Problem here: CRViewer11.ReportSource = strAttachment
***???Problem here: CRViewer11.ViewReportHi, Rocio;
In the future, please submit programming type questions to our SDK Forums.
The component you are looking for is the Crystal Report Viewer Control x, where x is your version of Crystal Reports.
You can also browse to the file, it is crviewer.dll.
Regards,
Jonathan -
Crystal report viewer 13 are displaying blank page after deploying in web server
Dear friends, i have designed crystal report (in VS2012 & CRRuntime_32bit_13_0_8 installed in web server) it's working fine in machine VS2012, but when deploying in web server (Windows Server 2008 R2 64bit) it's getting blank page.
I have read the http://adilmca.wordpress.com/2013/04/08/visual-studio-2012-crystal-report-not-working-on-windows-server-2012-0x800a1391-javascript-runtime-error-bobj-is-undefined/. But this is not working for me.
I have copy the entire Crystal Report Support folder : C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319\crystalreportviewers13
Please suggest me some solutions to resolve this issues...
Regards, Stefano S.There is something "deeper" happening here (unless you're using dome old version of IIS (v. 6, etc.))... I think logging the app will help. I'd use Process Monitor first - see if you get any "Access Denied" messages. An http sniffing utility like Fiddler may also provide useful info.
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter -
How to hide the preview section in the crystal report viewer activex cntrl.
Dear All,
I am using the Crystal report viewer ActiveX to display the Crystal report. When the report opens in the Crystal report viewer ActiveX control, a preview section comes at the left hand side of the panel. How can I hide the preview section from the Report viewer control.Is it possible to customize the the report viewer control. Awaiting for your suggestions.
Thank you.
Regards,
RahaneefJust to get the terminology correct. I believe you are meaning the Group Tree(?).
Vb Code:
CrystalActiveXReportViewer1.DisplayGroupTree = False.
Also, do consult the developer help file;
C:\Program Files\Business Objects\Crystal Reports 11.5\Help\en\rdcsdk_com_dg_doc\doc\rdcsdk_com_dg.chm
Ludek -
Hi
I am having problem on using Crystal Report Viewer on one of my windows application.
I am not sure how to put the Crystal Report Viewer 11 Control onto the tool box.
I could found a Crystal Report Viewer control on my computer, but it is version 8.5.
I have also found another one which is Called Crytal ActiveX Report Viewer, i don't think it is the one I can use. As when I try to load a dummy report on to the Crytal ActiveX Report Viewer, It return an error. "specified type is not valid"
Please see the Code sample below.
private sub loadReport()
Dim r as New ReportDocument
'v is the name of the Crystal ActiveX Report Viewer Control
r.Load("C:\Report1.rtp")
v.ReportSource(r) <---It throw error on this line.
End Sub
Could you give me some advice about what have I done wrong, How to check if I have set up the Crystal Report Component correctly in my Visual Studio 2005 Standard edition.
Thanks in advances.
Many thanks
ChiVS 2005 Standard and Express editions do not come with Crystal Reports; only the Professional and higher editions will have CR bundled. However, I believe you can purchase CR XI R2 Developer and it will give you the components you need to create a VS .NET 2005 application using the Standard edition.
-MJ -
How to set printersettings for the crystal report viewer in SAP BI dynamically
Hello
I have set the URL method for my crystal report and with parameter passing as shown below, it was displaying the crystal report viewer by connecting to the SAP BI 4.0 server with this method.
http://cr:port/businessobjects/enterprise115/desktoplaunch/opendoc/openDocument.jsp?sDocName=CRLabelParam&sType=rpt&lsSnPrinted=0&lsSsTestProjectNr=1
This URL will be called from Web application by different users, i would like to set the printer settings differently for different users for this crystal report viewer how shall i need to set the printer options?
shall i need to set the printer settings programatically for each user. Please advise me how do i need to proceed.
Thanks & Regards,
Rajeswari.There are no BI / CR APIs that would do this for you. The way I see it, you'll have to have your own print button and populate it with the correct printer information for each user as they request the report. Of course, alternatively, use the viewer printer button and get the users to choose the correct printer.
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter -
How to use a connection ODBC in crystal reports viewer?
Hi Guys!
I need to know if for update a report in crystal reports viewer, is necessary, have a connection SAP Business Objects Business Intelligence. How to use a connection ODBC in crystal reports viewer?Hi Guys!
I need to know if for update a report in crystal reports viewer, is necessary, have a connection SAP Business Objects Business Intelligence. How to use a connection ODBC in crystal reports viewer? -
How to assign a variable value to crystal report viewer formula with CR2008
Hi ,
I am using crystal reports 2008 and i am not able to find how to assign variable value to crystal report viewer formula.
In CR 8.5 , i used to have crystalreport1.Formulas(0) = variable1
crystalreport1.Formulas(1) = variable2
but, i don't find similar kind in crystal reports 2008.
How can i achieve the same functionality using crystal reports 2008.
Thanks in Advance
Regards,
RamnathHi,
Can i anyone help me out with this.
I am generating crystal reports in vb6 using CR 8.5 and vb6 and below is the code snippet for the same
CrystalReport1.Formulas(0) = "PrintTitle= '" & strMyTitle & "'"
CrystalReport1.Formulas(1) = "FromDate= '" & MskFromDate.Text & "'"
CrystalReport1.Formulas(2) = "ToDate= '" & MskToDate.Text & "'"
Please let me know how the same functionality can be achieved in VB.Net using Crsytal reports 2008
Any code snippet would be of great Help.
Thanks in Adnvance.
Ramnath -
How do you set the Crystal Report Viewer Printer to Duplex
Using the code below I can print in duplex mode, but this does not let me view a report before printing
How do I set the Printer in the Viewer Control Bar of the Crystal Report Viewer to Duplex Printing programmatically rather than having to manually select Duplex through the preferences option?
I have searched but the only example code I found produces errors in the code and will not run
Private myReport As ReportDocument
myReport = New ReportDocument()
myReport.PrintOptions.PaperSize = PaperSize.PaperA4
myReport.PrintOptions.PaperOrientation = PaperOrientation.Portrait
myReport.PrintOptions.PrinterDuplex = PrinterDuplex. Vertical
myReport.PrintToPrinter(3, False, 0, 0)
In my VB6 Project that I am converting to VB.NET when I added Report.PrinterDuplex = crPRDPVertical, this allowed me to view the report and then print with Duplex without having to set the Print Preferences manualy
I found 1386475 - How to set printer name and print job title at runtime using Report Application Server SDK for Visual Studio .NET
But this causes errors
Imports CrystalDecisions.ReportAppServer.ClientDoc
Imports CrystalDecisions.ReportAppServer.Controllers
Dim boReportClientDocument As ISCDReportClientDocument
Dim boPrintOutputController As PrintOutputController
Dim boPrintReportOptions As New PrintReportOptions
Edited by: DavidMills on Feb 18, 2011 11:58 AMHi David,
You can mix both engines, just declare them both with different report object names. Here's all of my references:
using System;
using System.IO;
using System.Xml;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;
using CrystalDecisions.ReportAppServer.ClientDoc;
using CrystalDecisions.ReportAppServer.Controllers;
using CrystalDecisions.ReportAppServer.ReportDefModel;
using CrystalDecisions.ReportAppServer.CommonControls;
using CrystalDecisions.ReportAppServer.CommLayer;
using CrystalDecisions.ReportAppServer.CommonObjectModel;
using CrystalDecisions.ReportAppServer.ObjectFactory;
using System.Data.OleDb;
using CrystalDecisions.ReportAppServer.DataSetConversion;
using CrystalDecisions.ReportAppServer.DataDefModel;
using CrystalDecisions.ReportSource;
using CrystalDecisions.Windows.Forms;
using System.Data.SqlClient;
using System.Runtime.InteropServices;
public class frmMain : System.Windows.Forms.Form
CrystalDecisions.CrystalReports.Engine.ReportDocument rpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument rptClientDoc;
My file open dialog:
private void btnOpenReport_Click(object sender, System.EventArgs e)
rptClientDoc = new CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocument();
openFileDialog.Filter = "Crystal Reports (*.rpt)|*.rpt|Crystal Reports Secure (*.rptr)|*.rptr";
openFileDialog.FilterIndex = 1;
if (openFileDialog.ShowDialog() == DialogResult.OK)
btnOpenReport.Enabled = false;
btnSaveRptAs.Enabled = false;
object rptName = openFileDialog.FileName;
try
rpt.Load(rptName.ToString());
rptClientDoc = rpt.ReportClientDocument;
catch (Exception ex)
MessageBox.Show("ERROR: " + ex.Message);
return;
MessageBox.Show(rptClientDoc.MajorVersion.ToString() + "." + rptClientDoc.MinorVersion.ToString());
MessageBox.Show("Report opened.","RAS",MessageBoxButtons.OK,MessageBoxIcon.Information );
btnOpenReport.Enabled = true;
btnSaveRptAs.Enabled = true;
//MessageBox.Show(rpt.RecordSelectionFormula, "my record: ", MessageBoxButtons.OK, MessageBoxIcon.Information);
MessageBox.Show(rpt.ReportRequestStatus.NumberOfPages.ToString(), "Number of Pages: ", MessageBoxButtons.OK, MessageBoxIcon.Information);
As for the page number I use it off the Engine report object:
MessageBox.Show(rpt.ReportRequestStatus.NumberOfPages.ToString(), "Number of Pages: ", MessageBoxButtons.OK, MessageBoxIcon.Information);
And it works for me...
Thank you
Don -
How to center the content in crystal report viewer?
open crystal report viewer in winform, default at the left top
after maxmium the winform window, content become at the center
another odd thing is that i set window winform size 1208*1024 and crystal report view is fill
then tried, content is not center any more
How to center the content in crystal report viewer in code?
Edited by: Mathew_666 on Oct 6, 2011 5:20 AMSince there is no control for center you'll need to do the math on your own. This is just a rough draft, but you'll get the idea.
One of the things you'll need to figure out is your buffer to help you give a centered feel. We'll say that value is 50 in this case.
Height
int buffer = 50;
int formHeight = 1000; // we'll assume a height of 1000 in this case
int crystalTop = buffer;
int crystalViewerHeight = formHeight - (buffer * 2); // buffer is at the top and bottom
Width
int formWidth = 1000; // we'll assume a width of 1000 in this case
int crystalLeft = buffer;
int crystalViewerWidth = formWidth - (buffer * 2); // buffer is at the top and bottom -
How to automatically refresh crystal report's viewer content
Hello,
How can I force a periodic reload of the contents of a report as displayed in crystal reports viewer? (without clicking anywhere)
The idea is simply to update the content of the screen with fresh data, that could be used as a monitoring screen.
The update must not require user intervention (no clicking, no prompting for parameters).
We are using a jsp page CrystalReportsViewer.jsp , CRJ update 2
I assume this is quite standard, and that there is a way using a javascript reload function, but I cannot find any example anywhere.
Does someone know how to do this?
Thanks in advance!
MattThere's no public API on the client-side JavaScript to trigger the refresh button, but I do know some people trap the HTTP traffic (using something like Fiddler or Charles) to figure out what to do, then inject JavaScript.
I personally don't have any sample codes for this.
Sincerely,
Ted Ueda -
How to print directly to Printer from Crystal Report Viewer ?
Hi All,
We are integrating our Java Web Application with Crystal report XI, currently using JRC and export to PDF for user to preview and print to local printer.
Now there is new requirement :
Some clients is using thin client terminal (no harddisk, only has OS +Browser in ROM), so I cannot install Acrobat Reader for them to preview&print the report.
So I am looking at Crystal Report Viewer, the question is : Can I print from Crystal Report Viewer directly to local printer without first converting it to PDF (because I can't have acrobat reader installed) ??
Thank you very much,
Krist
IndonesiaHi,
It can't be achieved through XI.
JRCXI R2 SDK offers the ability to print the report server side
using the PrintOutputController using printReport(PrintReportOptions printReportOptions) method.
Here is the code(for XIR2):
import="com.crystaldecisions.reports.sdk.*"
import="com.crystaldecisions.sdk.occa.report.lib.*"
import="com.crystaldecisions.sdk.occa.report.document.*"
try {
final String REPORT_NAME = "Inventory.rpt";
ReportClientDocument reportClientDoc = new ReportClientDocument();
reportClientDoc.open(REPORT_NAME, 0);
//Create and set print options.
PrintReportOptions printOptions = new PrintReportOptions();
//Note: Printer with the 'printer name' below must already be configured.
printOptions.setPrinterName("
10.10.45.220
BOBJ 2C");
printOptions.setJobTitle("Sample Print Job from JRC.");
printOptions.setPrinterDuplex(PrinterDuplex.horizontal);
printOptions.setPaperSource(PaperSource.auto);
printOptions.setPaperSize(PaperSize.paperLetter);
printOptions.setNumberOfCopies(1);
printOptions.setCollated(false);
PrintReportOptions.PageRange printPageRange = new PrintReportOptions.PageRange(1,1);
printOptions.addPrinterPageRange(printPageRange);
//NOTE: If parameters or database login credentials are required, they need to be set before.
//calling the printReport() method of the PrintOutputController.
reportClientDoc.getPrintOutputController().printReport(printOptions);
reportClientDoc.close();
out.println("Successfully sent report to the printer.");
catch(ReportSDKException ex) {
out.println(ex);
Please revert in case you have any query.
Thanks,
Neeraj
Maybe you are looking for
-
How do I connect both a Mac and PC to Apple TV Home Sharing?
Goal - I am trying to share both my PC and Mac through my Apple TV2 on the "Computers" home sharing menu. - These are 2 seperate iTunes accounts as they are 2 different owners of the PC and Macbook. - However, home sharing only allows me to have one
-
How do I install an IPA to my phone, without Sync?
Hi, I have an IPA exported from Flash CS5, and need to get this onto my iPhone for testing. My iPhone is synced to a different computer (my Mac at home), so I cannot use iTunes on my work computer to copy the application across. I normally use XCode
-
How do i install windows 8 on new imac late 2012 model
how can i install windows 8 onto a new imac without a disc drive
-
Multiple SLM Configuration Assistant
Hi All, I got an error whilst trying to update our XI system using Maintenance Optimizer were it said The system/systems - XID-cischexid01, has/have not been registered in SLM Message no./TMWFLOW/SLMMSG002 Diagnosis In order to download and deploy th
-
Looking for a good pair of (full or midsized/not ear bud) headphones
Hey guys, just want to know if you can direct me to a good pair of headphones for my 3gs as the standard apple ones arent so good. Thanx