Print complete document from stagewebview

I have a air application that shows in a stagewebview a facebook app.
In that facebook app you have to fill in a form.
Under the form there is a print button (that won't work)
So I wrote my own print button.
But the problem is that I have to convert the viewport of the stagewebview to a bitmap
and then print the bitmap to pdf or my printer.
But he always just take the part that is shown on my stage.
But I have to print the whole document that is in the stagewebview...
Can anybody help me?
Here is my code to convert to bitmap and the print...
var bitmapData:BitmapData = new BitmapData(iBreedte,iHoogte);
  webView.location;
  webView.drawViewPortToBitmapData(bitmapData);
  var webViewBitmap:Bitmap = new Bitmap(bitmapData);
  var myPrintJob:PrintJob = new PrintJob();
  var options:PrintJobOptions = new PrintJobOptions();
  options.printAsBitmap = true;
  myPrintJob.start();
  var s:Sprite = new Sprite();
  s.height = iHoogte;
  s.width = iBreedte;
  s.addChild(webViewBitmap);
  s.scaleX = .40;
  s.scaleY = .40;
  myPrintJob.addPage(s, null, options);
myPrintJob.send();

PDL -- thank you for your reply.
What you gave me did spawn the print dialog allowing me to select a printer. However, when the document printed, the number of pages in the document was correct but the pages were empty except for the page x of y along the top and the name of the document along the bottom. Have you seen this before and do you know how to correct? Also, how do you suppress the info across the top and bottom of the report from printing?
Thanks

Similar Messages

  • Why can't I print a document from iphone5 to hp wireless printer?

    Why can't I print a document from iphone5 to hp wireless printer?

    Try the following steps.
    Power off the printer.
    Reset the phone by holding the sleep/wake and home buttons together until you see the Apple logo and then release. The phone will reboot.
    Power cycle your router. Disconnect it from power for about 30 seconds and then power it back on.
    Once it has completed the reboot, then power the printer back on and make sure it connects to the wi-fi network
    Open the content on the phone that you want to print and attempt printing it again.
    If that does not do it, then check to see if there is any newer firmware for the printer from HP.

  • How can I print a document from "workspace?"

    How can I print a document from "workspace?"

    1. Buy a AirPrint enabled printer; see list below
    http://support.apple.com/kb/ht4356
    2. Run the CD provided and setup as network printer; this will setup your printer to the same network as your iPad
    http://i1224.photobucket.com/albums/ee374/Diavonex/1a30ee42.jpg
    3. Start printing from your iPad without wire
    http://i1224.photobucket.com/albums/ee374/Diavonex/93ec77e5.jpg

  • Firefox is crahsing whenever I try to print a document from web or email. I run Window XP and firefox version is 3.6.12

    this has happened and reported 22 times since jan 2010. It may have probably started since I updated firefox in Jan 2010. The printer is a Canon LBP180 which prints all documents from any other software.

    http://crash-stats.mozilla.com/report/index/7fd505df-96eb-4d92-9477-9ce432101118
    Looks like a problem with CAPRENN.DLL. <br />
    http://www.processlist.com/info/caprenn.html
    See if you have the latest Cannon print drivers installed.

  • How to script to Print a document from SAP Business One SDK

    I have created a project using UDO, Form and User table using B1DE2005.
    I wonder how can i program to print a document from my screen. something like Sales Order, where user can click on Print Preview button and it will print the sales order confirmation preview..
    KC

    Where do you want to execute this print/print preview?  Inside Sales Order?
    If that is the case use the print event, now if you have your own form and is separate of any of the SAP B1 system forms, then you will have to use the menu event and evaluate when they have press the print button (which you also probably will have to make sure that is active).
    WB

  • How do I print a document from my win 8.1 computer via my home network thru my win 7 computer?

    I am trying to print a document from my win 8.1 computer via my home network thru my win 7 computer which has the Deskjet 3054A All-in-one printer connected to it.  I can see the printer from my win 8.1 computer and when I send a print command I see the document in the printer que but it does not print.  I have not installed the printer drivers on my win 8.1 computer.  Do I need to do this?

    Hi GeneLund,
    I understand you have a Deskjet 3054A printer and are currently unable to print to it from your Windows 8.1 computer. I will certainly do my best to assist you with this.
    I just need to ask a few questions to start.
    1. Is your printer setup to print wirelessly from your Windows 7 computer?
    2. Are you able to print successfully from the Windows 7 computer?
    You definitely want to install the drivers for your Deskjet onto your Windows 8.1 computer, and you can do so by going to HP's website (just click the blue Next button and then download the option under Driver - Product Installation Software) and downloading the drivers. If you're printer is on the wireless network you should have no issues, if it's not on the network yet though that needs to be done first and it is done through the software.
    Hope this helps, have a great day!
    Please click “Accept as Solution ” if you feel my post resolved your issue, as it will help others find the solution faster
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    **MissTeriLynn**
    I work on behalf of HP

  • I can't print my document from Pages...the Print Button is down behind the Dock...and I can't click it to Print....healp!

    I can't print my document from Pages...since the Print Button is lodged behind the Dock...What do I do?

    Hi Judith,
    Your Print button should be accessible, of course, but sometimes we can do things to confuse the system and we have to take some action to get out of that situation. This case sometimes arises if we change the resolution of our screen display since opening the app, or if we change the position of something that is set to "stay on top" of the display.
    If the Dock is the problem right now, you could Hide it or Move it to a different edge of the display, to get it out of the way. Settings are in System Preferences, Personal, Dock. I usually have my Dock set to automatically Hide itself, so it's never in the way.
    You could also try Saving, Closing and reopening Pages and see if that resets the location of the Print Dialog. Or, you could  just hit Return rather than clicking on the button.
    Jerry

  • When printing a document from a website found in a 4.0 Beta 12 Firefox search I get a print format were the text letters are 1/4th inches apart.

    When printing a document from a website found in a 4.0 Beta 12 Firefox search I get a print format were the text letters are 1/4th inches apart. It happens when I use the website's print symbol to reduce the page to a printable size. If I use the window print commands I get all the page with advertising etal
    but it is spaced fine.

    View this thread for the answer.
    https://support.mozilla.com/en-US/questions/787654#answer-141639

  • Trying to print a document from Pages, when I go to print it won't let me select the document.  It is grey and I can't click it.  What should I do?

    Trying to print a document from Pages, when I go to print it won't let me select the document.  It is grey and I can't click it.  What should I do?

    I'm not clear on how you're trying to print. When you select Print from the file menu in Pages the current document is already selected. Perhaps you need to show the details in the print dialog. The first screenshot is from Mountain Lion the second from an earlier OS where you click the blue down-facing triangle button (sorry, I can't remember which one).

  • Print DMS Document from SAPscript

    Hi
    I have a requirement when a user prints Bill of Lading document i need to print a document (stored in the document management) that is linked to a customer or material master.. Can you please explain me how to archive printing documents stored in DMS from sapscript.
    I really appreciate for all the help.
    thanks,
    Hemanth

    hi
    i can't tell how to get the DMS data but if want to print the DMS data... u can do it by using print program... after successfull completion of printing of bill of material.. u have to write code in the program... in the retrive data related to DMS then prepare the ouput format for DMS( ex report or forms)..the issue it to print... by ur program.
    as mentioned above u can print the DMS data without intervention of the user... because everythig is done by u r program..
    I hope this Logic will helps u.. try in this way.

  • Why can't I print a document from a website using Adobe reader?

    Adobe has been bugging me to update to latest version, so I finally did (got so sick of it popping up all the time on my screen).  Now that I have, I can't print out anything off a website.  It keeps saying, "Document cannot be printed" or something like that - and then it tells me that no document is selected, yet it clearly is selected.  Anyone know what's going on?

    What is your operating system & version?
    What is your web browser?
    What is your Adobe Reader version?
    How do you print - from the browser's print function, or from the Reader toolbar?

  • Unable to print a document from my laptop.

    I have a HP laptop and am running Windows 7. I have printed off this laptop many times in the past. Occasionally we have had problems with communication but it has been easily resolved. This week however, I can print from my desktop, my phone but not the laptop. I have the HP Print and Scan doctor software and run all the updates, IP etc. Still when I try to print a document, up comes "Unable To Communicate" window. What is so odd about this and has a lot of us baffled, is that I can open up the HP Deskjet 3250 series software and ask it to print an alignment page or diagnostic page and it will print from the kitchen, on the laptop and in color.Please advise me, on how I can cure this problem. It shows I have all the updates.Thank you in advance.

    annsken wrote:
    Tried the Uninstaller and reinstall today and I can still print diagnostic sheets but no documents. Gave up after a couple of hours.What software are you using to send to the printer? This seems more of a issue with whatever software your using that doesn't recognize the printer is now installed. Did you check your program that is printing the Document to see if it had the right printer selected? Cause if there was a problem you woudn't be able to do the test print.

  • Why does my Acrobat Pro 9 PDF print driver either lock up or become confused as to where it should store a file when printing a document from within the Firefox browser?

    I use Adobe Acrobat Pro 9.4.5 for creating .pdf files on a Windows XP SP3 platform. Firefox 6.0.2 is my browser of choice. This question only applies to the .pdf printing process. All other printer drivers work fine with this version of Firefox.
    In attempt to save paper, I choose to print most documents in an electronic .pdf format using the PDF print driver and save them to my USB drive. Before upgrading my Firefox version to 6.0.2 this process seemed to work fine but after upgrading the .pdf print process seems to be experiencing problems. This particular printing process will cause Firefox to lock up when the distiller tries to print the file to what I believe is a temporary folder under the Adobe folder. When it does this I am sometimes able to force it to complete the process but frequently it will only produce a log not a .pdf file. On other occasions the distiller will just lock up mid print without producing any kind of error message. In both cases I will frequently have to use Windows Task Manager to break out of the process which then shuts down the Firefox browser. I don't seem to have any problems when I use Internet Explorer to perform the same function. As far as I am aware I am running the most current drivers as Adobe automatically pushes down updates to me as they become available. Any ideas how I can overcome this issue or is it inherent to the new version of Firefox?

    The PDF file itself does not control the "print as image" preference, which should always be turned OFF unless there's a specific need to rasterize the entire page, and is turned off by default in all Acrobat and Adobe Reader installations.
    What's the filetype for the ultralight font and what export setting* are you using in ID? If you're exporting to earlier than PDF1.7, OpenType fonts will be converted and may experience some small changes in shape if their hint definitions aren't done right.
    *As a side note, bear in mind that InDesign does not use any part of Acrobat when exporting PDFs, so questions specific to that stage in the process should be posted to the InDesign forums.

  • Printing a document from firefox web page or Microsoft Word doc ument used to work just fine. All of a sudden I was unable to print a Word document. I can still print a web page. Any suggestions?

    I have a document from Microsoft Word that will not print. It's as if the printer is not connected when I attempt with the Word document. I have gone in and deleted any pending documents in Microsoft Word. I have restarted computer, as well as the printer. The printer does not seem to be connecting or responding to the Word program (cannot find spooler) Any suggestions?

    I have a problem similar to those posted here, with one difference. With my printers newly installed, regardless of which one is selected as the default, when I try to print from Adobe Reader I receive the error message we're talking about : "Before you can perform a print related task...."
    Here's the fun part.
    If I click OK on the message, ALL MY PRINTERS GET DELETED and, I get the windows message that "Spooler subsystem app has encountered a problem and needs to close"! If instead of clicking OK I switch to Task Manager and end Adobe, I'm fine and can print from other programs.
    I can "reset" the problem by deleting the files in C:\Windows\System32\Spool\Printers and C:\Windows\System32\Spool\Drivers\w32x86, restarting the machine, and deleting then reinstalling the printers (which show up again after the restart).
    BUT, if I try to print from Adobe Reader again, I get the same cycle of problems.
    I am running Windows Vista and Adobe Reader 8.1

  • I imported a photo from my email to my iphoto but now my HP printer is printing my documents from the photo cartridge.  How do I get my printer to print using the regular black cartrigde.

    I imported a photo from my email to my iphoto. I  am on a Mac OSX version 10.6.8.  But now my HP printer 7510 is printing my documents with the photo cartridge rather than the regular black cartridge.  How do I correct this.

    Seems like an odd question for an iPhoto forum and more one for an HP forum.

Maybe you are looking for

  • 8830 & Desktop Manager does not recognize Outlook Express 2000, cannot sync

    I just installed Desktop Manager 5.0 and connected to my BB 8830.  I use Outlook Express 2000 for calendar and I want to sync it with my BB 8330.  However, in Desktop Manager under Sync / Config / Select Device for calendar, the only choices are Yaho

  • Logical Standby to Physical Standby

    Hi Group, Please clarify. Is it possible to return from a Logical Standby to Physical standby without copying the datafiles from Primary enviroment again?. If yes, how? Thanks a lot. Oracle 10.2.0.4 SO: AIX 6.1 We also have all archives generated by

  • How to stay in full screen mode?

    Every time i play a movie in full screen mode it goes back to normal size when it finishes. How can i keep the last frame in full screen mode?

  • Delivery date mandatory and not defulted current date

    Hi all,   I want to make the delivery date mandatory in the purchase Requisition and currently the current date is defaulted there , i want that nothing should be there initially. Please provide the configuration setting. Regards, Kapil.

  • Pricing routine error in code

    hello all.. can u check this code? this is a routine for calculating condition value. the error is at itab-matnr = xvbap-matnr " material no. i m trying to catch material no while creating sales order, depending on that i get the gold weight, which i