Embedding Vedio files in crystal reports
Hi, I wanted to embed a vedio file in crystal reports, but couldnt find a way to do so.
Please let me know the process for the same, if there is any option please let me know
Hi Bhusan,
I am able to get the FlashObjectInstance , but I am not able to assign FlashObjectInstance object to my report.
Please let me know if crystal reports has any option to assign the FalshOvjectInstance dynamically.
CrystalDecisions.CrystalReports.ViewerObjectModel.FlashObjectInstance f = new CrystalDecisions.CrystalReports.ViewerObjectModel.FlashObjectInstance();
f.SWFLocation = @"D:\Project\Test\Test_Management\test.swf";Thanks,
Help will be highly appriciated.
Uma Nath
Similar Messages
-
How to embed the Word Document and PDF file into Crystal report?
How to embed the Word Document and PDF file into Crystal report?
I have word doc which having 10 pages. I need to show all of the 10 pages at a time. I tried OLE object but problem is it shows only one page.
Is there any solution to show word doc / PDF file in CR?Symptom :
When embedding a pdf document into a Crystal Report, only the one page shows.
Reproducing the Issue
Environment:
Crystal Reports OLE object
Cause
An OLE object only displays the first page.
Resolution
Embed multiple objects, one for each page
Or
Use a hyperlink to the object instead
Hope this helps!
Regards,
Vinay -
Exception-Error when excecuting JSP-File in Crystal reports for Eclipse
Hi,
I have created a jsp-File from an rpt-File in Crystal report for Eclipse. When I start the jsp-File on Apache Tomact 5.5 then only errors occurs.
Coud anyone help me?
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 6 in the generated java file
Only a type can be imported. com.crystaldecisions.report.web.viewer.CrystalReportViewer resolves to a package
An error occurred at line: 7 in the generated java file
Only a type can be imported. com.crystaldecisions.reports.sdk.ReportClientDocument resolves to a package
An error occurred at line: 8 in the generated java file
Only a type can be imported. com.crystaldecisions.sdk.occa.report.application.OpenReportOptions resolves to a package
An error occurred at line: 9 in the generated java file
Only a type can be imported. com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase resolves to a package
An error occurred at line: 10 in the generated java file
Only a type can be imported. com.crystaldecisions.sdk.occa.report.reportsource.IReportSource resolves to a package
An error occurred at line: 13 in the jsp file: /Bericht1-viewer.jsp
ReportClientDocument cannot be resolved to a type
10: try catch (ReportSDKExceptionBase e)
60:
An error occurred at line: 58 in the jsp file: /Bericht1-viewer.jsp
e cannot be resolved
55:
56:
57: } catch (ReportSDKExceptionBase e)
60:
61: %>
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.26 logs.
Apache Tomcat/5.5.26
Bericht1.jsp:
<%@page import="com.crystaldecisions.report.web.viewer.CrystalReportViewer,
com.crystaldecisions.reports.sdk.ReportClientDocument,
com.crystaldecisions.sdk.occa.report.application.OpenReportOptions,
com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase,
com.crystaldecisions.sdk.occa.report.reportsource.IReportSource"%><%
// This sample code calls methods from the JRCHelperSample class, which
// contains examples of how to use the BusinessObjects APIs. You are free to
// modify and distribute the source code contained in the JRCHelperSample class.
try {
String reportName = "Bericht1.rpt";
ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
if (clientDoc == null) {
// Report can be opened from the relative location specified in the CRConfig.xml, or the report location
// tag can be removed to open the reports as Java resources or using an absolute path
// (absolute path not recommended for Web applications).
clientDoc = new ReportClientDocument();
// Open report
clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
// Store the report document in session
session.setAttribute(reportName, clientDoc);
// ****** BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************
// Create the CrystalReportViewer object
CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
// set the reportsource property of the viewer
IReportSource reportSource = clientDoc.getReportSource();
crystalReportPageViewer.setReportSource(reportSource);
// set viewer attributes
crystalReportPageViewer.setOwnPage(true);
crystalReportPageViewer.setOwnForm(true);
// Apply the viewer preference attributes
// Process the report
crystalReportPageViewer.processHttpRequest(request, response, application, null);
// ****** END CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************
} catch (ReportSDKExceptionBase e) {
out.println(e);
%>
Thanks
ArnoldAccording to the release notes, for the JRCHelperSample to compile, you must set the target runtime for the project.
To do this, either create a project from scratch that uses the Tomcat 5.5 target runtime, or go to the properties menu and ensure that the target runtime is set to the application server you will be using. -
Opening a file in Crystal Reports
Hello. When I try to open a file in Crystal Reports it gives me an error message "the parameter is incorrect". Please advise. Thanks.
CindyHi everyone,
I wonder if someone could say me how I can open
(launch) PDF / Word / Crystal Reports files by a
Java application.
I thank you in advance.
RegardsLaunch them, as in their own respective applications (MS Word, Acrobat viewer, etc)?
By invoking Runtime.getRuntime().exec(command)
Where command is something like: "cmd.exe /c START " + documentName -
Displaying Encrypted Image File in Crystal Report
Post Author: Riaz Afridi
CA Forum: General
Hi Folk,
I have a problem to display an encrypted file in crystal report with transparent background.
I have a column varbinary(Max) in SQL Server Database which stores image bytes. I have decrypted this column before displaying in crystal report. The report display the image but with a black background instead of transparent.
Is there an answer to this ...
ThanksI believe jpg and bmp images are supported
-
Over 12 minutes required to merely OPEN a .rpt file in Crystal Reports version 8.5
Post Author: Rob Kramar
CA Forum: General
Background: Our division has 3 networked, but geographically dispersed, plants; each plant runs MS SQL Server and Crystal Reports on local servers. A rather complex (version 8.5) Crystal Reports .rpt file (main report plus 12 subreports) exists and executes in one of our distant plants against a MS SQL Server database located there. I copied that .rpt file to my local server (CTXB) which has Crystal Reports 8.5 installed and which I can access via Citrix from my PC. I "repointed" that report to our local MS SQL Server database (located on a different server [CTXA] on my local network) [which uses the same database schema as the database in the other plant] by setting up a new ODBC driver, using the Convert Database Driver function, and using the Set Location function. I applied these changes to the main report and each of the subreports individually. I dropped all the links in Visual Linking in the main report and in each of the subreports and recreated each link. I did a Verify Database on the modified report (which appeared to check the main and each of the 12 subreports). I ran the report within Crystal Reports v8.5 and verified that the output is correct based on my local MS SQL Server data (on server CTXA). I saved the .rpt file on server CTXB and exited Crystal Reports v8.5. I did all the above work on server CTXB via Citrix from my local, networked PC.
Problem: When I try to reopen the .rpt file in Crystal Reports v8.5 (via Citrix on Server CTXB) it consistently takes over 12 minutes to merely open the report. Once opened, it executes with acceptable speed within Crystal Reports v8.5 and produces accurate results.
Note: If I compile the report in v8.5 on server CTXB (via Citrix), and attempt to execute the compiled report on CTXB (via Citrix), the popup with the u201CPrintu201D, u201CDoneu201D, and u201CAboutu201D buttons appears immediately, but an hourglass also appears that prevents me from clicking the u201CPrintu201D button for over 6 minutes. Once the hourglass disappears, that popup works normally and the report executes with acceptable speed (about 4 seconds) after I click the u201CPrintu201D button for a single execution. If I then close the output display window and try to immediately rerun the report (from the u201CPrintu201D, u201CDoneu201D, u201CAboutu201D popup which is still visible) by clicking the u201CPrintu201D button, the hourglass returns again for another 6+ minutes. A third such iteration results in an u201Chourglass lockoutu201D of over 6 minutes.
Note also: I can open that same .rpt file (stored on server CTXB) in Crystal v7.0 on my local PC, and it opens in less than 5 seconds.According to the release notes, for the JRCHelperSample to compile, you must set the target runtime for the project.
To do this, either create a project from scratch that uses the Tomcat 5.5 target runtime, or go to the properties menu and ensure that the target runtime is set to the application server you will be using. -
How to get the ard file of crystal reports
Hi all,
I have downloaded crystal reports from sap market place but i dont have .ard file for that how to transfer that reports into sap. How to get the ard file please help me out.
Thanks & Regards,
Murtuza Ahmed.When you click on your SAPCrystalSetup.exe and select the path to your add-on folder it will install the files and your ard file will be situated in your add-on folder. Then you can start SAP up and install it from SAP.
So if your SAP install is in your local drive your ard file for crystal reports should be here C:\Program Files\SAP\SAP Business One\AddOns\SAP_CR
Hope this helps. -
Java application export output file of Crystal Report in .TXT format
Hi,
I have a Java application which is able to export the output file of Crystal Report in PDF format. But I'm trying to change the export file to .TXT format. Is this possible? I'm using Crystal Report XI. Is there any available updates or fixes to solve this? Please advice.
Thank youI've tried, but I have an error
frm-40735: when button-pressed trigger raised unhandled exception ORA-06502
ORA-06502 when I try write a text field to the file the text field in question is a date.
Did a similar problem ever occured to you? -
Can we import extact Excel file in Crystal report in BO
an we import extact Excel file in Crystal report in BO
if yeh
den HOWHi Amit,
There is no functionality to import the data from MS Excel to Crystal reports. However we can connect to the Excel sheet as a data source and create Crystal reports against Excel.
Some popular choices in the Create New Connection folder are described here:
Access/Excel (DAO)
This option lets you connect to a supported database type (Access, Excel, Lotus, and so on).
I hope this helps you.
Regards,
Prashant -
Invalid report File path-crystal report
Hi Every one,
I created Crystal Layout for GRPO PLD.When I am trying to import it is showing 'Invalid report file path',But it is working fine in another server.
Please suggest.
Thanks and Regards
DEVHi,
Not sure below SAP note related to above issue:
1710613 - CR_Multiple Data Sources Not Recognized After Importing
Multi-Database Crystal Reports
1668274 - Print Draft with Crystal Layout
Thanks & Regards,
Nagarajan -
The process cannot access the file during Crystal Report export
We are exporting crystal reports into PDF using ExportToHttpResponse (code snippet below)
// Getting the type of the report file which has been selected by the user. (which will be REPORT CLASS type)
Type objType = Type.GetType("WebApplication1.Reports." + ReportName);
ReportClass SEPREport = (ReportClass)Activator.CreateInstance(objType);
// GetTypedDataSet()returns an instance of typed data set.
SEPREport.SetDataSource(GetTypedDataSet());
SEPREport.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, true, ReportName );
Now we have created these REPORTS using Basic Crystal Report 10.5, which comes bundled with Visual Studio 2008 and .Net Framework 3.0.
Now on our machines, we have never experienced any issues.
BUT on the DEV server (web server) which has .net Framework 3.0 and in its GAC its has CRYSTAL DLLs version 11.5 (required to create an Object of ReportClass and its related functions) ; sometimes we get the following error while exporting crystal report to pdf:
The process cannot access the file because it is being used by another process. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: The process cannot access the file because it is being used by another process.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[COMException (0x80004005): The process cannot access the file because it is being used by another process.
CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext) +0
CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) +525
CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext) +681
CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportOptions options) +105
CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportOptions options, HttpResponse response, Boolean asAttachment, String attachmentName) +163
CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportFormatType formatType, HttpResponse response, Boolean asAttachment, String attachmentName) +132
MSSB.FATools.UI.PlannerReport.CreatePDFDocument() +732
MSSB.FATools.UI.PlannerReport.btnCreatePDF_Click(Object sender, EventArgs e) +45
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +104
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5615This is a cross post:
The process cannot access the file because it is being used by another proc
Do not cross post. See the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]
Setting this tread as answered and locking.
- Ludek -
Using .csv files in Crystal Reports for Eclipse?
I recently installed crystal reports for Eclipse and much of the basic CR functionality seems to be there, but then I added a .csv file as an ODA flat file data source and I can see it in my "Data Source Explorer", but can not seem to drag it into my report to actually report on the data in this file. Am I missing some basic step?
Thanks,
ChrisNot all data sources available via the Eclipse Database Explorer component are supported with Crystal Reports for Eclipse.
CSV data sources currently isn't on the [Supported Platforms doc|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20c69834-cfc4-2b10-da81-960222254295]
Sincerely,
Ted Ueda -
Input xml file to crystal report and output pdf using java
Hi all,
I am in need, I am trying to give the input as dynamic extended Markup Language and output to be Plain Document Format file, in my crystal report using simple java code. If possible can anyone drop a sample code. that would be great.Hi Naveen,
If i have understood your requirement from your last post. this code should solve your problem.
What i understand is you want to export a report to PDF format and this report is using XML file data.
The below code Uses a report designed in Crystal report XI R2.
Its a Standalone application which uses a Dataset made using the xmldata(xml file) and the xmlschema(xsd file).
This Dataset is used to populate the report with data.
Eventually the report is exported to a physical location at the end of this code.
import com.crystaldecisions.ReportViewer.*;
import com.crystaldecisions.reports.sdk.*;
import com.crystaldecisions.sdk.occa.report.reportsource.*;
import com.crystaldecisions.sdk.occa.report.exportoptions.*;
import com.crystaldecisions.sdk.occa.report.data.IXMLDataSet;
import com.crystaldecisions.sdk.occa.report.lib.IByteArray;
import java.io.*;
public class XMLData
public static void main(String[] args)
final String RPT_NAME = "XMLReport.rpt";
try
ReportClientDocument rpt = new ReportClientDocument();
rpt.open(RPT_NAME, 0);
FileInputStream fin = new FileInputStream("C:
Thick_client
Amol_Sir
Amol.xsd");
ByteArrayOutputStream baos = new ByteArrayOutputStream();
byte[] bytes = new byte[1024];
for(;;)
int count = fin.read(bytes);
if(count < 0)
break;
baos.write(bytes, 0, count);
final byte[] xsdBytes = baos.toByteArray();
fin.close();
//read xml file
fin = new FileInputStream("C:
Thick_client
Amol_Sir
Abhi.xml");
baos = new ByteArrayOutputStream();
bytes = new byte[1024];
for(;;)
int count = fin.read(bytes);
if(count < 0)
break;
baos.write(bytes, 0, count);
final byte[] xmlBytes = baos.toByteArray();
fin.close();
IXMLDataSet xml_ds = new IXMLDataSet()
private IByteArray xmlData = null;
public void setXMLData(IByteArray xmlData) {
this.xmlData = xmlData;
public IByteArray getXMLData() {
return this.xmlData;
private IByteArray xmlSchema = null;
public void setXMLSchema(IByteArray xmlSchema){
this.xmlSchema = xmlSchema;
public IByteArray getXMLSchema() {
return this.xmlSchema;
xml_ds.setXMLData(new IByteArray() {
public void fromString(String arrayValue){}
public String toString() { return ""; }
public byte[] getBytes() { return xmlBytes; }
xml_ds.setXMLSchema(new IByteArray() {
public void fromString(String arrayValue){}
public String toString() { return ""; }
public byte[] getBytes() { return xsdBytes; }
rpt.getDatabaseController().setDataSource(xml_ds, "books/book", "books/book");
ByteArrayInputStream byteArrayInputStream = (ByteArrayInputStream)rpt.getPrintOutputController().export(ReportExportFormat.PDF);
rpt.close();
byte byteArray[] = new byte[byteArrayInputStream.available()];
//Create a new file that will contain the exported result.
File file = new File("C:
Thick_client
Copy of Amol_Sir
ExportedReport.pdf");
FileOutputStream fileOutputStream = new FileOutputStream(file);
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(byteArrayInputStream.available());
int x = byteArrayInputStream.read(byteArray, 0, byteArrayInputStream.available());
byteArrayOutputStream.write(byteArray, 0, x);
byteArrayOutputStream.writeTo(fileOutputStream);
//Close streams.
byteArrayInputStream.close();
byteArrayOutputStream.close();
fileOutputStream.close();
System.out.println("Successfully exported report");
catch (Exception exception)
System.out.println(exception.toString()); -
Dependent Files for Crystal Report missing while making Setup
Hi Support Team
I am trying to make a MSI Setup of my windows application by using Install Shield 2010
Development Environment that is used to develop the application is
VS 2008 having .Net Framework 3.5 SP1
Crystal Reports 2008 with Service pack 2
When I am trying to build the setup for my application using Install Shield 2010 I am getting errors related to crystal reports.
I am using CrystalDecisions.Windows.Forms.CrystalReportViewer control to display the reports at runtime.
Dlls that I included with the setup related to this viewer are
CrystalDecision.CrystalReports.Engine
CrystalDecision.CrystalReports.Framework
CrystalDecision.CrystalReports.InfoStore
CrystalDecision.CrystalReports.ReportSource
CrystalDecision.CrystalReports.Shared
CrystalDecision.Windows.Forms
The Errors that I am getting upon building the setup are listed below
Could not find dependent file BussinessObjects.Enterprise.Sdk, or One of its dependencies of component CrystalDecisions.CrystalReports.Engine.dll Error Code 6248
Could not find dependent file crpe32.dll, or one of its dependencies of component CrystalDecisions.CrystalReports.Engine.dll
u2dmapi.dll-------
u2dpost.dll----
And the same errors for
CrystalDecision.Enterprise.Framework.dll
CrystalDecision.Enterprise.InfoStore.dll
CrystalDecision.windows.forms.dll
And File not found. An error occurred merging module DMO.9b0u2026u2026u2026 Error Code 4075
And File not found. An error occurred merging module DMO1033.6496u2026u2026u2026 Error Code 4075
I tried your several suggestions from your forums like
I installed
Crystal Reports 2008 Runtime
Crystal Reports Basic Runtime for Visual Studio 2008
Crystal Reports Basic for Visual Studio 2008 Service pack1
And
CRBasicVS2008_redistu2026.
CRRedist2008_x86.msi
And by putting the files like Product.xml in the C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages
And I installed vcredist_x86.exe to install Microsoft Visual C++ 2005 Redistributable on my machine
But no luck still I am getting the same errors.
Please let me know which files I need to install on my development machine to get my setup working.
Waiting eagerly for the response
With Regards
Arshad
u2003Looks to me like you're adding just about any runtime to the project to make it work. Look at [this|https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=56787567] wiki and find out what runtime you actually need. Also, look at the CR assemblies referenced in your project. Then make sure that the you are using the correct msm file(s) for the correct version of the assemblies referenced. Do not add any other versions of CR msm files.
I would also recommend having a look at the developer help file here;
http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_dg_12_en.chm
(search for runtime).
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup -
To moderators : corrupted file in Crystal Reports XI R2 download area
Hi Moderators,
Regarding this thread : CRXI R2 SP4 : Installation problem , the SP4 full build is corrupted.
Is the possible to correct this ?
Thanks and Best Regards,
PhilHas there been any update on this?
This is now two important updates that have problems, and I find this unacceptable:
Crystal Reports Server XI R2 SP4 - crsxir2win_sp4.exe:
While installing: missing cab file m293.cab
Crystal Reports XI R2 SP4 Full Build - crxir2_sp4_full_build.exe:
Can't install: installer is corrupt
Maybe you are looking for
-
Couldn't find the right topic to post this under but if anyone could answer - I'd be really grateful. We are working on a new project that is a data warehousing type system for transactional information. I spent several days of time pouring over the
-
How do I get rid of the dialog box and audio that is in the bottom left corner of the screen running script and audio of what I'm doing or need to do?
-
Is it possible to find owner of lost Apple & Nike?
Found Apple and Nike "chip". Can I use serial number to find owner?
-
How to take a specific image on a website and add to keynote presentation?
Hi, Everybody--I'm a neophyte keynote person, and I've only sporadically used PowerPoint. I remember that in PowerPoint I could take an image from a website, crop the image, and then copy it onto a slide. I've been trying to do that through keynote,
-
ACS5.2 with Radius to RSA token server
I have a test lab with the eval version of ACS5.2. I am running 802.1x on my switch to the ACS usinf radius and want to use my RSA token server to authenticate my users. I have setup my RSA server under "Radius Identiny Servers" in the external ident