Printing HTML from AIR app

What are the general rules to print an html content from an AIR application to make sure that the printout looks the same as printing it from the browser?
Thanks

Hi,
This link might help you:
  http://dryicons.com/blog/2008/04/26/multiple-page-printing-from-a-html-adobe-air-applicati on/
Thanks and Regards,
Kanchan Ladwani | [email protected] | www.infocepts.com

Similar Messages

  • Convert HTML/javascript AIR app to flex-based AIR app?

    Hi all,
    I've already built an AIR app using HTML/javascript that I
    would like to monetize.
    I would like to use O2app's E-Commerce framework, which right
    now only supports Flex-created AIR apps.
    My question: Is there a simple way to "convert" an
    HTML/javascript AIR app to Flex 3 format? I'd rather not have to
    rebuild the app from scratch in Flex 3 if I don't have to. :)
    Thanks,
    Al

    Hi,
    There's no simple way to convert an HTML AIR app to flex.
    But it is possible to create HTML Root windows from a Flex
    AIR App. By root window, I mean the same kind of window that is
    launched when you launch an HTML AIR App.
    For more info, look at the HTMLLoader.createRootWindow()
    call. (This will be available from a Flex AIR app as well)

  • Embedding swf into HTML+JS AIR app

    Hi
    I'm trying to embed swf into HTML+JS AIR app with no luck.
    First, I created flash library with this class in default package.
    package
         import mx.controls.Alert;
         public class Utilities
              public function Utilities()
                             //asdfasdf              
                   Alert.show("asdasd","");
    Then I compiled the project with Flash Builder and got library.swc as result. Then I extracted swf file.
    After this is added required code into my html:
    <html>
    <head>
        <script type="text/javascript" src="AIRAliases.js"></script>
        <script type="text/javascript" src="AIRIntrospector.js"></script>
        <script type="text/javascript" src="jquery-1.6.2.js"></script>
        <script src="library.swf" type="application/x-shockwave-flash"></script>
        <script type="text/javascript">
            $(document).ready(function () {
                alert('loaded');
                air.Introspector.logError("aaa");
                var v = new runtime.Utilities();
        </script>
    </head>
    <body>
    </body>
    </html>
    Then after I run application, I get error that result of expression is not constructor, function etc.
    Could you help me please?  Thanks in advance.
    Here is sample code:
    http://depositfiles.com/files/jztpnlb3a

    No. I mean that the Flex framework makes certain assumptions about the environment it is running in -- like having a stage to work with. The Alert function, for example, works by creating a sprite and adding it to the Flash display list. Since your embedded SWF is not on a stage, there's no way for it to work.
    You can can possibly use certain non-visual parts of the framework, such as the rpc package, but I can't guarantee it.

  • HTML-based AIR app with transparent UI, shadows, etc.?

    I'm debating on whether to use Flex or HTML/Ajax for a widget
    in a project. If I make an HTML-based widget, is it possible to
    have UI tricks like shadows and transparency, basically, NOT being
    confined to a standard OS "box" window? Is this possible?
    Thanks.

    Yes it is possible to do this with an HTML-based AIR app.
    However, since the visual elements will be HTML-elements, not
    display objects, you can't use the Flash APIs for shadows and
    transparency. Also, in a transparent window, SWF and PDF content in
    HTML cannot be displayed.

  • HTML based AIR app with transparent background (PNG)

    Hi guys,
    I have been developing a VERY simple HTML / JavaScript AIR app with Dreamweaver CS3 and Photoshop CS3.
    I have skinned the app with a simple transparent PNG file (Photoshop > Save for Web and Devices). I have set the PNG as the <body> background-image via CSS and the body background-color is undefined. I have also set the app to:
        <systemChrome>none</systemChrome>
        <transparent>true</transparent>
    My problem is that I get a white opaque background showing through behind / around the PNG.
    Q: Is it possible for HTML / JavaScript AIR apps to have transparent backgrounds (I have seen lots of info about how to do this in Flash / Flex but not HTML)?
    Q: What do I need to change or do to make it work?
    Many, many thanks,
    B

    Oops, sorry.
    I was using the BluePrint CSS Framework and it turns out that that was setting a background color.
    Please ignore this thread!

  • Can I run an html/javascript AIR app on Android or iOS?

    Is it possible to compile an already-existing HTML/javascript app to install/run it on any mobile OS (Android or iOS, in particular)? I haven't found anything that says it's possible, only instructions for doing it with a Flash/Flex based AIR app.
    I have a large html/javascript app, with a lot of value put into it, and my client would like to be able to package it for use on tablets. Ideally, I'd like to be able to not only have it run there, but also be able to "hide" the html/js code from prying eyes, if there's a way to do that.
    Thanks much in advance... I've done considerable research trying to get an answer to these questions.
    - Jack

    Hi Ross,
    the certificate used for APK files is a self-signed one so at this point, no need to use Google Console yet.
    See http://helpx.adobe.com/digital-publishing-suite/kb/publishing-process-android-amazon-mobil e.html (Create a certificate file using Keytool)
    Testing is only a matter of installing the APK file on the device where you should be able to test.
    The Android developer account will be useful for testing if you have in-app purchases matching 'retail' folios.

  • I can using AirPrint from safari and email to my hp printer but do not get print as an option from the pulldown menu from the new york times and other apps. How can I print directly from these apps?

    I can't seem to print directly from apps like the new York times. Print is not an option from the pulldown menu. Print to my hp printer works  fine from safari and email though and from some other apps. Do some apps not permit printing? That doesn't right.

    sadie1 wrote:
    Thats funny. If go to ny times on safari therebis a print icon and no problem printing. On the app -- and I am a paid subscriber -- no print option ...  
    You can ask the NY Times why not.
    Standard behavior is that Airprint always works with iBooks, Mail, Photos, and Safari.  Apps are up to their author.
    http://support.apple.com/kb/ht4356

  • Print wireless from Classic Apps

    I'm on 10.2.8, using Airport Extreme and want to print wirelessly from both OSX apps, as well as Classic apps. I can print from OSX apps with no problem and I can print to the printer when I'm connected to it directly via USB in both OSX apps and Classic apps. But when I hook the printer to the Airport base, I can only print from OSX apps. I read through the forum and saw where someone said you can not print Classic apps through Airport .. I know it's not compatible with 9.2, but I'm talking OSX, in Classic mode ... I know it can be done becuase I've had it working before without any problems. I had to switch printers for a short time, so I unhooked it from the Airport base for a period of time, but when I hooked it back up, now it won't work. I'm not sure if any settings have changed since I've done different auto updates ... but how can I check the settings? My printer is HP CP1700PS and the driver does not have a rendezvous option ... I just don't know how to get it to recognize the printer. Can anyone help? I'm not even sure how to tell what version of driver/firmware I have, although I thought I just updated this not too long ago. THANK YOU!
    PowerBook G4 Mac OS X (10.2.x)
    TiBook G4   Mac OS X (10.2.x)  

    It won't work with OS 9. Printing to a printer connected to a round AirPort Extreme base station (AEBS) requires Mac OS X v10.2.7.

  • ___Advice on how to print html from an applet___

    I have been working on this problem for a little while, but still can't find a good solution. I ask for any help/advice I can receive on this matter.
    Below is what I have already tried:
    1) Place the HTML within a JEditorPane and print the graphics object.
    * In order to do this I would have to display the HTML, which I do not want to do.
    * I have also tried placing the HTML within a JEditorPane and not display it, but I get no data from printing the graphics object.
    2) Print the View classes that contain the text by placing the html into a JEditorPane ex) JEditorPane.getUI().getRootView(jeditorPane).
    * This method is how the following article prints HTML: http://www.fawcette.com/javapro/2002_12/online/print_kgauthier_12_10_02/
    * This class prints each "leaf" view, which unfortunately will not print lists or table borders b/c they are contained in "branch" views. I have not been able to convert this class to print the branch views in a nice looking format.
    3) Use a DocFlavor of type "text/html" and send document to the printer.
    * Some printers can render html, but these are few and far between. Most printers I am dealing with do not accept type text/html.
    Below are some things I am thinking about trying:
    1) Convert the HTML to postscript and print the postscript.
    * I have no clue how to do this. I have searched the internet for code and found nothing but perl code (but I am using a java applet).
    2) Save the html file to users disk and open html file in new browser window. Then use javascript print function.
    * I really do not want to have to save files to the users disk just to print. This seems like the easiest way, but is also the least user-convient way.
    I would greatly appreciate any advice on printing HTML using java. Should I re-examine the methods I already tried? Can anyone give input on the methods I am planning to try? I would think this is a common problem, but I am having a hard time finding answers.
    Thanks for your interest and any help you can provide :)

    I tried the Java printing API in 1.4.2 but found it hopeless in terms of printing anything without using AWT.
    Also since the print service was going to be on Windows machine I used jawin (http://sf.net/projects/jawinproject/) to query the registry for the command to print a particular extension and then exec that command.

  • HTML/ Javascript Air App as Screensaver

    I am trying to find out how to use a Air app developed using HTML/ JS as a screensaver. All the information I have found has been in other dev platforms, ie flex or AS, and I am unable to translate it to what I am doing.
    Any help pointing me in the right direction as far as docs/ api's to read would be greatly appreciated.
    Thank you in advance for your help.

    There's no direct support for creating screensavers with AIR. (Now if you are talking about a fullscreen application, that is, of course possible -- look at the Stage displayState property in the ASLR: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Stage.htm l#displayState -- but that's not really a "screensaver" per se.)

  • Flash in HTML-based AIR app: Urls do not open

    Hy there
    Like the title states, I have a HTML-based AIR application, which embeds flash. This flash opens Links which should eventually open the default browser. For this I previously had to set the following property in my AIR application:
    window.htmlLoader.navigateInSystemBrowser = true;
    Like this the URL calls were forwarded to outside the application and then opened the webbrowser. We had successfully tested this on various systems.
    However, now there are users of our application, who report that on their system (Including WinXP Professional SP3!) the websites do not open at all. When clicking on a link inside the app nothing happens.
    Their system:
    Hardware: Lenovo IdeaPad S12
    Windows XP Home Edition v2002 Service pack 3
    IE 7 (Version 7.0.5730.13)
    Firefox 3.5.7
    I had a look at the system and things like switching the default browser or re-installing Firefox did not work. Unfortunately this is a critical issue and kinda urgent so any help would be greatly appreciated. Thanks very much.

    Thank you for reporting back and letting us know.
    Chris

  • Launch apple store from AIR app (IOS)

    Hi,
    How I could launch the apple store from my flex AIR app? I need the tipical "go to app store" button...
    Thanks!
    Jorge

    You can go to a particular app in the app sotre by using navigateToURL function with the URL of the app as parameter. Please check this post: http://forums.adobe.com/message/4309691 But not sure how to open only the app store.

  • Printing options from different apps

    I'd like to print a PDF on front/back of the same paper.  I can do this in preview, since it shows the manual duplex option.  But Preview scrambles some of the text.  The text prints fine from Adobe Reader but it doesn't display the duplex option.
    Any ideas of some other program I might be able to use that will correctly print a PDF and display the duplex option?

    Adobe Reader should be able to do it. I'm looking at Acrobat Pro and in the Print dialog you can click the Printer button at the bottom and you will get the OS X options for the printer, so if you saw duplexing for your printer in another app you should be able to find it there.
    If for some reason you cannot do that there may be an area called Pages to Print, and there you have options to print Odd or Even Pages. I use this to print duplex on printers that don't have the feature built in. First print the Odd pages, then feed the stack back into the printer and print the Even pages on the other side of the stack. Again, this is in Acrobat Pro but I am thinking it should be similar in Adobe Reader.
    Basically you should keep an open mind when looking for a print option. This is because print options in the Print dialog can be supplied by three different entities: The application, the printer driver, and the OS. They might name the feature differently and sometimes they override each other, or be hidden in sub-dialogs. If you cannot find a feature under the name you have assumed (e.g., "duplex") keep looking for it under another name.

  • How to launch PDF in Acrobat from AIR app?

    I'm porting an AS3 app to AIR -- one of the requirements is that an external PDF file be launched with Acrobat -
    I know that  AIR can display PDFs internally, but it's too late to change project specs. 
    I was using fscommand and a .bat file (this will be run on Windows), but that won't work under AIR.
    I am currently using navigateToURL() and using the AIR-resolved url -- this opens the PDF in a browser -- I'd like to have it open in Acrobat.
    Thanks for any help -- this is critical to finishing project.

    This won't work on files in the application directory?   It's not working for me --  The PDF is bundled into the AIR app --
    See http://stackoverflow.com/questions/4050898/openwithdefaultapplication-fails-on-files-in-ap plication-folder

  • Parental (style) controls over open browser from Air app

    Hi,
    I've been asked an interesting question for a brief.
    Say you've got an Air app running and you have a browser window open is there any way for the Air app to 'see' what URL you are on.
    It's an app to stop the use of fraudulent web sites, so it would check against a database of flagged fraudulent sites and pop up an alert when the site is used.
    Any ideas?
    Cheers
    Marvin.

    Only if a Flash program in the web page actively sent the URL to the AIR app. I suppose you could also use some kind of browser extension but at that point, why use a separate AIR application?

Maybe you are looking for

  • How to sum values from multiple lines in a DataTable?

    I have a Lookout program which uses a DataTable to allow users to write basic programs (relay on/off times, which relays change state, and pause times).  The DataTable cursor position changes to advance from one program stage to another.   What I wou

  • Purchasing display from HP/Dell/other

    I have been trying to research before purchasing two new widescreen displays for my MacPro. I believe that the apple displays have too many issues with them and are too expensive. I'd like to purchase something more affordable, but which will work we

  • Library filter: photo count missing on OS X Mavericks

    When using the library filter on metadata no numbers are shown anymore, even not after clicking restore default presets? How to resolve this? Thanks in advance Bob

  • ATOK is not working in Solaris 10 U5

    Hi, I have installed (using JumpStart server) Solaris 10 U5. Then I installed all Japanse, Chinese and French packages. But when I run Terminal ATOK (Japanese Imput Method) is not visible. Packages required for ATOK are installed as well: JSatsvr Jap

  • Error When Dismissing Many Dynamic Tabs

    Hi All, In the name of expanding knowledge, I bring another question.  We're using JDev/JHS 11.1.1.4 and our project is a migration from JHS 11.1.1.3.  This question relates to how JHeadStart deals with the open and close events associated with dynam