Rendering Office Files in an AIR app.

I realize this might be a stretch, but does anyone know if
there is some means of displaying common MS Office files in AIR?
Perhaps through incliding an ActiveX control, etc. in your AIR app?
I have some legacy files that would need to be used in an app...
this is one of the main sticking points still drawing me towards
using a SWF-EXE tool like Zinc instead of AIR.
Also, I'm interested in learning if anyone is generating PDFs
out of an AIR app using DisplayObject items, etc... any examples
out there, yet?

Hi,
AIR doesn't support ActiveX controls or displaying MS Office
files. :)
For dynamic PDF generation, take a look at
AlivePDF.
> I realize this might be a stretch
Definitely, dude. Definitely. :)

Similar Messages

  • Using browser javascript to copy selected text from a pdf file opened in Air app.

    I have posted this question on reader forum as well, but I think it is more suited here...
    I am trying to create a note-taking application in air. I want to extract selected text from pdf file as a string object or to the clipboard.
    Obviously, all pdfs in my local storage will not be scripted to recieve postMessages and act accordingly, and that is not practical either. So, my problem is, how can I copy the selected text in the pdf file (opened as an object in htmlloader within my Air app) to clipboard or directly in another control by say clicking a button in air application? I suppose, this is possible using javascript, however, I don't know which reader methods are exposed to the wrapper htmlloader control. In short, I want to execute app.execMenuItem("Copy") command through htmlloader javascript. Any alternate solutions are also welcome.
    This is similar to passing inbuilt commands/methods/functions (of adobe reader) to pdf-reader plugin embedded in a webpage via javascript. This is possible in IE where the pdf is rendered as activex object, and hence JSObject interface of pdf document/reader is accessible to the browser javascript. I have also read that this same JSObject is accessible to VB as interface for IAC, so as the Air is Adobe's own product, I was wondering if equivalent of JSObject is accessible to htmlloader control as well.
    Thanks in advance...
    Mits

    Thank you Thom for your reply...
    from
    http://www.adobe.com/devnet/acrobat/javascript.html
    ...Through JavaScript extensions, the viewer application and its plug-ins expose much of their functionality to document authors, form designers, and plug-in developers...
    As it is explicitly mentioned, that the functionality of adobe reader are exposed for plugin development, I thought someone here might have used external javascript to execute some safe methods in adobe reader. The functionality (i.e. external javascript interface-JSObject) is already available for VB programmers to develop IAC. Further, the Acrobat SDK example called "AcroPDFinHML" shows how one can embed a pdf-reader in a html page and execute some safe methods (like gotonextpage(), zooming etc.) in IE as ActiveX plugin. I have checked it myself for adobe reader 9, and it works perfectly, so there is no security issue as such to implement the same for another browser (like in my case, the htmlloader control in flex/air app).
    I intend to create a note taking application in air, where it is very much required that I should be able to copy selected text from various pdf documents, that are open in my app, and subsequently paste/collect/save the collected notes and process them afterwords (offcourse, from the pdfs that allow me copying text). However, it is not happening for me here. As the pdfs are opened through adobe reader plugin, it does not register the copy command executed by my air app. It registers the system level copy command (by keyboard shortcut Ctrl+C), but my air app has no way to execute the system level copy command programmatically. So I am kind of stuck here...
    Thanks again for your reply. Having known what am I intend to accomplish, any other (may be alternative) solutions will be appreciated nonetheless...
    Mits

  • What is the best and easiest way to upload a big file from an AIR app to a server?

    hello everyone
    i am a self-teach-as-i-go kind on person, and this is my first encounter with uploading to a server, websites and all
    i have written an AIR app in which the user chooses pictures from his/her computer and fills out numerous forms. at the end i want to upload all this data to my server
    currently, all the data folder gets compressed to a single zip file (using noChump zip library). i did this for simplicity reasons (uploading only a single file) - the size is the same. this files can get up to 200mb in size
    as a server, i have one domain I have bought and currently only a small space (1G - basic). I control it using Parallels® Plesk panel (default from the company i bought the domain and space from)
    I have no knowledge other then as3 (thanks, OReilly!), so i thought of something that doesn't require server side scripting.
    after messing around a bit i found the code at this question: http://stackoverflow.com/questions/2285645/flex-crossdomain-xml-file-and-ftp
    (thank you Joshua). please look at that code, basically, it uploads through a socket
    I fixed it up a bit and was able to upload a 64mb zip file to my httpdocs folder in my domain. this included hard coding my username and password
    looking at my site managing panel i see the file created and expanding in size, end at the end i even dowloaded the zip and decompressed it - all well.
    my questions are:
    the upload continued even when i exit my air app! how does this work?
    i cant get progress events to fire (this relates to question 1).
    this domain also holds my web page. is httpdocs the correct folder to put in user data? how do i give each user their own username and password?
    is this the right way to go anyway? remember file sizes could reach 200mb and also, secure transferring is not a must
    hope you guys can make sense in the mess
    cheers
    Saar

    Google search.
    iTunes does not sync with non-Apple devices.

  • Native extension to unzip a file crash my air app

    Hello,
    I have a problem with a native extension for android
    I want to unzip a file
    my java code
    File f = new File("my zip file");
    File outputDir = new File ("output folder");
    ZipHelper.unzip(f, outputDir);
    and
    import java.util.zip.*;
    import java.io.*;
    import java.util.Enumeration;
    import org.apache.commons.io.IOUtils;
    import android.util.Log;
    public class ZipHelper
    static public void unzip(File archive, File outputDir)
    try {
    Log.d("control","ZipHelper.unzip() - File: " + archive.getPath());
    ZipFile zipfile = new ZipFile(archive);
    for (Enumeration e = zipfile.entries(); e.hasMoreElements(); ) {
    ZipEntry entry = (ZipEntry) e.nextElement();
    unzipEntry(zipfile, entry, outputDir);
    catch (Exception e) {
    Log.d("control","ZipHelper.unzip() - Error extracting file " + archive+": "+ e);
    static private void unzipEntry(ZipFile zipfile, ZipEntry entry, File outputDir) throws IOException
    if (entry.isDirectory()) {
    createDirectory(new File(outputDir, entry.getName()));
    return;
    File outputFile = new File(outputDir, entry.getName());
    if (!outputFile.getParentFile().exists()){
    createDirectory(outputFile.getParentFile());
    Log.d("control","ZipHelper.unzipEntry() - Extracting: " + entry);
    BufferedInputStream inputStream = new BufferedInputStream(zipfile.getInputStream(entry));
    BufferedOutputStream outputStream = new BufferedOutputStream(new FileOutputStream(outputFile));
    try {
    IOUtils.copy(inputStream, outputStream);
    catch (Exception e) {
    Log.d("control","ZipHelper.unzipEntry() - Error: " + e);
    finally {
    outputStream.close();
    inputStream.close();
    static private void createDirectory(File dir)
    Log.d("control","ZipHelper.createDir() - Creating directory: "+dir.getName());
    if (!dir.exists()){
    if(!dir.mkdirs()) throw new RuntimeException("Can't create directory "+dir);
    else Log.d("control","ZipHelper.createDir() - Exists directory: "+dir.getName());
    i copy the file commons-io-2.4.jar (I get at http://commons.apache.org/proper/commons-io/download_io.cgi) in the lib folder of eclipse.
    in a native android app, this code work fine
    in a native extension for air, my air app crash
    LogCat in eclipse return
    NoClassDefFoundError: org.apache.comons.io.IOUtils.copy
    IOUtils class is not in commons-io-2.4.jar ???
    thanks

    Hello,
    I have a problem with a native extension for android
    I want to unzip a file
    my java code
    File f = new File("my zip file");
    File outputDir = new File ("output folder");
    ZipHelper.unzip(f, outputDir);
    and
    import java.util.zip.*;
    import java.io.*;
    import java.util.Enumeration;
    import org.apache.commons.io.IOUtils;
    import android.util.Log;
    public class ZipHelper
    static public void unzip(File archive, File outputDir)
    try {
    Log.d("control","ZipHelper.unzip() - File: " + archive.getPath());
    ZipFile zipfile = new ZipFile(archive);
    for (Enumeration e = zipfile.entries(); e.hasMoreElements(); ) {
    ZipEntry entry = (ZipEntry) e.nextElement();
    unzipEntry(zipfile, entry, outputDir);
    catch (Exception e) {
    Log.d("control","ZipHelper.unzip() - Error extracting file " + archive+": "+ e);
    static private void unzipEntry(ZipFile zipfile, ZipEntry entry, File outputDir) throws IOException
    if (entry.isDirectory()) {
    createDirectory(new File(outputDir, entry.getName()));
    return;
    File outputFile = new File(outputDir, entry.getName());
    if (!outputFile.getParentFile().exists()){
    createDirectory(outputFile.getParentFile());
    Log.d("control","ZipHelper.unzipEntry() - Extracting: " + entry);
    BufferedInputStream inputStream = new BufferedInputStream(zipfile.getInputStream(entry));
    BufferedOutputStream outputStream = new BufferedOutputStream(new FileOutputStream(outputFile));
    try {
    IOUtils.copy(inputStream, outputStream);
    catch (Exception e) {
    Log.d("control","ZipHelper.unzipEntry() - Error: " + e);
    finally {
    outputStream.close();
    inputStream.close();
    static private void createDirectory(File dir)
    Log.d("control","ZipHelper.createDir() - Creating directory: "+dir.getName());
    if (!dir.exists()){
    if(!dir.mkdirs()) throw new RuntimeException("Can't create directory "+dir);
    else Log.d("control","ZipHelper.createDir() - Exists directory: "+dir.getName());
    i copy the file commons-io-2.4.jar (I get at http://commons.apache.org/proper/commons-io/download_io.cgi) in the lib folder of eclipse.
    in a native android app, this code work fine
    in a native extension for air, my air app crash
    LogCat in eclipse return
    NoClassDefFoundError: org.apache.comons.io.IOUtils.copy
    IOUtils class is not in commons-io-2.4.jar ???
    thanks

  • Associate file extension with air app on Android

    Hi,
    I am trying to associate a file extension with my air app on Android. My goal is to be able to start my app by clicking on a file with a specific file type from either a file manager or mail app. I have found a solution that in theory would work in native, but does not with air somehow.
    In the .xml-file for the app, under the <android> tag I have written:
    <activity>
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="file" />
                <data android:pathPattern=".*\\.csml" />
                <data android:host="*" />
            </intent-filter>
        </activity>
    Does anyone have an idea how this could be solved?
    Thanks in advance
    Jens

    If it works in a native app, it should also work in an AIR app in this case. Can you verify that it does work in a native app?
    See also:
    http://www.mail-archive.com/[email protected]/msg47862.html//www.mail-archive.com/[email protected]/msg47862.html
    http://stackoverflow.com/questions/1733195/android-intent-filter-for-a-particular-file-ext ension

  • Open a file from an Air app

    Hello,
    I want to open (with another application Android) a file from an Air application
    navigateToURL( new URLRequest(myFile.url) );
    the problem is that Android give me only Adobe Reader to open "myFile"
    how Android proposes to all applications succeptibles to open "myFile" ?
    openWithDefaultApplication() doesn't work on Android.
    thanks

    I found in http://forums.adobe.com/thread/864113

  • I accidentally removed some ms office files from macbook through app cleaner . now they are in trash . how to restore them as some applications are not opening

    i just downloaded appscleaner from net and accidentally removed some of the ms office files like database utility , entourage ,etc. now when i open word, excel , it shows some message . how to restore the files. i tried by dragging them to the desktop but  don't know how to reinstall them at original place.

    Dragging them to desktop was not a good idea. Now you need to know where they came from.
    For any still in the Trash right-click on the file and select "put back" from the context menu.
    What version of Office, and what are the file names? We may be able to help you trace where they should be.

  • How to open Microsoft office files from my wp8 app?

    Is there any way to open Microsoft office documents? I want to open a doc file which is in my phone.My app may try to open pdf also. So is there any way for that? I need a free one.

    //where file is your StorageFile type object of perticular //Office documents i.e. ppt or doc etc
    await Windows.System.Launcher.LaunchFileAsync(file);
    Please Refer these links 
    How to open pdf file in Windows Phone 8?
    Launcher.LaunchFileAsync
    shah
    // Please Mark as answer if it is Helpful to you. Thank You

  • Open link outside my air app.

    I load a html file into my air app, through htmlloader. I want to set specific links to open in the browser outside the app, but don't know how to do this. Any suggestions?

    please, don't open duplicate threads.

  • Packaging and Delivering AIR Apps

    Hi Guys,
    I have an issue. I have a config file in my air application
    that I want change depending on what user it is being delivered to.
    The number of users could be extremely large, possibly in their
    hundreds so to have to change the config file again and again by
    hand is unfeasible. I had an idea to automate this process with a
    web app that will take some user information and use it to update
    the details in the config. However what I am struggling with is
    whether to compile the app, open the it up in java and change the
    config file. Or whether to adjust the config file first, than
    compile the air app.
    I know how to view and read the config files in the air app
    from a java program once the air app has been compiled, but writing
    to those files is alluding me at this time. What I know nothing
    about however, is compiling an air app with a java program.
    Has anybody else had this problem? How did you go abouts
    solving this? What are your reccomendations?
    Any help would be extremely useful.

    quote:
    Originally posted by:
    duncanhall
    It doesn't need to require any user interaction at all, as
    long as you have some logic in the app that can determine which
    "version" of the config file is needed.
    Just transparently download the file in the background on
    first run, then store it in the application storage directory. This
    requires no user interaction whatsoever, means that one single
    build can deployed with an unlimited number of pssible
    configurations and makes it easy to update the config file in the
    future.
    Oh I see where your coming from! Very Good idea, I like it a
    lot. I may actually use this implementation. Thank you for your
    suggestion.

  • Cannot install AIR app in an existing folder

    Hi to all, I'm trying to create a setup for my AIR application. I have an NSIS script that install all the files that the AIR app needs in the targer folder. The AIR app is copied in a temp dir and then is lauched for installation but the installer said that it cannot install the application because the target folder is existing? What can I do to remove this check?
    Thanks a lot,
       Andrea

    Correction to above.
    Can't find folders to choose to place bookmarked item into. There is no list like I had in my XP laptop.

  • How can I set connection to external XML file with Dreamweaver to buiild AIR app?

    Hello,
    I try to do simple AIR app in dreamweaver. It's not problem
    to use static data. But I'd like to use dynamic data from external
    XML file. I try to use Spry and evrything works fine in web browser
    but i have problem with loading external XML data into my app in
    AIR. Can I simply transform my spry based html app into AIR?
    What should I add to do this?
    Pawel

    Daniel Lichtenwald wrote:
    What are the requirements and steps for arranging to receive this large file using File Transfer Protocol (FTP)?
    Usually, we don't speak of "receive" when using FTP, since the file is transferred from server to client, so it's more of a case of "download".
    At your end, it's simple. You use an FTP client; under SL, that includes Finder and Safari, so you don't even need to get any additional software.
    At the other end, it's more complicated; the 'sender' must set up an FTP server on his machine.
    Alternatively, you can set up your own Mac as an FTP server, and have the 'sender' connect to you with an FTP client and upload the file; but, if your Mac lives behind a router, then you have more work to do with the router settings.
    That's why it's much easier to use the file sharing services mentioned above -- if they are available in both sender's and receiver's locations. (Keep in mind that some countries block access to all those mentioned -- except perhaps <www.transfer.ro>, of which I know absolutely nothing.)

  • Air App file damaged

    I am getting the message that the Air app (tried several)
    cannot install because the Air file is damaged. I have uninstalled
    and reinstalled Air. I’ve had this problem with my previous
    Mac (PowerPC). Just got a new Intel Mac - migrated my apps and
    still cannot install Adobe Air apps. Adobe Air installs fine - but
    not the apps. Here is my log file:
    Starting app install of
    file:///Users/christinedattilo/Desktop/TweetDeck_0_19_3.air
    UI SWF load is complete
    UI initialized
    Unpackaging to
    /private/var/folders/9c/9c2l9zRf2RWQ1++BYv7eNU+++TQ/TemporaryItems/FlashTmp0
    failed while unpackaging: [ErrorEvent type="error"
    bubbles=false cancelable=false eventPhase=2 text="internal crypto
    error" errorID=0]
    starting cleanup of temporary files
    application installer exiting
    Can someone help - there are so many good Air apps I’d
    like to use.

    hi... I've been reading a number of threads on this
    frustrating issue & feel that some may be in a form of denial
    over it... having successfully downloaded adobe mediaplayer I
    subsequently received error messages on start-up saying that the
    adobe air file was damaged, even though adobe media still worked
    ok.. eventually, & more out of tidiness than anything else, I
    decided to uninstall AIR & reinstall it & thence came the
    problems... no matter where I downloaded it from I got the same
    error message as everyone else, about the file being damaged...
    anyway, being basically lazy I couldn't be doing with all the
    recommended logging of installation files, removal of certificates,
    etc & decided to move the AIR installation file to my
    C:/Program Files/Adobe folder & try installing it from there..
    well, (cue fanfare) it worked! Obviously I can't guarantee it'll
    work for everyone or all intended uses but give it a go before you
    try all the other suggestions & you might save yourself an
    awful lot of heartache... cheers

  • Embedding swf files in AIR app for ios

    Hi,
    After going through a lot of articles already available, I found answers with varying views on the following questions:-
    1) Can we embed swf files using the embed tag in air app for ios, with symbols exported ?
    Something like [Embed(source="someSWF",symbol="exportedSymbol")]
    and also something like [Embed(source="someSWF")].
    From what I understand, one can't embed swf's with actionscript byte code in them. So exporting symbols actually creates class linkages which leads to creation of abc. But I'm unsure on this because some sources say otherwise.
    2) Can we embed swf files using embed tag in air app for ios, without symbols exported ?
    Something like [Embed(source="someSWF")]
    and also something like [Embed(source="someSWF" mimeType = "application/octet-stream")]
    I read somewhere else, that you can actually embed symbols separately by providing symbol tag in embed tag but not entire swf (which leads to uncompiled actionscript error) but not sure about this as this is contradictory to finding #1.
    3) If #2 is possible, then do embedding two different swfs with same symbol names would cause a conflict and result in #3747 error ?
    Please note I am not asking about the Loader class here but using the Embed keyword for embedding swfs.
    Also do the results differ with AIRSDK 3.8 and 3.9 and using different swf-version in compiler flags ?
    In our application we started getting error #3747 in class creation of one of the embedded swfs (like new EmbeddedClass()) when we changed from swf-version 17 to 21 using AIRSDK 3.8. So was this error not there earlier or it was there but swf-version was suppressing it ?
    Any help is much appreciated.
    Thanks!

    I am fairly sure that the answer to your questions is: “no”.
    For embed to work the AIR app would have to be working in interpreter mode, and that can work for local testing, but can’t work for submitting apps. An easy change for you to do would be to use SWCs instead of Embed. Other than that you’re looking at Loader, but also a tricky command line build of the app.

  • Windows Explorer Right Click - Open file in Air App

    I have an AIR App that I made to run on my desktop.  It is used for editing specifc XML files.  I want to know if its possible to setup so that I can right click on an XML file while browsing Windows Explorer and choose an option to "Open in (my AIR App)" ... that would lauch my AIR app and also open the xml.
    Right now, I have to launch my AIR app, click to open a file, and then browse for the file and select it.

    ok so after all of this time, i stumbled upon something that should solve my problem.  i created a new AIR file in flash and put a text field on the stage with the name "my_txt" then I just added this bit of script (below) .... then once I installed the air app, i opened a file into the app and the path to the file was displayed in the text box thats on the stage.  now i just have to use this path to actually open the file.
    import flash.events.InvokeEvent;
    NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE, invoked);
    function invoked(evt:InvokeEvent):void{
              my_txt.text = String(evt.arguments[0]);

Maybe you are looking for

  • Problem with Viewsonic external screen

    Hi everyone, I have the new MBP and miniDP > DVI cable, but nothing shows up on my external Viewsonic vx2035. The same combination works with other monitor, also the Viewsonic works with my old MBP... Any idea? Thanks. John

  • [SOLVED] My iPhone 3GS does not appear in PCManFM file manager

    Hi My new desktop is under arch and uses PCManFM as filemanager, but when I plug my iPhone 3GS, it does not appear in the right panel I've experimented the same issue with the last version of pcmanfm (before 0.9.7) my usb sticks, and mp3 player are h

  • Cannot load or find Driver, Port_#0005.Hub_#0004

    Hi all, I just installed a new sdd and I'm reinstalling all my drivers but I can't seem to find one driver.   It says it is in,  Port_#0005.Hub_#0004.  My computer is a T510 (4313).  I've tried windows update and the lenovo drivers update as well and

  • Lowest Version of Reader for Forms, and Appearing Message

    Hello - I am working on a form and would like to verify that the person has the correct version of Adobe Acrobat Reader, before they fill out the form. Do you happen to know what the earliest Adobe Acrobat Reader version requirement is for a form? I

  • MPEG-2 conversion issues

    Hi all- I normally post over at the FCP discussion page, but for my most recent question someone suggested posting over here, since I'm having problems with the combo of FCP and DVD Studio Pro. Can anyone over here point me in the right direction, ev