Flex :: Printing On OSX Pushes Image Off Page
Oct 18, 2009
My Flex 3 app prints pages just fine from browsers on Windows using FlexPrintJob (not the browser print function). However, on OSX, the left and top margins show up larger and the page gets pushed off the right and bottom. Basically, the scaling is screwed up, and I can't see any way to adjust the margins in code.Has anyone seen this discrepancy in Flex printing between Windows and OSX? Are there any known workarounds? I've searched all over and I can't find any good info on this (other than 12 unresolved printing bugs in the Adobe Jira DB)
PDF Generation is one route and while its a valid solution for some folks, I need to print directly. I'd like to see stuff like using regular Flash PrintJob, monkeypatches to FlexPrintJob, or just ways I can format my DisplayObjects before sending them to FlexPrintJob. None of the scaling options in FlexPrintJob work. My Flex Component is at 1.0 scale. I'm not sure what else I can do except for mess around with regular PrintJob.
View 1 Replies
Similar Posts:
Dec 23, 2011
When i use flexprintjob in Flex,it always popup a printing dialog which is printing driver.How can i skip this dialog and print directly?
View 1 Replies
Dec 1, 2009
I've got a document reader application that I'm trying to add a print option to, but I'm having real difficulties with PrintJobs.On my first attempt, I prepared all my pages in advance, then called PrintJob.start, followed by PrintJob.addPage for each page, then PrintJob. send to finish.On longer documents, however, this was falling foul of the script execution time limits.I could get 90-100 pages spooled before the runtime threw an exception and cut the print run short.On my second attempt, I prepared all my pages in advance again, then called PrintJob.start.I then tried using an event handler to call addPage for each page (first using the frame_enter event, then using a timer). However, calling PrintJob.addPage from an event handler like this caused an exception to be thrown.I've been tearing my hair out all afternoon trying to find a solution to this -- does anybody have any idea how I can get long PrintJobs to work?
View 1 Replies
Nov 19, 2010
I can only print the first page of my datagrid but not the next pages??
function printProducts(evt:MouseEvent):void{Dg_prods.rowCount = Dg_prods_Rowcount;Dg_prods.visible = false;
sheets=Dg_prods.numChildren;printContainer=new Sprite();addChild(printContainer);
[code].....
View 10 Replies
Jan 29, 2012
Is there any way to set header and footer of the page in as3 while printing.
View 3 Replies
Jul 6, 2004
i'd like to have a button in my flash movie that sends an html document directly to the printer instead of opening it in a new window first
View 1 Replies
Jul 6, 2004
I'd like to have a button in my flash movie that sends an html document directly to the printer instead of opening it in a new window first.
View 1 Replies
Oct 29, 2009
//I can get the right margins by defining a rectangle and giving it the following dimensions:
var rect1:Rectangle = new Rectangle(0, 0, 792,612);
//When the print button is pressed the following code executes using the dimensions defined by rect1:
prntCover_btn.addEventListener(MouseEvent.CLICK, printCover);
function printCover(evt:MouseEvent):void {
front_mc.visible = false;
[Code]....
This is not working to place the mc correctly on the page. This is all the Adobe help provides. Also Googled and tried different variations but no success.
View 1 Replies
Sep 18, 2011
I am printing a dynamic text from flash. Every thing works fine, But I get unwanted spaces/ small boxes at the end of every page. Using string functions I tried to remove the last character if it is a space.Even though I am getting this problem.
View 6 Replies
Sep 13, 2010
I'm trying to print an MC that is on screen with a dynamic text field in the MC - its printing just fine but the placement of one of the elements is off. Basically I have a dynamic text field centered on the stage, however when I print it, the text field moves to the very right on the printed page, while the rest of the contents of the MC stay centered. To clarify on the printed page I basically have this nice page with centered text, but the dynamic textfield is moved all the way to the right of the page.
View 1 Replies
Feb 18, 2010
I have one movie clip which is having extenally loaded png image. Now i want to print it.Its printing but showing one white box behind the image that means its not printing transparent image.My code is as follows:
Quote:
on(release)
{
[code].....
View 0 Replies
Jun 19, 2007
I have a sprite that has a scrollbar that uses the scrollrect feature. The sprite has several bitmaps and textfields. When I print the outer sprite (The one with the scrollrect) all of the textfields outside the scrollrect are cut after the first line. In case anyone else is having problems with printing sprites with scrollrects using the bitmap printing option fixes and prints most of the stuff in the sprite. Excluding all textfields outside of the scrollrect. This however can be fixed partially by embedding your fonts.
So now the only problem left is printing multiline textfields that are outside the scrollrect. P.S. Imho the scrollrect should have nothing to do with the printed area of the sprite because the printJob.addPage has a printarea parameter.
View 3 Replies
Jul 30, 2009
I have been working on product configurator with AS3 for several months now.I am not proficient with AS3.Now, it seems that maybe my design is all wrong.I
I have a main timeline that has movie clips showing images of different options for the product.On the first frame, I use buttons to select the choice for option 1 from the Option1_mc.Then I store the choice in a variable.I use a button to go to the next choice (frame 10.)
On frame 10, I use buttons to select the choice for option 2 from the Option2_mc.This is stored in another variable.
There are about 10 options that are selected and stored in variables.Some are text values and others are instances of images from the Option movie clips.
I made a Print_mc to use for printjob.I can't get the values of the variables to display in the first frame for printing.
View 5 Replies
Jun 6, 2011
I have problems understanding the way you can print from flash, reviewing the documentation I found the PrintJob Class nad I'm trying to make it work. It was easy with AS2, but now I can't get it to work, I need it for AS3.The issue is, I have a code generated chart, and want to print it, with some extra stuff, but to begin the chart would be fine.this is the printing code I have and an image of the stage. The commented code I've tried also, none of them working. I think that's because the way it's handling the chart, and the (maybe) Sprite the printJob is trying to add.
View 2 Replies
Jan 24, 2012
I'm currently working on this website (http:uel...) and I created a little gallery. When you press the image it becomes the background of the website. Now this has some problems if the background is white and you look at the other pages again, you can't read the text any more.I would like it to be when you go back to another page, the background changes to it's original one. So basically I'm looking for the page (component?) load event or something alike, but I can't seem to find it.
CreationCompleted doesn't work for this, because when you navigate to it the second time it's already created, this the background doesn't change.I'm setting the background like this:
Main page:
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" [code]....
I also have the problem that the images become stretched, because I can't set the fillmode NOR can I center them,
View 1 Replies
Oct 25, 2010
I am working on an Adobe AIR (2.0) application that contains a feature to allow users to print documents (such as salary slips). Those documents are originally in PDF format. Due to circumstances we cannot directly display those PDFs in the AIR application (for example using flash.html.HTMLLoader). Therefore we convert the PDFs to SWFs (using the pdf2swf tool, see The SWFs are loaded into the application using a mx.controls.SWFLoader, like so:
<mx:SWFLoader
id="salarySlipImage"
loaderContext="{someLoaderContext}"
[code].....
View 2 Replies
Mar 30, 2010
In s Flex 3 app, I have canvas with a PNG image for a background. The image is the same width & height as the canvas. I also have some other controls in the canvas:
[Code]...
View 1 Replies
Jun 12, 2010
where i developed an app that uses the webcam, adds an image and then takes a picture, well, i implemented textbook style the printjob, and well everytime after printing my swf goes blank. http:[url]...........But now i have been continuing testing, and i found out, that if i print from another application and then comeback, my video stream from the webcam is blank, this has no sense at all, since i am printing from another app. http:[url]....What is going on here i mean, this must be a flash player issue right.
View 1 Replies
Jun 2, 2011
I want to have a different image load on my home page everytime the page refreshes or someone visits it. Is it possible to do it without using Flash?
View 2 Replies
Dec 26, 2009
I am building my website in adobe flex(i am n00b). I have some photographs which I would like to make sure that people cannot print.
I do understand that it is not possible to completely stop users from printing. But atleast disable the context menu or just the print option and the copy option.
View 2 Replies
Jul 20, 2010
I have pre-existing PDF files which I would like to send to a PrintJob in Flex 3. I can load the files fine with UrlRequest, but I need to somehow get the data into a Sprite to be included into a PrintJob.
View 1 Replies
May 12, 2011
I have a requirement to print a bill from the AIR application.
Following are the constraints.
I need to print to a DotMatrix Printer. I have a complex layout with header, footer and a datagrid with data rolling out to more that one page. I need to have a template to which I will be passing my object.The suffice with the usage of Jasper reports, but I have no server side support.I tried the FlexReport, bentbit and other tools which is optimized for the DotMatrix printers.
Is there a alternative to get the above requirements done. Is there any alternative similar to that of jasper reports without going for a server.
View 2 Replies
Dec 28, 2011
We have a requirement of customizing some images (adding some text to images) using a flex app or jquery for printing this. Once the customization is done, it has to save the output image in 300 dpi for ensuring high quality for printing. We are stuck here and not sure how to save this image in 300 dpi. We can make sure that the source image uploaded for customization is in 300 dpi. But after the customization, we have to save the image in 300 dpi also.
View 3 Replies
Aug 3, 2009
I am getting the the output in Flex from PHP as...
appSes = new ArrayCollection (ArrayUtil.toArray(event.result));
I need the value to be stored in textInput...
<mx:TextInput id="keyword" styleName="glass" width="100%"/>
How to ??
View 2 Replies
Jun 11, 2010
ok back at another issues in as3 printing
[Code]...
When i click cancel on the print dialog box, i get error below and it blanks out my swf. The error consists, that whenever i try to print and cancel it, or even when i do succesfully print, swf goes blank.
View 1 Replies
Aug 13, 2010
There's a lot of examples for ActionScript over the web using trace() to print results. I'd tried it using Flash Builder 4, but it don't print to the console. Where can I see the output?
View 4 Replies
Feb 28, 2011
I am currently working on an Adobe AIR application that shows the user some graphical data. As this data is more in height to fit the screen height, I've placed it inside a scroller.
Now I want to take a print of this visual data, mostly some charts and lists but I only see a single page containing only the part of the screen that is currently visible to the user. I want to have the entire content inside the scroller to appear on the page.
View 1 Replies
Sep 1, 2011
I'm printing from flex, and since I want to customise the jobs such as with margins and a title, I created a UI Component PrintTemplate. I add my stuff to the PrintTemplate and then I print it.So the code is something like:
printTemplate.addElement(diagram);
addElement(printTemplate);
if (printJob.start()) {
[code].....
View 1 Replies
Dec 27, 2011
I want to call the Flex printing API to set the print arguments before sending printing command.But there is no method in Flex(FlexPrintJob or PrintJob) to set the printing orientation.Are there some methods to solve this problem?My project is running in B/S structure and the view layer is in Flex.
View 1 Replies
Feb 22, 2011
I am retrieving the details from the database and printing them in the XML format. It's working pretty good and can even display the same XML format in the Flex. However, I am not sure, how to save this XML file to give it as a data provider for datagrid.
Here is my JSP code :
<%
ps1 = conn.prepareStatement("select file from file where status='P'");
rs1=ps1.executeQuery();
[Code]....
I am using the following thing to get the details
event.result.body.people.toXMLString();
View 1 Replies