Trouble with crystal report viewer - don't show swf file
hi to evrybody,
i'm developing an application with Crystal Report and Xcelsius.
My scenario is:
Visual Studio 2008
Crystal Report 12.1.0.892
( for the cliente CRRuntime_12_1_mlb.msi)
I tried to develop only the kernel of the application a form vb that call another form with
crystalReportViewer (12.0.2000.0)
My trouble is that i can't see the flash embed in Crystal Report file.
(In the Crystal Report preview all wors fine)
Can someone help me with this ?
Best regards
Alessandro
Unfortunately this functionality is not currently available within .NET windows forms applications. It will work in ASP.NET applications.
Similar Messages
-
Safari Browser issue on Mac with crystal report viewer JSP
Safari Browser issue with crystal report viewer JSP
This is my configuration:
Operating System : Mac X
Browser : Safari Browser 3.1.4
Crystal Report : XII Release 2
Application Server : Jboss 4.2.0
I am using the following code to view the crystal report in jsp.
<%@ page import="com.crystaldecisions.report.web.viewer.*" %>
<%@ page import="com.crystaldecisions.sdk.occa.report.application.ReportClientDocument" %>
<%@ page import="com.crystaldecisions.sdk.occa.report.reportsource.IReportSource" %>
CrystalReportViewer theViewer = null;
ReportClientDocument document = null;
IReportSource reportSource = null;
theViewer = new CrystalReportViewer();
reportSource = document.getReportSource();
reportSource.refresh();
theViewer.setReportSource(reportSource);
theViewer.setOwnPage(true);
theViewer.setHasExportButton(true);
theViewer.setHasPrintButton(true);
theViewer.setHasRefreshButton(true);
theViewer.setHasLogo(false);
theViewer.setEnableParameterPrompt(true);
theViewer.refresh();
theViewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
theViewer.dispose();This code is working fine when the browser is IE or Firefox on Mac X.
But it is giving me error message when the browser is Safari on Mac X.
If there is no parameter in the report then the error message is:
Null Totaller
If there is parameter in the report then the error message is:
Parameter prompting is not supported
Please Help.
Thanks
Edited by: VINCEJOHNSON on Jul 30, 2008 7:11 AMI am having this exact same issue, only on an ASP.NET page. I can print the report, but it does not display at all.
-
Crystal report viewer do not show on client computer installation
hi
hope all you are fine
i develop a simple project that show "Hello word My First Crystal Report" on crystal report viewer. after this i add new project "setup and deployment". In Setup Project I add 4 files of .msm for show crystal report.
1. CRRuntime_13_0_tr.msm 2. Microsoft_VC100_ATL_x86.msm
3. Microsoft_VC100_CRT_x86.msm
4. Microsoft_VC100_MFC_x86.msm 5. Microsoft_VC100_OpenMP_x86.msm
when i install on developer computer. it runs successfully. when i install on client computer, software runs fine but crystal report did not show and having error "METHOD NOT FOUND VOID CrystalDecision.WINDOWS.FORMS.CrystalREPORTViewer.SET_CACHEDPAGENUMBERPERDOC(INT32)"
i install .net frame work and CRforVS_13_0_9.exe on client computer but .net frame work show form but crystal report did not show.
Please HelpHello,
For Crystal repot related question ,please consult on SAP Crystal report forum instead of here.
Best regards,
Barry
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Problem with Crystal report viewer
I am using Crystal viewer 2008 with Crystal report 2008.
I am using a static parameter. When running with viewer I can not clik on modify to change the parameter because the modify button is grey.
Help ty.
Also where can I read limit of using Crystal Viewer ?
And how much to get something better ?You can update the parameters using Crystal Viewer 2008. I had the same problem with the "CHANGE" button being grayed out.
Go to your Report -> Select Expert -> and now you have three choices: Record, Group, Saved Data. Put your select statement using your parameters in the Saved Data only (remove it from Record if already there).
It works awesome and even works on dynamic parameters! -
Problem with Crystal Report Viewer and Dual Monitors
Post Author: jtgoff
CA Forum: .NET
Hey Guys,
I'm running into another problem with the Crystal Report Viewer. Here's a little info before I get started, I'm developing a Windows App using WinForms in VS2005 and Crystal 11 Release 2. I'm referencing all the latest Crystal dlls from Service Pack 2 of Crystal 11 Release 2. The problem occurs when I drag my Windows Form that contains a Crystal Report Viewer onto my second monitor and try to scroll or resize it, when I try this the Report Document within the Viewer becomes glitchy, blocky, and un-readable. I drag it back onto my main monitor and perform the same actions and the Report appears perfectly fine. I notice this occurs after a number of Report Previews through my App. Initially when I start my App, I can drag the reports onto my second monitor and resize it and scroll through it no problem. However, after a number of Previews, I notice the problem occurs on my second monitor. This is a very strange bug that doesn't produce an error and appears to happen randomly. I was wondering if anyone has come across this problem, if so... Is there a solution for this?
Thanks in advance!You can update the parameters using Crystal Viewer 2008. I had the same problem with the "CHANGE" button being grayed out.
Go to your Report -> Select Expert -> and now you have three choices: Record, Group, Saved Data. Put your select statement using your parameters in the Saved Data only (remove it from Record if already there).
It works awesome and even works on dynamic parameters! -
Errors when viewing data with Crystal Report Viewer.
we receive the following errors when we try to merge a crystal report with data, we are using a crystal report viewer to display the report.
Can someone help us with where we might be going wrong?
Thanks
Rajesh
General Information
Additional Info:
ExceptionManager.MachineName: CCS104
ExceptionManager.TimeStamp: 02/10/2008 12:40:31
ExceptionManager.FullName: Congestion.Framework.ExceptionManagement, Version=33.36.0.0, Culture=neutral, PublicKeyToken=null
ExceptionManager.AppDomainName: /LM/W3SVC/1/ROOT/BackOfficeTR4-1-128674174088125000
ExceptionManager.WindowsIdentity: NT AUTHORITY\SYSTEM
Renewal charges Statement Id : 37171
Unknown Database Connector Error
Error in File C:\WINNT\TEMP\{AE9A7C1D-F11A-41CC-B2F7-BC1062DC3A5B}.rpt:
Unknown Database Connector Error
Stack Trace : at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
at CrystalDecisions.CrystalReports.Engine.ReportDocument. (Object
at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSource(DataSet dataSet)
at Congestion.Core.PresentationTier.BackOffice.WF_NewReport_P.DownloadPDFStatement(Int64 lngCanId, Int64 lngFasId, String strChargeType)
at Congestion.Core.PresentationTier.BackOffice.WF_NewReport_P.Page_Load(Object sender, EventArgs e)
Source : CrystalDecisions.ReportAppServer.DataSetConversionHi,
Its a best practice to use the code given below in the unload event of the page or the code can also be written in a button press event so that the disposing is ensured manually(If sessions are in use).
boReportDocument.Close();
boReportDocument.Dispose();
GC.Collect();
Note: boReportDocument is the object of ReportDocument.
This code disposes the report object after using it.
Check the issue with [filemon|http://technet.microsoft.com/en-us/sysinternals/bb896642.aspx] utility.
Amit -
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 -
Console login trouble with Crystal Reports Server XI
I installed Crystal Reports Server XI on a new box (replacing old), then applied SP1, and then SP2 bringing it up to the same level as the old box - Version Name: BOXIWIN_SP2 Build Number: 11.0.101.8004.
However, when I restarted the server and logged into Windows, I received the error "CRSXI_MLB_Autorun.exe encountered a problem and needed to close." Although, all the services are running in Central Configuration Manager, I am unable to login to the Central Management Console with the default "Administrator" account (the screen just blanks the User Name: Administrator" field when I click "Log On".
The new server is running Win2003 R2 Enterprise Edition SP2. Old server is running Win2003 Standard Edition SP2. I am using the same install media as was used on the old server, though installation on the old server was done before W2K3 SP2 was installed. Could it be W2K3 SP2, or perhaps the use or R2 or Enterprise Edition? Any thoughts on how to fix this so I can login to CMC?
Regards,
JoeXIR1 used to have issues with Microsoft DEP, I don't recall exactly but you can set DEP to windows services only from my computer > properties > data execution prevention.
Also when logging in try changing the URL to (local host on the server, the IP address, or the FQDN) see if that helps. When there is no error the problem is likely not the CMS but could be in the web/app.
I don't think anything that was installed should be starting a file called "CRSXI_MLB_Autorun.exe" Could that have gotten added to the windows run registry key or startup group by accident?
Also if you login to a client tool like crystal reports, business views with administrator what error do you receive?
Regards,
Tim -
Paging problem with Crystal Report Viewer in VS 2013
I am attempting to upgrade a VS 2008 project that uses a dozen plus Crystal Reports to display data for our owners.
The problem that i am having is with navigating to other pages of any multiple page report using the paging buttons of the Report Viewer control. The report will load fine and display the first page. If I try and go to page two an overlay covers the screen and a progress graphic displays and will never go away. I have to stop debugging the project and restart it. I have been able to get the paging buttons to work if I click on one of the asp.net buttons that I have added to the page that run the .ShowFirstPage(), .ShowNextPage();.ShowPreviousPage(); or .ShowLastPage(); methods of the ReportViewer control. When in click on one of these buttons an error displays within the ReportViewer control that reads simply "ERROR". From there I can click on one of the asp.net button described above and the report displays and at this time the navigation buttons work as expected.
The parameters are being set via a series of asp controls and then stored in ViewState then passed to the ParameterFieldInfo of the ReportViewer control.
This all works just fine in VS 2008 project but I have not been able to resolve the paging issue since upgrading.
Does anyone have any ideas as two what may be causing this behavior?Thanks for your reply.
I am on SP 9.
I moved the block assigning the report source of the ReportViewer to the Page_Init method, but that did not change anything.
The reports are loaded when the user clicks on a link button specifying the report that they wish to view. In the click event of the button a method is called to set the LogOnInfo for each table of the reportsource;
Tables tables = reportSource.ReportDocument.Database.Tables;
foreach ( CrystalDecisions.CrystalReports.Engine.Table table in tables ) {
var logonInfo = table.LogOnInfo;
logonInfo.ConnectionInfo = connectionInfo;
table.ApplyLogOnInfo( logonInfo );
Then all the parameters are set;
crvReportViewer.Visible = true;
crvReportViewer.ParameterFieldInfo.Clear();
SetDateValuesForParameterFields();
SetEquipClassValuesForParameterFields();
crvReportViewer.ParameterFieldInfo = paramFields;
crvReportViewer.ParameterFieldInfo.AddRange( equipClassParamFields );
Session[ "CurrentReportSource" ] = crvReportViewer.ReportSource;
Then in the Page_Init I assign the ReportSource of the ReportViewer control;
if (Session["CurrentReportSourceId"] != null)
crvReportViewer.ReportSource = Session["CurrentReportSource"];
And in Page_Load;
if ( Page.IsPostBack ) {
ApplicationSettings appSettings = AppConfigSettings.LoadSettings();
connectionInfo.ServerName = appSettings.PrimarySettings.Server;
connectionInfo.DatabaseName = appSettings.PrimarySettings.DataSource;
connectionInfo.UserID = appSettings.PrimarySettings.UserId;
connectionInfo.Password = appSettings.PrimarySettings.Password;
startDate.Name = "StartDate";
endDate.Name = "EndDate";
trailerNumber.Name = "TrailerNumber";
location.Name = "LocationId";
equipClass.Name = "EquipClass";
txtStartDate.Focus();
When in run this the reports will populate and display the first page but if I try to navigate to another page I get a error;
Unhandled exception at line 12, column 82761 in http://localhost:63034/aspnet_client/system_web/4_0_30319/crystalreportviewers13/allInOne.js
0x800a138f - Java Script runtime error: Unable to get property 'length' of undefined or null reference
And on the screen there is a wait spinner.
This all works fine in the VS2008 project.
Thanks,
Shannon -
Problem With Crystal Reports Reading Date Fields From CSV File
I have a date field in a CSV file in the format 06/28/09 17:23:55.523. When I use ODBC the configuartion picks it up a character field. I overright the recommendation type by specifing it is a date field but whne I bring the data into crystal reports the dates are blanks. Any suggestions on how to get around this problem. I need to use the date for selection records.
PhasorThe question was answered under another thread. I had to use the split commmand to get rid of the fractions of a second
-
Report Document not show on Crystal Report Viewer in C#
My program is modified from VB.NET. Now I struck with Crystal Report that Crystal Report Viewer didn't show Report Document.
Printing code is composed of two forms. One assign parameters and objects need. Other is Crystal Report Viewer form, CrystalReportForm. Last one run report by parameter from the first.
When run this code that it didn't found any error but the problem is no report show on Crystal Report Viewer on second form. It just blank Crystal Report Viewer. There arm't any message response.
Here is my code.
// report caller form.
private void Print()
CrystalReportForm rptForm = new CrystalReportForm();
string[] strtbl;
strtbl = new string[1];
string[] strqry;
strqry = new string[1];
// prepare var
string myqry;
string myrpt;
// Pass The Table That you used in the crystal Report
strtbl[0] = "r_receipts";
// Pass the Query
myqry = "SELECT * FROM r_receipts";
myrpt = "rptReceipts.rpt";
strqry[0] = myqry;
//Pass For Mdi True
rptForm.MdiParent = this.ParentForm;
rptForm.ViewReport(myrpt, strtbl, strqry, "");
//Parameter Value It is Optional
rptForm.Show();
// Crytal Report Viewer form.
public void ViewReport(string ReportName , string[] TableName, string[] QueryString , string Parameter = "")
//Me.MdiParent = mainpage;
if (TableName.Length != QueryString.Length )
MessageBox.Show("Passed Variable Are Not Correct", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
CrystalDecisions.CrystalReports.Engine.ReportDocument rpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
CrystalDecisions.Windows.Forms.CrystalReportViewer crv = new CrystalDecisions.Windows.Forms.CrystalReportViewer();
crv.ActiveViewIndex = 0;
crv.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
crv.ToolPanelView = CrystalDecisions.Windows.Forms.ToolPanelViewType.None;
crv.Dock = System.Windows.Forms.DockStyle.Fill;
crv.Location = new System.Drawing.Point(0, 0);
crv.Name = "CrystalReportViewer";
MySqlDataAdapter at =new MySqlDataAdapter();
DataSet ds = new DataSet();
for (int i = 0; i < TableName.Length; i++)
at = GetDataAdeptor(QueryString[i]);
at.Fill(ds, TableName[i]);
string rptPath = "";
rptPath = Application.StartupPath + "\\" + ReportName;
rpt.Load(rptPath);
rpt.SetDataSource(ds);
if (Parameter != "")
rpt.SetParameterValue(0, Parameter);
crv.ReportSource = rpt;
crv.Refresh();
//CrystalReportViewer.DataBind();
//Me.Panel1.Controls.Add(CrystalReportViewer);
Panel panel1 = new Panel();
panel1.Controls.Add(crv);Hi Bhushan,
It's not yet fixed. My dataset (ds) can't bine to DataGridView as
DataGridView1.DataSource = ds
But it could do like this
DataGridView1.DataSource = ds.Tables[0];
When I bine to Crystal Report Viewer setdatasource
CrystalReportViewer1.setdatasource = ds.Tables[0];
It still not work, anyway you suggest let me in the right way. I very confuse the thing I fix to bine to DataGridView
Thank,
Chaiwat -
Can't Print Landscape from Crystal Reports Viewer XI
Post Author: conrad
CA Forum: General
Product: Crystal Reports Viewer XI, version 12.0.0.r130_v20070725 and
Crystal Reports XI, version 11.0.0.1282
Patches Applied: none
Operating System(s): XP Pro SP2
Database(s):
Error Messages: noneSteps to Reproduce:
Download and install Crystal Reports Viewer XI
Open a Crystal Report that prints landscape.
Save report with data.
Open that report with Crystal Reports Viewer XI. Report will display landscape.
Click Print..OK
Viewer will attempt to scale output to fit on portrait paper, with varying degrees of success.
Checking the properties of the report from Viewer (File...Report Properties...) shows a "Page Orientation" of "Landscape" and a message "Page Orientation and size defined by the application (no page information set by report author)."
Any ideas on how to get the report to print landscape? It prints that way from Crystal Reports XI.Hello Glenda,
as you refer to the legacy technology I recommend to post this query to the [Legacy Application Development SDKs|SAP Crystal Reports - Legacy SDKs; forum.
This forum is dedicated to topics related to legacy SDKs, including the Report Designer Component (RDC), OCX, VCL, and Crystal Reports Print Engine (CRPE).
It is monitored by qualified technicians and you will get a faster response there.
Also, all Legacy Application Development SDKs queries remain in one place and thus can be easily searched in one place.
Thanks a lot,
Falk -
Problem in crystal report viewer control's toolbar "export"button using SSL
Hi,
I would like to ask. My project is using BO XI Release 2 and VS-Studio 2005. Initially my project doesn't use SSL... At that time when i view the report with crystal report viewer control and can export (using built-in toolbar "export button"). Now project is using SSL and canu2019t export the error is
u201CInternet Explorer cannot download file from server.
Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.u201D
Actually this error can solve "Cache-control" change to "no-cache". But I donu2019t know in crystal reportu2026
Anyone can help ???
ThanksIn Internet Explorer, go to Tools -> Internet Options -> Advanced and ensure "Do not save encrypted pages to disk" is unchecked.
Default is to have that option checked.
It was considered a IE security issue that IE saves all content to temp disk location unencrypted, even those pages served by HTTPS (for example, let's say you use HTTPS to download your bank info, and it's stored to temp disk for someone else to retrieve later). So more recent versions of IE implemented that option setting.
How that option setting works is strange - it downloads the file, saves to disk, then deletes the copy from the disk immediately, before passing it to the application responsible for the MIME type. So the application tries to open a directory path to a non-existing file.
Issue is specific to IE, and it's not something you can control via the SDK.
Sincerely,
Ted Ueda -
The "next" button of crystal report viewer does not work
hi
I use crystal report viewer control to show my crystal report on my aspx page.
like:
<CR:CrystalReportViewer id="CRViewer" runat="server" HasRefreshButton="False" PrintMode="ActiveX" DisplayGroupTree="False"
AutoDataBind="True"
SeparatePages="TRUE"
Height="520px"
Width="900px">
</CR:CrystalReportViewer>
however when I try to navigate to next page by click "Next" arrow button on the crystal report viewer toolbar, it only can navigate to the page 2, whatever I click the "Next" button, it still stay on page 2,
actually this report has 10 pages.
On the other hand, if I input the page number, such as 5 on the "goto" textbox, it will jump to page 5 correctly.
Could you give me any good advices to solve this problem?
Thanks.There are a few threads discussing the issue in this forum. See if these provide some guidance:
"Next Page" wont go beyond page 2 in Html Viewer (Crystal.NET for VS 2008)
Re: Crystal Reports .NET Visual Studio 2005
Problem in CrystalReportViewer
Ludek -
I couldn't use Crystal Report Viewer Control in my ASPX page.
Please I'm having a problem with crystal report viewer control which I couldn't resolve. I'm using VS 2008 and Framework 3.5.
I building an ASP web application and when I add a CrystalReportViewer to my ASPX page I'm getting the following
error.
"Error 20 Type 'CrystalDecisions.Web.CrystalReportViewer' is not defined."
I think maybe because I'm not having the right reference file. I'm using Crystal Reports 2008 and also I installed the following
Service Packs:
cr121_redist_install
CR2008-SP1
CR2008SP1-Fixes 1 and 2
cr121_clickonce
I check all the reference files in my project and they are as follow:
CrystalDecisions.CrystalReports.Engine (12.0.2000.0)
C:\Program Files\Business Objects\Common\4.0\managed\dotnet2\CrystalDecisions.CrystalReports.Engine.dll
CrystalDecisions.Enterprise.Framework (12.0.1100.0)
C:\Program Files\Business Objects\Common\4.0\managed\CrystalDecisions.Enterprise.Framework.dll
C:\Program Files\Business Objects\Common\4.0\managed\CrystalDecisions.Enterprise.InfoStore.dll (12.0.1100.0)
C:\Program Files\Business Objects\Common\4.0\managed\dotnet2\CrystalDecisions.ReportSource.dll (12.0.2000.0)
C:\Program Files\Business Objects\Common\4.0\managed\dotnet2\CrystalDecisions.Shared.dll (12.0.2000.0)
Please Why I'm getting this problem? How I can resolve it?
Thanks.If you have a viewer on one of your forms, delete it off the form and re-add it, ensuring that the crystalreports.web assembly referenced in your project is version 12.
Ludek
Maybe you are looking for
-
I am about to buy a new computer and have noticed that the system comes with Windows 8. I have Photoshop CS6 for windows 7. I would like to know if this can be loaded on the new system? and what steps I need to take to ensure it functions correctly.
-
Since version 20.0.1 I am unable to upload attachment images to any of my forums. It will just give me an error this will vary from forum to forum depending what software they running. I am now on version 22.0 and I still have the same issue. If I us
-
How to compare transport requests found in different environments
Hello gurus, I need to know what are the transport requests found in my development environment but which are not found in my Production environement. In other words, I want to have a list of all transport requests that have not been transported yet
-
Windows 8 Windows Update fails with error 80244FFF
Windows 8 Windows Update fails with error 80244FFF
-
Is there an add on for quickly sending links to other firefox users?
I email them now, but it's really annoying. I often browse with people (friends and family) and send them links to solve their tech problems because they're lousy at searching. I want a one click solution, with my link quickly popping up on my friend