Copy and paste Excel data into Flex text box - apache-flex

Our users want to copy and paste some rows from an Excel spreadsheet, or a chart generated in Excel, into a text box within a Flex application.
It would be ok for it not to be fully functional, like an ActiveX object, embedded in the flex app. If it converted it to a static image, that would be fine. But I don't know of any Flex component that supports this.

No, this can't be done. What a shame. Now I am sad.

Related

Component in flex to render the excel

Is there any components of flex that render the excel in flex?
I want to render the excel with excel functions, excel formatting, excel Formulas, etc. in flex. And also wants to perform actions on that excel row and column, like applying formulas, formatting text, insert function etc. in flex version 4.6.
There is no ready-library for this. You would have to develop this by building on top of Flex's DataGrid. This is a huge project. You have to ask yourself if it is reasonable to embark on such a project, given that Flex will no longer work in any browser when Flash is retired in 2020.
In the javascript world you will find many options for 'Excel-like' grids.

File browser in JavaFX

I am starting to learn JavaFX (2 days in) and I am making an implementation of a file browser. So to give you an example I am looking for something like this
What element should I use for the representation of the right panel (the one with the icon view of the files)?
I need it to point at a specific directory in my system, lets say 'music', and display all folders stored in it.
I looked for tutorials online and other examples but I couldn't find anything similar.
My only requirement is to look this way and also to support drag and drop.
Thanks
EDIT: I am using Scene builder btw
Use a ControlsFX GridView for the right pane of file icons.
GridView is a fast, virtualised grid container similar to ListView, except that there can be multiple cells on each row. Great for showing images!
GridView probably doesn't natively support drag and drop, so you will need to code that up yourself.
Here is a sample of some drag and drop functionality in a virtualized control (in this case a ListView), which you might be able to adapt: How to create a reorder-able TableView in JavaFx.

Can you generate complex PDF files with Flex 4?

I'm trying to understand if it is possible to generate complex PDF files with Flex.
By complex I mean add images, styled text (font-family, weight, columns) layout elements with large degree of control and so on.
I was looking at AlivePDF library but cannot understand if it can handle more complicated PDF generation than plain text.
Thank you.
AlivePDF is your best bet. It's also open source, so you can add more features on it if it doesn't do everything you want for your 'complex' pdf.
Other than that, you'll have to look into server side PDF generation. I know Adobe Livecycle has a pdf generator and I'm sure there's other solutions out there.

How can I use Flex to create a data grid and use it on a web page?

I want to render a very simple Flex data grid. How do I anchor the SWF flash file in the HTML? Do I need to compile a special .swf or can I use a 'standard' data grid .swf - and just pass the data to it?
The way Flex works is you create an MXML file which contains your application definition (user interface, "states" to transition to, etc.). This is where your DataGrid would "live." You could also place a button in your user interface that, when clicked, would call an external data source and fill your grid (alternately, you could have it happen automatically when the application is started).
To create an MXML file, all you really need is a text editor and the Flex SDK, BUT, if you are new to programming Flex, you should look into purchasing Flex Builder (the download is for a trial version).
To get up to speed in Flex, I strongly recommend looking at Adobe's web site devoted to all things Flex. It's at http://www.adobe.com/devnet/flex/.
EDIT: For Linux, an alpha version of FlexBuilder is available at http://labs.adobe.com/technologies/flex/flexbuilder_linux/ (and the SDK download I mentioned previously should work on Linux as is). Download it and "install" it and you'll then be able to compile MXML files (at the command line) to SWF files for use on web sites. The original point, though, still remains; you'll need to learn more about Flex and ActionScript before you can create an SWF file and place it on a web page. That's where the DevNet site comes in.

Is there another way to integrate PDF viewing in a Flex application?

I'm looking at ways to embed PDF viewing in a Flex application.
Currently the only option I've seen is by using the flash.html.HTMLLoader class, which only works if you're using AIR. This isn't a big deal -- I'm willing to use AIR if I have to -- but based on my experimentation with viewing a PDF this way it appears that AIR simply integrates the embedded Adobe PDF browser Plug-in for viewing, which not only shows the PDF page(s), but provides all of the manipulation controls as well (zooming, printing, etc.) which I don't want to see.
I'm looking for something that works somewhat along the lines of the JPedal library for Java -- an embedded component that simply renders the PDF alone.
Has anyone found a way to do this with either AIR's built-in component or via some other method?
There are a couple of ways, but neither actually have the PDF in the Flex App:
Convert the PDF to SWF. Use this tool or one like it to convert the file over.
Use HTMLComponent, a method that uses an iframe over your flash/flex to make it appear like an external page is in your app. There are a few downsides to this method however - most of them described in detail at Deitte.com.
What you want is possible with AIR and described in this Adobe article:
http://www.adobe.com/devnet/air/flex/quickstart/scripting_pdf.html
Take a look at http://www.adobe.com/devnet/flex/quickstart/embedding_assets/ and see if it helps.
I don't think you can embed PDF files directly (but I'm not really sure) but if you totally need to do it and you don't want to open a new window you could convert the PDF to another format that can be inserted in your app.
If your goal is to simply display the PDF in the Flex environment then you could use the IFrame approach. You can find an example here http://www.deitte.com/archives/2006/08/finally_updated.htm
By using this approach you can load any HTML content which includes PDF's.
Take a look.
Okay guys here is the exact one we're looking
http://subinsugunan.blogspot.com/2009/06/embed-pdf-in-flex-application.html

Resources