Help required in embedding flash file object into Crystal Report file.
Hello,
I use the default version of Crystal Report (i.e.'Crystal Report Basic For Visual Studio 2008 - version 10.5' ) which is the part of 'Visual Studio 2008', to create and display the Report. Further, as a requirement, I have to show 'Event Video' into the Report. But, as this default version of Crystal Report does not support Flash File, I uninstalled it and downloaded and installed the 30 days trial version of the Crystal Report (i.e. Crystal Report 2008 - version 12.0).
Then, I created a new Crystal Report File using 'Crystal Report 2008 Designer', embedded the video as a Flash File(i.e. SWF file) into it. Now, when I add this newly created Crystal Report File into my sample application, which is created using VS 2008, it does not shows the embedded video.
So, can anybody please tell me, how can I embed the Flash File into Crystal Report, so that it will be visible in the sample application?
I would like to appreciate your help and support.
Thanks,
-Yogesh.
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
Similar Messages
-
How can I store a File object into a Vector and get it back
hi there
I need to store a number of File object into a Vector first, and later on I need to get each File object out and work with it.
Vector mylist;
File[] myfile;
....get a list of files from using File Chooser
mylist = new Vetor();
for (i=0;i<myfile.length;i++){
mylist.add(myfile);
..how do I get them back? i try to do this way
for (i=0;i<mylist.size(); i++)
File tempfile = mylist.get(i);
..work with tempfile. but I got java.lang.object error: imcompatible types. what can I do?Vector mylist;
File[] myfile;
....get a list of files from using File Chooser
mylist = new Vetor();
for (i=0;i<myfile.length;i++){
mylist.add(myfile);
ok try this: i don't reall understand what your trying to do though...
File[] files;
// get files
Vector fileList = new Vector();
for (int i = 0; i < files.length; i++)
fileList.add(files);
// to get them out.
for (int i = 0; i < fileList.size(); i++)
((File)fileList.elementAt(i)).toString();
// or
// to get them out.
for (int i = 0; i < fileList.size(); i++)
File temp = (File)fileList.elementAt(i);
System.out.println(temp.toString); -
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 -
My files turned into an exec files
why my files that are in my flash disk turned into an exec files? there's also .ink behind it. one of my friends, copied one of my files and her laptop is not a mac while in the school. and when I got home, i was going to check some files that one of my teacher gave me yesterday (this is the one that my friends copied too) and it turned out to be an exec files. and i can't barely open it. my flash disk is also new, and my first files is the one that the teacher gave me. I wonder what is happened. Can anyone help me? Thanks
Probably a setting. Look at the manual.
iPhone User Guide (For iOS 4.2 and 4.3 Software) -
How to include Flash chart in a PDF report file
Dear all,
I want to add chart in pdf file. I used Jfreechart and all done.
Now i want to move further, i want to add flash chart instead of simple chart in pdf report file.
I searched on net and found "AlivePDF", i want to know is there any other possible way to add flash chart in a pdf report file.
Also sample code is most welcome.
I am not sure about exact forum for this question, please help me with forum category if i need to post this question there.
Deepak KumarIndeed, you are in the wrong forum, reducing your chances to get a good answer...
You are in the JavaFX forum, which is only remotely related to Flash and quite far from PDF... -
How to impor the pdf file into crystal report
I try to import the whole pdf into the crystal report. But when I import it, I can only import the first page of the PDF. Can anyone give me some suggestions? Thank you.
PDFs do not easily import into Crystal Reports.
Fuskie
Who is not sure why you would want to insert a PDF file into a Crystal Report... -
RE: What's database field are used in crystal report file?
Hi all
Please help me a C# code that using Crystall Report API (Crystal Report XI- Develop license) to get the list of database fieldname that using in crystal Report file. (What's database field using in header section ,group section , detail section of report.....)
We looking forward to hearing from you
Thanks
SonHello Son,
please use this code below to get a list of used database fields in a report :
//File Name: CS_Get_report_data_out_inproc.sln
//Created: April 11, 2008
//Author ID: FLI
//Purpose: This C# .NET sample Windows application demonstrates
// how to retrieve report data and put the into a XML file
// using unmanaged RAS.
// Note this is available without a dedicated RAS with SP2 for XI R2
using System;
using System.IO;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.ReportAppServer.ClientDoc;
using CrystalDecisions.ReportAppServer.Controllers;
using CrystalDecisions.ReportAppServer.DataDefModel;
namespace CS_Get_report_data_out_inproc
public partial class Form1 : Form
// CR Declarations
ReportDocument boReportDocument;
ISCDReportClientDocument boReportClientDocument;
public Form1()
InitializeComponent();
//Create a new ReportDocument
boReportDocument = new ReportDocument();
// load the RPT file
boReportDocument.Load("..
ReportData.rpt");
// show in reportviewer
crystalReportViewer1.ReportSource = boReportDocument;
private void button1_Click(object sender, EventArgs e)
//Access the ReportClientDocument in the ReportDocument (EROM bridge)
boReportClientDocument = boReportDocument.ReportClientDocument;
// Retrieve the Rowset Controller
RowsetController boRowsetController = boReportClientDocument.RowsetController;
// Retrieve the metadata (column headers) - this allows you to only retrieve the data that is on the report.
RowsetMetaData boRowsetMetaData = new RowsetMetaData();
Fields boFields = boReportClientDocument.DataDefinition.ResultFields;
boRowsetMetaData.DataFields = boFields;
// Now print out the data in XML file
//(Note: This will print out the results of formulas too)
StreamWriter sw = new StreamWriter("C:
ReportData.xml", false);
sw.WriteLine("<?xml version='1.0' encoding='utf-8'?>");
sw.WriteLine("<ReportData>");
sw.WriteLine("<Reportheader>");
// Print out the titles
for (int i = 0; i < boFields.Count; i++)
String boFieldName = boFields<i>.Name;
sw.WriteLine("<ReportheaderDetail>" + boFieldName + "</ReportheaderDetail>");
sw.WriteLine("</Reportheader>");
//Create the cursor which lets us loop through the data
RowsetCursor boRowsetCursor = boRowsetController.CreateCursor(null, boRowsetMetaData, 1);
Record boRecord;
while (boRowsetCursor.IsEOF == false)
sw.WriteLine("<Customer>");
boRecord = boRowsetCursor.CurrentRecord;
for (int j = 0; j < boFields.Count; j++)
try
sw.WriteLine("<Detail>" + (String)boRecord[j].ToString() + "</Detail>");
catch (Exception err)
sw.WriteLine("<Error>" + err.Message + "</Error>");
sw.WriteLine("</Customer>");
boRowsetCursor.MoveNext();
sw.WriteLine("</ReportData>");
// CLose the file
sw.Close();
MessageBox.Show("XML File 'ReportData.xml' successfully created on C:"); -
Free Charecterstics of Bex not replicating into Crystal Report
Hi Experts,
I am having a strange problem....or may b i am missing some basic here,
We are trying to build a Crystal Report on a Bex Query which consists of some Free Characteristics and a single object in the rows, where as in the columns we are having 2 structure on which consists of Selection Key Figures restricted based on Characteristic Variables with Processing type SAP Exit.
Now wen i am trying to build a Crystal Report on this Query directly from Blank Report Wizard, i am not getting the free characteristics and Row object into the report but i am able to get the Structure values as measures.
Wen i am trying to build the report directly from the SAP tab of Crystal Reports, i am able to c the Free Characteristics and Row Object but getting all the selection Based Key Figures in a single entity on the name of the structure. Due to this wen i am using this in Crystal Report all the Column values are embedded into a single column, which is not desirable.
Please help,
Thanks & Regards,
RMoved to BEX forum
-
No link to the local .avi files after exporting Crystal report as .pdf
Hello all,
The overall scenario is like-
My application fires a query on SQL Server database and result of that query is stored in a Dataset. This dataset is set as a datasource to the Crystal report. Now some, records (returned by the query) have .avi files(i.e. Event Videos which are stored on the local hard disk) associated with them. I have stored these .avi files in a specific path on local Hard disk say "C:/EventVideos/*.avi" . I used a special format in these avi files name. (like - "EventVideo_1.avi" (This is for 1st event), "EventVideo_5.avi" (This is for 5th event)etc. to identify which avi is for which event. All events do not have avi files associated with them)
Now, I take one Text Object in crystal report. Using it's Format editor created a formula for hyperlink as -
"file:///c:/EventVideos/EventVideo_" + {DataTable1.EventID} + ".avi" .
EventID is the field of dataset which has ID's (like 0, 1, 2, 3, 4 etc) of all resulted events. It is of a String data type.
Now when I export, my report as .xls, .rtf, .doc, I can open the avi files. When I bring cursor on this Text Object, cursor get change to Hand and after click on it avi file start to play.
But if I export it as .pdf, it does not contain the link for avi files. When I bring cursor on this Text Object , it does not change to Hand, and after click on it nothing happens. No video play.
I stick to this problem. What should be done in this case?
Appreciate your help.
Thanks in advance.duplicate - please do not post multiple times
-
Overwrite crystal report file name with new version but keep history
I am writing a Crystal Reports .NET SDK in C# code to upload a crystal report files from its destination to CMC folder on BO XI R2 Platform.
On "Upload Button" click_event, validate the two check boxes controls named "Keep History", and "Remove History". Once "Keep History" check box is selected, check If the SAME report file name exists in the same destination CMC folder, if Yes, overwrite it BUT Keep the History and all its associated objects like "recurring objects". If "Remove History" is selected, then remove the existing report and upload the new report file name.
Please provide me some codes on how to do this task. This is definitely a "WIN" - "WIN" effort and contribution to my Team Goals.
P.S. This is a similar scenario when you are uploading report on BO Enterprise R2 CMC.
When Uploading a new report to a folder but same report file name exists, the BO System will promt message "Report File Name" already exists. Do you want to Overwrite it?" If Yes, then system will overwrite the file but it will keep the history and recurring objects.
Any help would be greatly appreciated.
Thanks,
BienSuggest looking at [this|https://wiki.sdn.sap.com/wiki/display/BOBJ/NETBusinessObjectsEnterpriseSDKSamples] wiki for links to pertinent samples. Also, check out the [Developer Help File|http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/WS_SDK/wssdk_server/default.htm]. Searching these forums for similar queries may also prove to be fruitful
Ludek -
Creating crystal report file dynamically.
Post Author: malcomstewart115
CA Forum: General
Hi, everybody.
I have one problem.
How to create crystal report file(*.rpt) in php dynamically.
I mean, I want to create the "*.rpt" file with php code.
Please help me. thanks everybody.Post Author: PWilkens
CA Forum: General
It sounds like you're defeating the power and purpose of Crystal Reports, or replace it with pure PHP (which I suppose could be done... but why?)
What exactly are you trying to do?
If you're trying to make certain parts of the report hide or reveal or change depending on variables settings in the PHP file, that's easy enough to accomplish by sending parameters with your PHP values into the report. But the dynamic actions really need to be done within the report itself, accomplished through ample use of the section and field settings provided within the Report Designer. -
View Crystal Report File from SDK
Hello All,
I want to View Crystal Report File (.rpt file) from SDK (using VB 6 )
I have already try following code on my Add On :
Public Sub RunCrystalReport()
Dim crlApp As New CRAXDDRT.Application
Dim crlRep As CRAXDDRT.Report
Set crlRep = crlApp.OpenReport("D:\ReportTest.rpt")
Dim CRAX2 As CrystalActiveXReportViewerLib12Ctl.CrystalActiveXReportViewer
Set CRAX2 = Form2.CRAX
CRAX2.ReportSource = crlRep
CRAX2.ViewReport
End Sub
But, nothing happen
Could some one help one for this ?
Thanks a lot
Regards,
Arie
SDK BeginnerAmazing Sir !!...
I could run my report through B1 SDK right now...
Many thanks to you Sir..
Just one more thing, The Horisontal and Vertivcal Scroll control wasn't appear. Do I have to add scroll object or someting like that
Many thanks again to you Mr. Porcelli
Arie -
Crystal report files created, but why not all?
I am using several (total 19) Crystal report files (*.rpt) in my project as report or subreport. When I delete these rpt files under my "...\bin\Debug" folder and run the application I see that some (exactly 14) of them are automatically retrieved back into the "...\bin\Debug" folder.
But there are several other reports (remaining 5 of them) I also want them to be created at the application start. I have debugged the application from tha main entrance and saw that the rpt files are generated even the first line of code is executed. Also checked my "App.config" file (where I hold the paths for these report originals) and added the most recently created report that is not retrieved into the file, but the file is not retrieved.
I have also checked the contents of "XXXXX.exe" (XML Configuration file), "XXXXX.vshost.exe" (XML Configuration file) under "...\bin\Debug" folder and "XXXXX" (Microsoft Visual Studio Solution), "XXXXX" (Microsoft Visual Studio Project file), "XXXXX.csproj" (Visual Studio Project User Options file), "XXXXX" (XML Configuration file) under the project folder but I still can not figure out how the Visual Studio determines which ones to retrieve and leave others
Any help would be appreciated.
Regards.This could be related to the Build Action property for the .rpt file. Compare the settings for this property to see if the files that are not copied have a different setting.
-MJ -
Step- by- Step on How to Load Excel data into Crystal Reports?
Hi Friends,
Can anyone send me a Step- by- Step on How to Load Excel data into Crystal Reports? Pls help me. Thanks in Advance.
VijayIt's also important to 'prep' the excel file prior to connecting to it.
Give the data tab a meaningful name
Make sure the column headers are unique and that every column has a header
Delete any blank tabs
If you have trouble with Excel changing the data type of a field (say, a social security number you want to be a string value rather than a number so you don't lose leading zero) an alternative would be to save the spreadsheet file as a CSV, create a schema.ini to specify the data types for each column (example below) and use the same steps to connect except instead of choosing Excel 8.0, scroll to the bottom and choose Text. You have to make sure the CSV file is in the same folder as the schema.ini file that defines the columns.
Schema.ini example:
200912PUSD.csv
ColNameHeader=True
Format=CSVDelimited
MaxScanRows=25
CharacterSet=OEM
Col1=SSN Char Width 9
Col2=LAST_NM Char Width 25
Col3=FIRST_NM Char Width 25
Col4=DOB Date
Col5=STDNT_ID Char Width 10
Col6=SORTKEY Char Width 10
Col7=SCHOOL_NM Char Width 30
Col8=OTHER_ID Integer
Col9=GRADE Char Width 2
The filename in the first line needs to have the [] brackets around it, but I couldn't get it to display in this forum correctly.
Edited by: Eric Petersen on Jan 27, 2010 9:40 AM -
Convert abap reports into crystal reports
Hi,
We are trying to convert abap reports into crystal reports.We could convert these reports into XML files
Now we want to create utility which will automate the conversion of XML files into RPT files of crystal reports.Later on we can refresh the data in reports by changing the datasource location.
Can you please guide us whether it is possible and if yes how should we go about it?
regards,
shitalHi, i suggest, 2 technies to do this, the first one, you can use,
CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
EXPORTING
APPLICATION = 'C:\Program Files\crystalreports.exe'
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
BAD_PARAMETER = 3
FILE_NOT_FOUND = 4
PATH_NOT_FOUND = 5
FILE_EXTENSION_UNKNOWN = 6
ERROR_EXECUTE_FAILED = 7
SYNCHRONOUS_FAILED = 8
NOT_SUPPORTED_BY_GUI = 9
OTHERS = 10.
where, exe file could be, a crviewer.exe, and, use a parameters ( on exe ) to indicate rpt file, or, define of standar mode, a generic name and put, xml file generated via abap, on a repository, this way, rpt file, when launched, displaying file.
the second choice, could be, go SM69, click create. enter a command name 'ZCREXE', enter the path and the exe file name in operating system command field. You can call this exe from ABAP using SXPG_COMMAND_EXECUTE.
i hope so that my answers help you.
greetings.
Maybe you are looking for
-
Inter Co PO creation wirth Zero Price
Hi, I am an FI/CO consultant, but I need your advice with creation of an Inter Company PO with Zero value My requirement is w.r.t an inter-co PO. Say Company A sells to Company B a material priced $50.00 with 100% discount. The inter-co PO is used a
-
Problem with STMS configuration ( READ_PROFILE_FAILED )
Hi All, When i am configuring STMS in solution manager getting below error. message :READ_PROFILE_FAILED Command TMS_PM_READ_PROFILE Service tp Profile Service Start Online Function TMS_PS_READ_PROFILE_FROM_DISK Message READ_PROFILE_FAILED Func
-
How I can chance to language?
How I can change to language?
-
Combing - what causes, what to do?
using an HV30 in HDV mode. capture into iMovie HD 6. i have an original mac pro (2 Ghz) and recently upgraded to ATI radeon HD 3870. 8G of memory. mucho disk. 30" HD cinema display. i expect this to be a good set up for video, eh? i am shooting model
-
Separate private ip addresses for non-global zones
I'm testing zones on one of our administrative servers and I'm wondering about the following scenario. Zones can easily run away with a lot of ip addresses and I decided to try this. The machine has, in its global zone, a standard private address in