[flexcoders] Re: Printing in Flex...
--- In flexcoders@yahoogroups.com, Laurence lmacne...@... wrote: 1) Is there any way to control what printer a print job goes to? Or will it always go to the default printer? 2) Is there any way to configure it so that the browser's Print window doesn't come up? You know the one where you get to choose which printer you want to print to, and have to click OK to get it to print. Thanks for any info you can provide, Laurence MacNeill Mableton, Georgia, USA Bump.
Re: [flexcoders] Re: Printing in Flex...
It goes to whatever printer the user chooses in the print dialog that you can’t prevent from coming up. Big changes to printing due in a year or two. On 2/27/10 12:10 PM, Laurence lmacne...@comcast.net wrote: --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Laurence lmacne...@... wrote: 1) Is there any way to control what printer a print job goes to? Or will it always go to the default printer? 2) Is there any way to configure it so that the browser's Print window doesn't come up? You know the one where you get to choose which printer you want to print to, and have to click OK to get it to print. Thanks for any info you can provide, Laurence MacNeill Mableton, Georgia, USA Bump. -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [Spam] [flexcoders] Re: printing off the Adobe Flex References?
OK, thanks... I guess readin through the others will take me so long we'll be on v4 or 5 :) 2009/9/9 valdhor valdhorli...@embarqmail.com Not that I've found. Although, it's a moving target (3.0 - 3.4 so far) so it's probably better left as HTML. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Nick Middleweek n...@... wrote: I've got these PDF's... http://www.adobe.com/support/documentation/en/flex/ But is there a good way to print off the language reference? Thanks, Nick
[flexcoders] Re: printing off the Adobe Flex References?
Not that I've found. Although, it's a moving target (3.0 - 3.4 so far) so it's probably better left as HTML. --- In flexcoders@yahoogroups.com, Nick Middleweek n...@... wrote: I've got these PDF's... http://www.adobe.com/support/documentation/en/flex/ But is there a good way to print off the language reference? Thanks, Nick
[flexcoders] Re: Printing PDF417 barcodes in Flex...
Here you have it http://bumpslide.com/blog/tag/flex/ --- In flexcoders@yahoogroups.com, Laurence MacNeill lmacne...@... wrote: Has anybody here ever tried to print PDF417 barcodes in Flex? It's far more than a simple embed-the-font kind of thing, as you need a proper encoder to encode the data before printing it in the PDF417 font. I can buy the font, no problem. But the encoder is what's getting me -- closest encoder I can buy is a Java Servlet, and I have no idea if/how that can be integrated into a Flex app. Does anyone know if that's possible? Of course, the best solution would be the source code for a proper encoder in ActionScript, I suppose. Does anyone have that? Or know where I can get it? Thanks, Laurence MacNeill Mableton, Georgia, USA
Re: [flexcoders] Re: Printing PDF417 barcodes in Flex...
Thanks! That's perfect! Laurence MacNeill Mableton, Georgia, USA At 05:30 AM 5/20/2009, you wrote: Here you have it http://bumpslide.com/blog/tag/flex/http://bumpslide.com/blog/tag/flex/ --- In mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com, Laurence MacNeill lmacne...@... wrote: Has anybody here ever tried to print PDF417 barcodes in Flex? It's far more than a simple embed-the-font kind of thing, as you need a proper encoder to encode the data before printing it in the PDF417 font. I can buy the font, no problem. But the encoder is what's getting me -- closest encoder I can buy is a Java Servlet, and I have no idea if/how that can be integrated into a Flex app. Does anyone know if that's possible? Of course, the best solution would be the source code for a proper encoder in ActionScript, I suppose. Does anyone have that? Or know where I can get it? Thanks, Laurence MacNeill Mableton, Georgia, USA No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.35/2124 - Release Date: 05/20/09 06:22:00
[flexcoders] Re: Printing Images with printJob.addObject
You can do printing with dynamic images, you just have to wait until the images are loaded before adding them to the printjob. Listen for the Event.COMPLETE event to know when the images are loaded. I am doing it and it works fine. --- In flexcoders@yahoogroups.com, bnuenemann bened...@... wrote: Thanks for this, but the images are embedded. In my sample i use the same image (and same path). I can see the images, if i don´t remove the child. But the images disappear at printing. Do you have working code with embedded images? --- In flexcoders@yahoogroups.com, nathanpdaniel ndaniel@ wrote: Using the PrintView component, you have to embed images for them to show up. I also asked the same question, but no one has ever come up with a good solution. So it works fine if you have static images, but trying to load them dynamically will never work with what's available now! :D Hope this helps! --- In flexcoders@yahoogroups.com, bnuenemann benedikt@ wrote: here my problem: File: printimage.mxml --- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.core.*; import mx.printing.*; public function doPrint():void { var printJob:FlexPrintJob = new FlexPrintJob(); if (printJob.start()) { var thePrintView:PrintView = new PrintView(); addChild(thePrintView); printJob.addObject(printcontainer); // works fine printJob.addObject(thePrintView); //will show second page without images removeChild(thePrintView); } printJob.send(); } } mx:Canvas backgroundColor=#ff id=printcontainer width=100 height=100 mx:Image width=100 height=100 source=myimage.png/ /mx:Canvas mx:Button label=Print click=doPrint() / /mx:VBox /mx:Application File: PrintView.mxml --- ?xml version=1.0? mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; backgroundColor=#ff height=650 width=550 paddingTop=50 paddingBottom=50 paddingLeft=50 mx:VBox width=500 mx:Image width=100 height=100 source=myimage.png/ /mx:VBox /mx:VBox If i add the image without the printview-template the images (jpg, gif, png) are visible, but with the PrintView it will show only white space on the print-output. Any suggestions?
[flexcoders] Re: Printing Problems
Hi, I'm on Vista - but I believe there can be a problem on the macs if you don't set your control.width = pj.width and control.height = pj.height when sending to the printJob that will churn out an extra page. Printing in Landscape withour user intervention can be difficult to scale. I have a sample AIR Application on my Blog that demonstrates printing in Flex AIR http://thorntononflex.blogspot.com/ http://thorntononflex.blogspot.com/ Hope this helps --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: I'm surprised you aren't getting an error or warning in the console. I think the use of callLater doesn't work during a printjob and the job might eventually timeout (see Flash Player's printing classes for timeout limits). Usually, all external data needs to be pre-loaded and the whole print page needs to have some validateNow call and send() right in the loop. You can't put things off. It is actually a bug in FP that you can't defer work. I'm hoping they'll fix it someday, but it didn't make FP10. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of donvoltz Sent: Saturday, August 30, 2008 8:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Printing Problems Would anyone be able to tell me why the following code creates a blank page. I am using Flex 3 on Mac OS 10.5 I am able to add the custom printing compoent to the application, the print dialog opens and it looks to be processing the print, however, I am left with 2 blank pages when it is done. In addition, it crashes Firefox when the print job is complete. I have added some of the ideas presented in this group, however, can not seem to find any additional information on the web about this problem. Has anyone overcome the issue. The function I am using to print is as follows private function printDailyManpowerList(event:MouseEvent):void { var printJob:FlexPrintJob = new FlexPrintJob(); //create flex print job if (printJob.start() != true){ return; } var dailyPrint:DailyManpowerListPrintView = new DailyManpowerListPrintView(); //create new print component this.parentApplication.addChild(dailyPrint); printJob.addObject(dailyPrint); callLater(printJob.send); //start print this.parentApplication.removeChild(dailyPrint);//remove component from container } The code for the DailyManpowerListPrintView is ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:views=com.dynamicmedicalventures.De2ORApplication.views.* backgroundColor=#FF width=500 height=900 mx:Script ![CDATA[ import com.dynamicmedicalventures.De2ORApplication.vo.CoordinatorMessageVO; import com.dynamicmedicalventures.De2ORApplication.model.AppModelLocator; import com.dynamicmedicalventures.De2ORApplication.factories.UtilityFunctions; import mx.events.CloseEvent; import mx.managers.PopUpManager; [Bindable] private var modelLocator:AppModelLocator = AppModelLocator.getInstance(); [Bindable] public var messageDetails:CoordinatorMessageVO; ]] /mx:Script mx:Label id=printTitle text=Daily Manpower List for {UtilityFunctions.formatDateDisplay(modelLocator.selectedDate)}/ views:UserListPrint id=dailyUsers initialUserList={modelLocator.dailyUserList} width=100% height=50% / /mx:VBox Thanks for any help Don
[flexcoders] Re: Printing full page w/ no margins
Josh, what is the length width of the page in pixels you are printing on? For A4 it should be 820x580 px. PS It sounds for me as you printer uses Letter size while printing on A4. Cheers, Dmitri. http://mitek17.wordpress.com --- In flexcoders@yahoogroups.com, Josh Millstein [EMAIL PROTECTED] wrote: I have tried changing margins, even changed printers and I can still not print anything in the bottom 10th or right 10th of the page. I¹ve changed scale-modes and width, heights, percent donkeys Everything I can think of. If I print an image out that is too big for one page and do scaleMode = None then the right and bottom 10th of the page are white and it crops the image there only to continue in on the next two pages. WTF On 6/16/08 8:54 AM, Josh Millstein [EMAIL PROTECTED] wrote: Thanks for the advice, I¹ll check out what my margins are set on in the driver although I still think it would be weird that my margins are 0,0 for top and left, and 100 px 100 px for right and bottom especially because anything else I print off (from another program) has evenly spaced margins. On 6/16/08 4:52 AM, Dmitri Girski [EMAIL PROTECTED] wrote: I think that these are the settings of your printer driver. I am printing with margins 5-10 pixels, but I set the margings to 0 in the Distiller printer drivers. Cheers, Dmitri. http://mitek17.wordpress.com --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Josh Millstein wolf@ wrote: Does anybody know why I can't get anything to print in the bottom or right margins of my flexPrintJob? When I preview (and print) any components they end up begin flush with the upper and left sides of the paper with a significant margin on the bottom and right margins. The only think I can do to get the print job to look okay is to pad the top and left equally to what the bottom and right margins are already at, but that really shrink the printable area down. Here is a very basic example of my problem , http://www.wolffebrothers.com/printProblem.jpg -- wolf@ 785-832-9154 -- [EMAIL PROTECTED] 785-832-9154
Re: [flexcoders] Re: Printing full page w/ no margins
I have tried changing margins, even changed printers and I can still not print anything in the bottom 10th or right 10th of the page. I¹ve changed scale-modes and width, heights, percent donkeys Everything I can think of. If I print an image out that is too big for one page and do scaleMode = None then the right and bottom 10th of the page are white and it crops the image there only to continue in on the next two pages. WTF On 6/16/08 8:54 AM, Josh Millstein [EMAIL PROTECTED] wrote: Thanks for the advice, I¹ll check out what my margins are set on in the driver although I still think it would be weird that my margins are 0,0 for top and left, and 100 px 100 px for right and bottom especially because anything else I print off (from another program) has evenly spaced margins. On 6/16/08 4:52 AM, Dmitri Girski [EMAIL PROTECTED] wrote: I think that these are the settings of your printer driver. I am printing with margins 5-10 pixels, but I set the margings to 0 in the Distiller printer drivers. Cheers, Dmitri. http://mitek17.wordpress.com --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Josh Millstein [EMAIL PROTECTED] wrote: Does anybody know why I can't get anything to print in the bottom or right margins of my flexPrintJob? When I preview (and print) any components they end up begin flush with the upper and left sides of the paper with a significant margin on the bottom and right margins. The only think I can do to get the print job to look okay is to pad the top and left equally to what the bottom and right margins are already at, but that really shrink the printable area down. Here is a very basic example of my problem , http://www.wolffebrothers.com/printProblem.jpg -- [EMAIL PROTECTED] 785-832-9154 -- [EMAIL PROTECTED] 785-832-9154
[flexcoders] Re: Printing full page w/ no margins
I think that these are the settings of your printer driver. I am printing with margins 5-10 pixels, but I set the margings to 0 in the Distiller printer drivers. Cheers, Dmitri. http://mitek17.wordpress.com --- In flexcoders@yahoogroups.com, Josh Millstein [EMAIL PROTECTED] wrote: Does anybody know why I can't get anything to print in the bottom or right margins of my flexPrintJob? When I preview (and print) any components they end up begin flush with the upper and left sides of the paper with a significant margin on the bottom and right margins. The only think I can do to get the print job to look okay is to pad the top and left equally to what the bottom and right margins are already at, but that really shrink the printable area down. Here is a very basic example of my problem , http://www.wolffebrothers.com/printProblem.jpg -- [EMAIL PROTECTED] 785-832-9154
Re: [flexcoders] Re: Printing full page w/ no margins
Thanks for the advice, I¹ll check out what my margins are set on in the driver although I still think it would be weird that my margins are 0,0 for top and left, and 100 px 100 px for right and bottom especially because anything else I print off (from another program) has evenly spaced margins. On 6/16/08 4:52 AM, Dmitri Girski [EMAIL PROTECTED] wrote: I think that these are the settings of your printer driver. I am printing with margins 5-10 pixels, but I set the margings to 0 in the Distiller printer drivers. Cheers, Dmitri. http://mitek17.wordpress.com --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Josh Millstein [EMAIL PROTECTED] wrote: Does anybody know why I can't get anything to print in the bottom or right margins of my flexPrintJob? When I preview (and print) any components they end up begin flush with the upper and left sides of the paper with a significant margin on the bottom and right margins. The only think I can do to get the print job to look okay is to pad the top and left equally to what the bottom and right margins are already at, but that really shrink the printable area down. Here is a very basic example of my problem , http://www.wolffebrothers.com/printProblem.jpg -- [EMAIL PROTECTED] 785-832-9154 -- [EMAIL PROTECTED] 785-832-9154
Re: Requests/Votes re Printing, PDF, MARS (was RE: [flexcoders] Re: Flex Feedback for the Future)
On Wednesday 13 Feb 2008, David Mendels wrote: PrintJob, sumbit and vote for those directly, don't use the MARS ER as a proxy. Make sense? OK sure, though this is going to lead to a bit of fracture, of course. Does anyone know of a 'client side PDF templating' issue already before I create one ? -- Tom Chiverton Helping to paradigmatically cluster market-driven patterns on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: Requests/Votes re Printing, PDF, MARS (was RE: [flexcoders] Re: Flex Feedback for the Future)
Well, when I initially filed that ER in the bugbase, my intention was not merely that of wanting client-side PDF generation. My desire was to have the ability to create, and display those documents within a Flash application, without needing to have the Acrobat Reader installed. I love the AIR platform (which to my understanding still requires the Acrobat Reader to be installed to work with PDF), but I'd like to be able to work with documents like this in a web-based application as well. Think of it as the next generation of FlashPaper (which I loved and am saddened to see all but killed). On Thu, Feb 14, 2008 at 3:21 AM, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 13 Feb 2008, David Mendels wrote: PrintJob, sumbit and vote for those directly, don't use the MARS ER as a proxy. Make sense? OK sure, though this is going to lead to a bit of fracture, of course. Does anyone know of a 'client side PDF templating' issue already before I create one ? -- Tom Chiverton Helping to paradigmatically cluster market-driven patterns on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
Re: Requests/Votes re Printing, PDF, MARS (was RE: [flexcoders] Re: Flex Feedback for the Future)
- Original Message - From: Nick Collins To: flexcoders@yahoogroups.com Sent: Thursday, February 14, 2008 1:06 PM Subject: Re: Requests/Votes re Printing, PDF, MARS (was RE: [flexcoders] Re: Flex Feedback for the Future) Well, when I initially filed that ER in the bugbase, my intention was not merely that of wanting client-side PDF generation. My desire was to have the ability to create, and display those documents within a Flash application, without needing to have the Acrobat Reader installed. I love the AIR platform (which to my understanding still requires the Acrobat Reader to be installed to work with PDF), but I'd like to be able to work with documents like this in a web-based application as well. Think of it as the next generation of FlashPaper (which I loved and am saddened to see all but killed). A lot of the projects I'm looking at have a need for good quality printing and PDF generation is a good solution for this. For Flex/AIR, I don't see that the need to have the PDF reader installed as a problem, since like the flash player it's a one-off download and most people already have it anyway. PDF solves three things - provides a 'print preview' and printing capabilities via the reader, plus an option to archive the print-ready document. Flash paper has kinda passed me by. Paul On Thu, Feb 14, 2008 at 3:21 AM, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 13 Feb 2008, David Mendels wrote: PrintJob, sumbit and vote for those directly, don't use the MARS ER as a proxy. Make sense? OK sure, though this is going to lead to a bit of fracture, of course. Does anyone know of a 'client side PDF templating' issue already before I create one ? -- Tom Chiverton Helping to paradigmatically cluster market-driven patterns on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links http://groups.yahoo.com/group/flexcoders/
Re: Requests/Votes re Printing, PDF, MARS (was RE: [flexcoders] Re: Flex Feedback for the Future)
David, Group, Essentially we have 2 issues here - Printing and client side PDF generation. 1. As far as sufficient printing API needed for Internet applications goes, I believe we need at least the APIs we implemented for IE 7 years ago - http://www.htmlprinting.com. We are willing to contribute the code to the Adobe player's codebase. At minimum we would need page size control and ability to print asynchronously. I would gladly discuss the features needed in depth, but as of now due to the limited printing capabilities of Flash Player most of our business quality printing had to be diverted to client side PDF generation. 2. Client-side PDF generation with XML is possible now as long as it is going to be viewed in Adobe 8 or better. Details of the approach were published in Farata blog (flexblog.faratasystems.com) a while ago. In short, to achieve that we had to supplement our controls library with special APIs that render content of each control as XML - sometimes producing text (thus enabling text search within the document), sometimes making images of fragments ( making document look good). Hopefully MARS will fill the gap by providing better set of controls/styling over current XDP set. In either case in order for Flex framework to be usable for masses Adobe should add: a. Generic interface for XML PDF representation for each UIComponent and Container b. Implementation in the base classes c. Printing templates that utilize that interface. Sincerely, Anatole Tartakovsky Farata Systems On Wed, Feb 13, 2008 at 12:24 PM, David Mendels [EMAIL PROTECTED] wrote: Hi, As someone pointed out, MARS is in a early state. I think it would really help if folks really are precise about what problem they want to solve rather than how they want to solve it. If the problem to solve is client-side PDF generation, there are multiple approaches we might take to that (and we have some stuff being worked on). That might also solve the printing requests people have, but we might also solve some (all?) of those also through other approaches with the PrintJob API for example. MARS support is interesting, but since MARS is so early, it might not be a good short or medium term route to solving either client side PDF creation or improved printing. So, my request to this group is: If you vote for MARS support, be precise about why and what your use case is. If what you really want is client side PDF creation and/or specific improvements to PrintJob, sumbit and vote for those directly, don't use the MARS ER as a proxy. Make sense? -David -Original Message- From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of João Fernandes Sent: Wednesday, February 13, 2008 9:04 AM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Re: Flex Feedback for the Future Mars is a XML representation of a PDF. Having a MarsLoader component and an AS3 API to produce those kind of documents, we would be able not only to generate powerful reports but also able to view them within our Flex applications. By voting to this ER , if it doesn't get implemented at least we will know why since it seems that they are committed to give an explanation ( http://weblogs.macromedia.com/mchotin/archives/2008/02/flex_4_ sdk_feat.cfm ) -- João Fernandes http://www.onflexwithcf.org http://www.riapt.org -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
RE: Requests/Votes re Printing, PDF, MARS (was RE: [flexcoders] Re: Flex Feedback for the Future)
FWIW, PrintJob was supposed to support async in Player 9, but it got broken. They have a bug open for it. Hopefully it'll be in player 10. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Anatole Tartakovsky Sent: Thursday, February 14, 2008 10:37 AM To: flexcoders@yahoogroups.com Subject: Re: Requests/Votes re Printing, PDF, MARS (was RE: [flexcoders] Re: Flex Feedback for the Future) David, Group, Essentially we have 2 issues here - Printing and client side PDF generation. 1. As far as sufficient printing API needed for Internet applications goes, I believe we need at least the APIs we implemented for IE 7 years ago - http://www.htmlprinting.com http://www.htmlprinting.com . We are willing to contribute the code to the Adobe player's codebase. At minimum we would need page size control and ability to print asynchronously. I would gladly discuss the features needed in depth, but as of now due to the limited printing capabilities of Flash Player most of our business quality printing had to be diverted to client side PDF generation. 2. Client-side PDF generation with XML is possible now as long as it is going to be viewed in Adobe 8 or better. Details of the approach were published in Farata blog (flexblog.faratasystems.com http://flexblog.faratasystems.com ) a while ago. In short, to achieve that we had to supplement our controls library with special APIs that render content of each control as XML - sometimes producing text (thus enabling text search within the document), sometimes making images of fragments ( making document look good). Hopefully MARS will fill the gap by providing better set of controls/styling over current XDP set. In either case in order for Flex framework to be usable for masses Adobe should add: a. Generic interface for XML PDF representation for each UIComponent and Container b. Implementation in the base classes c. Printing templates that utilize that interface. Sincerely, Anatole Tartakovsky Farata Systems On Wed, Feb 13, 2008 at 12:24 PM, David Mendels [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, As someone pointed out, MARS is in a early state. I think it would really help if folks really are precise about what problem they want to solve rather than how they want to solve it. If the problem to solve is client-side PDF generation, there are multiple approaches we might take to that (and we have some stuff being worked on). That might also solve the printing requests people have, but we might also solve some (all?) of those also through other approaches with the PrintJob API for example. MARS support is interesting, but since MARS is so early, it might not be a good short or medium term route to solving either client side PDF creation or improved printing. So, my request to this group is: If you vote for MARS support, be precise about why and what your use case is. If what you really want is client side PDF creation and/or specific improvements to PrintJob, sumbit and vote for those directly, don't use the MARS ER as a proxy. Make sense? -David -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of João Fernandes Sent: Wednesday, February 13, 2008 9:04 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Re: Flex Feedback for the Future Mars is a XML representation of a PDF. Having a MarsLoader component and an AS3 API to produce those kind of documents, we would be able not only to generate powerful reports but also able to view them within our Flex applications. By voting to this ER , if it doesn't get implemented at least we will know why since it seems that they are committed to give an explanation ( http://weblogs.macromedia.com/mchotin/archives/2008/02/flex_4_ http://weblogs.macromedia.com/mchotin/archives/2008/02/flex_4_ sdk_feat.cfm ) -- João Fernandes http://www.onflexwithcf.org http://www.onflexwithcf.org http://www.riapt.org http://www.riapt.org -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
Requests/Votes re Printing, PDF, MARS (was RE: [flexcoders] Re: Flex Feedback for the Future)
Hi, As someone pointed out, MARS is in a early state. I think it would really help if folks really are precise about what problem they want to solve rather than how they want to solve it. If the problem to solve is client-side PDF generation, there are multiple approaches we might take to that (and we have some stuff being worked on). That might also solve the printing requests people have, but we might also solve some (all?) of those also through other approaches with the PrintJob API for example. MARS support is interesting, but since MARS is so early, it might not be a good short or medium term route to solving either client side PDF creation or improved printing. So, my request to this group is: If you vote for MARS support, be precise about why and what your use case is. If what you really want is client side PDF creation and/or specific improvements to PrintJob, sumbit and vote for those directly, don't use the MARS ER as a proxy. Make sense? -David -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of João Fernandes Sent: Wednesday, February 13, 2008 9:04 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flex Feedback for the Future Mars is a XML representation of a PDF. Having a MarsLoader component and an AS3 API to produce those kind of documents, we would be able not only to generate powerful reports but also able to view them within our Flex applications. By voting to this ER , if it doesn't get implemented at least we will know why since it seems that they are committed to give an explanation ( http://weblogs.macromedia.com/mchotin/archives/2008/02/flex_4_ sdk_feat.cfm ) -- João Fernandes http://www.onflexwithcf.org http://www.riapt.org -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
[flexcoders] Re: Printing very long textarea
--- In flexcoders@yahoogroups.com, Frederico Garcia [EMAIL PROTECTED] wrote: I'm making a PrintTextArea component wich is basically a TextArea with simillar behaviour to PrintDatagrid. Still has some bugs, so I'll repost has soon has I corrected them. Read the documentation on PrintDatagrid to learn how to use this. By the way, if someone has corrections or suggestions on this please let me know. Hi Frederico, that's very useful. While waiting for your solution which sounds like a more proper way if doing things I'll try to hack something together for my app with the help of numLines and getLineMetrics. thanks, Otto
Re: [flexcoders] Re: Printing very long textarea
Otto escreveu: --- In flexcoders@yahoogroups.com, Frederico Garcia [EMAIL PROTECTED] wrote: I'm making a PrintTextArea component wich is basically a TextArea with simillar behaviour to PrintDatagrid. Still has some bugs, so I'll repost has soon has I corrected them. Read the documentation on PrintDatagrid to learn how to use this. By the way, if someone has corrections or suggestions on this please let me know. Hi Frederico, that's very useful. While waiting for your solution which sounds like a more proper way if doing things I'll try to hack something together for my app with the help of numLines and getLineMetrics. thanks, Otto -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links __ NOD32 2769 (20080107) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com You can use PrintTextArea as is. The bugs are related to screen display and the reset() method (for printing twice the same PrintTextArea) missing. Regards, Frederico Garcia
[flexcoders] Re: Printing very long textarea
--- In flexcoders@yahoogroups.com, Gregor Kiddie [EMAIL PROTECTED] wrote: Once you've called PrintJob.start() you can get the pageWidth and pageHeight of the paper and use these values along with the sizes of your TextArea to create your print area. You can then call PrintJob.addPage() as many times as required to cover all your TextArea. Thanks for the quick reply. Yes, I have the pageHeight and the textarea height. The problem is that I'm not sure how to split the textarea into pages, I'm pretty new to flex/as3. Can I just treat it like a bitmap and extract a page from 0 to pageHeight pixels and then continue with the next page. But how can I then be certain that I won't split a line in two. The textarea contains html text btw. My code looks like this: var newBox:VBox = new VBox(); newBox.setStyle(backgroundColor, white); this.addChild(newBox); newBox.addChild(vBoxInterests); trace(width: + vBoxInterests.width); trace(height: + vBoxInterests.height); newBox.width = printJob.pageWidth; trace(printJob.pageWidth); trace(printJob.pageHeight); newBox.height = 2 * printJob.pageHeight; printJob.addObject(newBox); -- Otto
[flexcoders] Re: Printing multiple objects per page, how to?
Just add your Panel and HBox to another container, and send this other container to the print job. Here's the pseudo code: var newContainer:VBox = new Vbox(); newContainer.add( hbMainTitle ); newContainer.add( dspChildWithFocus); printJob.addObject (newContainer); Viola. Well, you might have to experiment with this. newContainer may have to be added to a container...but I don't know off the top of my head. But you can see the solution. --- In flexcoders@yahoogroups.com, aceoohay [EMAIL PROTECTED] wrote: I would like to create a generic screen print module for my application. I have it working mostly. I can select print from the menu bar and it will render the module with focus. I was feeling giddy when I got that to work and I decided to add a heading to the page that prints. I have an object (hbox) on my screen that would look good as a heading, so I did an addObject. This of course creates a new page. After searching around for a solution I decided that I will ask the assembled masses, and go to bed. How can I merge multiple items onto a single page? In this case I have a Panel and a HBox. I would like the HBox on top, a small gap and then the panel. Below is the code that doesn't work; private function PrintPanel():void { var dspChildWithFocus:Object = this.getChildAt (this.numChildren -1); var strPrintObject:String = dspChildWithFocus.child.strPrintObject // Create an instance of the FlexPrintJob class. var printJob:FlexPrintJob = new FlexPrintJob(); printJob.printAsBitmap = true; // Start the print job. if (printJob.start() != true) return; // Add the object to print. Scale to fit the width printJob.addObject(hbMainTitle, FlexPrintJobScaleType.MATCH_WIDTH); printJob.addObject(dspChildWithFocus.child[strPrintObject], FlexPrintJobScaleType.MATCH_WIDTH); // Send the job to the printer. printJob.send(); } Anoter related question - I haven't tried to print this on a real printer yet (I am working remotely with no shared printer) only pdf. Will I have problems with printing outside the printable area of the printer? Paul
[flexcoders] Re: Printing a large string over multiple pages
Here is some code we use to slice up a long list and print on X# of pages. You should be able to do somethink like this... Hope the code gets formated ok // Add 2nd page displaying names of selected organizations var selectedOrgList:List = new List(); selectedOrgList.setActualSize(printJob.pageHeight, printJob.pageWidth); selectedOrgList.setStyle(fontSize,8); //selectedOrgList.dataProvider = orgList.selectedItems; var facilitiesPerPage:int = RECORDS_PER_PAGE; if (printJob.pageHeight printJob.pageWidth) { //height is less than width so we are in landscape mode and can't fit as many records per page facilitiesPerPage = LS_RECORDS_PER_PAGE; } selectedOrgList.rowCount = facilitiesPerPage; var pageCount:int = Math.ceil(orgList.selectedItems.length / facilitiesPerPage) ; var printFacilityViewHolder:Array = new Array(); chartTitle = chartTitle + \nFacility List; var sortedOrgs:Array = orgList.selectedItems; sortedOrgs.sortOn(name); for (var loopCtr:int = 0; loopCtr pageCount; loopCtr++) { var pfv:PrintFacilityView = new PrintFacilityView(); addChild(pfv); pfv.setDimensions(printJob.pageHeight, printJob.pageWidth); var startIndex:int = facilitiesPerPage * loopCtr; var endIndex:int = facilitiesPerPage * (loopCtr + 1); var pagedOrgList:Array = sortedOrgs.slice(startIndex, endIndex); selectedOrgList.styleName = facilityListStyle; selectedOrgList.dataProvider = pagedOrgList; selectedOrgList.labelField = name; pfv.facilityListView.addChild(selectedOrgList); pfv.setChartTitle(chartTitle + ( + (loopCtr + 1) + of + pageCount + )); printFacilityViewHolder[loopCtr] = pfv; printJob.addObject(pfv, FlexPrintJobScaleType.MATCH_WIDTH); } //And send the job to the printer. printJob.send(); //make the print view invisible then remove it printView.visible = false; //ATD 10/23/2006 changed to call removeChild from printView.facilityListView not printView for (loopCtr = 0; loopCtr pageCount; loopCtr++) { removeChild(printFacilityViewHolder[loopCtr]); } removeChild(printView); //selectedOrgList.visible = false; //restore the regionChartStack to its original condition restoreStack(chartSwitch, stackSelected);
RE: [SPAM] [flexcoders] Re: Printing a large string over multiple pages
Thanks to everyone for the help on the print problem. I will try out your suggestions though I have as a temporary measure just written the text to a text file and immediately opened it. That way it can then be printed using the default print functionality of the text editing app. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Anthony DeBonis Sent: 03 December 2007 17:42 To: flexcoders@yahoogroups.com Subject: [SPAM] [flexcoders] Re: Printing a large string over multiple pages Here is some code we use to slice up a long list and print on X# of pages. You should be able to do somethink like this... Hope the code gets formated ok // Add 2nd page displaying names of selected organizations var selectedOrgList:List = new List(); selectedOrgList.setActualSize(printJob.pageHeight, printJob.pageWidth); selectedOrgList.setStyle(fontSize,8); //selectedOrgList.dataProvider = orgList.selectedItems; var facilitiesPerPage:int = RECORDS_PER_PAGE; if (printJob.pageHeight printJob.pageWidth) { //height is less than width so we are in landscape mode and can't fit as many records per page facilitiesPerPage = LS_RECORDS_PER_PAGE; } selectedOrgList.rowCount = facilitiesPerPage; var pageCount:int = Math.ceil(orgList.selectedItems.length / facilitiesPerPage) ; var printFacilityViewHolder:Array = new Array(); chartTitle = chartTitle + \nFacility List; var sortedOrgs:Array = orgList.selectedItems; sortedOrgs.sortOn(name); for (var loopCtr:int = 0; loopCtr pageCount; loopCtr++) { var pfv:PrintFacilityView = new PrintFacilityView(); addChild(pfv); pfv.setDimensions(printJob.pageHeight, printJob.pageWidth); var startIndex:int = facilitiesPerPage * loopCtr; var endIndex:int = facilitiesPerPage * (loopCtr + 1); var pagedOrgList:Array = sortedOrgs.slice(startIndex, endIndex); selectedOrgList.styleName = facilityListStyle; selectedOrgList.dataProvider = pagedOrgList; selectedOrgList.labelField = name; pfv.facilityListView.addChild(selectedOrgList); pfv.setChartTitle(chartTitle + ( + (loopCtr + 1) + of + pageCount + )); printFacilityViewHolder[loopCtr] = pfv; printJob.addObject(pfv, FlexPrintJobScaleType.MATCH_WIDTH); } //And send the job to the printer. printJob.send(); //make the print view invisible then remove it printView.visible = false; //ATD 10/23/2006 changed to call removeChild from printView.facilityListView not printView for (loopCtr = 0; loopCtr pageCount; loopCtr++) { removeChild(printFacilityViewHolder[loopCtr]); } removeChild(printView); //selectedOrgList.visible = false; //restore the regionChartStack to its original condition restoreStack(chartSwitch, stackSelected);
[flexcoders] Re: Printing a large string over multiple pages
I remember in AS2 I created an array of movieclips with print content and then print the array one by one. Each array entry was a movie clip object. I had to manually measure when the movieclip is to high, then create another one, etc. Now from the livedocs: The PrintJob class hasn't changed dramatically for the ActionScript 3.0 implementation of printing. However, a few critical differences are worth noting: * The PrintJob.addPage() method now takes a Sprite and a Rectangle object for the first two parameters. So, I would manually measure the height of the sprite each time i add a word or a character to it, if it's too high I would create another sprite with textfield inside and continue with the remaining text. There might be better ways to do it in AS3, I haven't tried any printing yet. --- In flexcoders@yahoogroups.com, Paul Steven [EMAIL PROTECTED] wrote: Still desperately trying to find a solution to this! How can I print a text field that contains more than one page worth of text over multiple pages? Thanks Paul From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Steven Sent: 29 November 2007 20:30 To: flexcoders@yahoogroups.com Subject: [SPAM] [flexcoders] Printing a large string over multiple pages I am printing a large string and it is only printing one page worth of the string data. Ideally I would like it to print the entire string using as many pages as it requires to print out the entire contents. Any help much appreciated!! This is my print function code: private function doPrint():void { var printJob:FlexPrintJob = new FlexPrintJob(); var formPrintView:SubmissionReport = new SubmissionReport(); addChild(formPrintView); var todayDate:Date = new Date(); formPrintView.detailUsername.text = _session.getSessionUsername(); formPrintView.detailDate.text = String(todayDate); formPrintView.detailcontent.text = _session.returnSubmissionReportText() printJob.start(); printJob.addObject(formPrintView); printJob.send(); removeChild(formPrintView); }
[flexcoders] Re: Printing Chart
Thanks for helping. I had many problems but now it works. Messing up with multidimensional arrays etc.. But still I have question. Is it possible to rotate chart before printing? because I have multipage printing and allmost all pages are portrait but i want to rotate barchart so barchart is landscape. I try to use mx:rotate and set duration to 1 but I think its too long. if I set duration to 0 nothing happen. Any idea? --- In flexcoders@yahoogroups.com, Mark [EMAIL PROTECTED] wrote: Looks like you may be sending it too soon. Here's my code for a barChart that should work for a pie as well. Try reacranging the code a bit and see what happens. Let us know how it goes. Mark public function printSnapshotArea():void { var printDJob:FlexPrintJob = new FlexPrintJob(); printDJob.printAsBitmap = false; // if (printDJob.start()) { var printSnapViewArea:PrintViewSnapshotByArea = new PrintViewSnapshotByArea(); addChild(printSnapViewArea); printSnapViewArea.width=printDJob.pageWidth; // printSnapViewArea.printChart.dataProvider = snapHolder.snapViewArea.dataProvider; // printDJob.addObject(printSnapViewArea); removeChild(printSnapViewArea); } printDJob.send(); } --- In flexcoders@yahoogroups.com, monkeeeh monkeeeh@ wrote: Hi everyone! I have problem again. Im trying to print piechart. I have custom component (yhteenvetoPrintView) where i have pie chart. If i add dataprovider from other piechart i dont see piechart. But if i create static data to yhteenvetoPrintView i can see pie. Is printing too fast that piechart dont have time to get data or something like that. Please help! This is what how I try to print: var printJob:FlexPrintJob = new FlexPrintJob(); if(printJob.start()) { var yhteenveto:yhteenvetoPrintView = new yhteenvetoPrintView (); addChild(yhteenveto); yhteenveto.saatavuusPie.dataProvider = toimVarmuusPie.dataProvider; printJob.addObject(yhteenveto); printJob.send(); removeChild(yhteenveto); }else{ return; }
[flexcoders] Re: Printing Chart
Please someone tell me how to print chart! I know that you know.
[flexcoders] Re: Printing Chart
Looks like you may be sending it too soon. Here's my code for a barChart that should work for a pie as well. Try reacranging the code a bit and see what happens. Let us know how it goes. Mark public function printSnapshotArea():void { var printDJob:FlexPrintJob = new FlexPrintJob(); printDJob.printAsBitmap = false; // if (printDJob.start()) { var printSnapViewArea:PrintViewSnapshotByArea = new PrintViewSnapshotByArea(); addChild(printSnapViewArea); printSnapViewArea.width=printDJob.pageWidth; // printSnapViewArea.printChart.dataProvider = snapHolder.snapViewArea.dataProvider; // printDJob.addObject(printSnapViewArea); removeChild(printSnapViewArea); } printDJob.send(); } --- In flexcoders@yahoogroups.com, monkeeeh [EMAIL PROTECTED] wrote: Hi everyone! I have problem again. Im trying to print piechart. I have custom component (yhteenvetoPrintView) where i have pie chart. If i add dataprovider from other piechart i dont see piechart. But if i create static data to yhteenvetoPrintView i can see pie. Is printing too fast that piechart dont have time to get data or something like that. Please help! This is what how I try to print: var printJob:FlexPrintJob = new FlexPrintJob(); if(printJob.start()) { var yhteenveto:yhteenvetoPrintView = new yhteenvetoPrintView (); addChild(yhteenveto); yhteenveto.saatavuusPie.dataProvider = toimVarmuusPie.dataProvider; printJob.addObject(yhteenveto); printJob.send(); removeChild(yhteenveto); }else{ return; }
RE: [flexcoders] RE: Printing without the Print Dailog
Not possible afaik From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carl Vorster Sent: Friday, October 19, 2007 8:47 AM To: [EMAIL PROTECTED]; flexcoders@yahoogroups.com Subject: [flexcoders] RE: Printing without the Print Dailog Hi guys and gals, any idea's about this? From: Carl Vorster [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 4:21 PM To: '[EMAIL PROTECTED]' Subject: Printing without the Print Dailog Hi, Do anyone know of a way to print directly to a printer without the print dialog popping up. If you cannot do it from AIR does someone have some sort of workaround to do this? I'm also looking for a solution for Flex but it seems that's a lot more difficult. Thanks in advance Carl
[flexcoders] RE: Printing without the Print Dailog
Hi guys and gals, any idea's about this? _ From: Carl Vorster [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 4:21 PM To: '[EMAIL PROTECTED]' Subject: Printing without the Print Dailog Hi, Do anyone know of a way to print directly to a printer without the print dialog popping up. If you cannot do it from AIR does someone have some sort of workaround to do this? I'm also looking for a solution for Flex but it seems that's a lot more difficult. Thanks in advance Carl
[flexcoders] Re: Printing in Mac
Hi Rashmi Thanks for the help. Rajan --- In flexcoders@yahoogroups.com, rashmi_nraj [EMAIL PROTECTED] wrote: Hi Raj Sorry for replying late Please find the code i have used to Print in Windows in the following link http://flexrays.wordpress.com/2007/08/08/printing-datagrid-in-flex/ But this code doesnt work in Mac (It prints inverted in Mac) Regards, Rashmi --- In flexcoders@yahoogroups.com, rajanjainflex rajanjainflex@ wrote: Hi Rashmi Can you please share the code with me for printing the charts. I also need to print in the mac. May be i can help you. Thanks in advance -raj --- In flexcoders@yahoogroups.com, rashmi_nraj rashmi.nagaraj@ wrote: I have implemented the print function in Windows for datagrid and charts. This works perfectly fine. But when a user does a print from his Mac, the colors are inverted i.e. white comes as black and black as white. Is there any ways to overcome this? Can anyone give me more information on this. Thanks in advance
[flexcoders] Re: Printing from Flex
Easiest way is to create a custom component representing the page you want to print. Example code, using component called ChartsPrint: public function print2():void{ var printJob:FlexPrintJob=new FlexPrintJob(); if(printJob.start()){ var printView:ChartsPrint=new ChartsPrint(); Alert.show(Print Start,); addChild(printView); printView.height=1200; printView.width=900; printView.mainPieChart.dataProvider=mainPieChart.dataProvider; printView.chrtTotalEquity.dataProvider=chrtTotalEquity.dataProvider; printView.chrtPayments.dataProvider=chrtPayments.dataProvider; printJob.addObject(printView,FlexPrintJobScaleType.SHOW_ALL); printJob.send(); removeChild(printView); } } The three charts (mainPieChart, chrtTotalEquity, chrtPayments) created just by pasting code from main app into the ChartPrint component, changing some formatting, removing dataProviders and effects, and generally laying it out for printing. DataProviders supplied when the print function is called, as you see. You can similarly set values for labels, text, etc. in the component.
[flexcoders] Re: Printing in Flex
Hi Sam, This issue was caused by the fact that the FlexPrintJob was preparing the panel for printing (the print job was set to match or width/height) and for some reason it was setting it's height to 0 - that's why I think it was getting removed from the queue. I've noticed that wrapping a container in another one sometimes (just a Canvas) helps however I cannot identify any rules when it helps or why. Our print button was supposed to print whatever was conatined in one of the panels (I must add that the structure of th app is qute complicated). Depending on the content the behaviour was different. Typical effect was moving, shrinking or maximizing/zooming the nested containers - generaly breaking the view. It seems that the finishPrint method that is invoked by the FlexPrintJob method was not restoring the containers' properties properly. Any idea? Additionally we've noticed another issue with printing. Very often when there's a number of jobs spooled on our network printers (or there is an error due to lack paper or something similar) and spooling from Flex takes long we are getting errors however at least partial printout is generated. It is quite difficult to reproduce and depends on an individual environments. Typically, it was observed with long printouts (above 10 pages).Have you ever experienced anything like that? Cheers, Bartek --- In flexcoders@yahoogroups.com, Samuel Reuben [EMAIL PROTECTED] wrote: Very strange, can you send me the code that you are using please? Thanks, -sam On 1/4/07, baardos [EMAIL PROTECTED] wrote: Hi, I am trying to implement printing and I have the following issue. When I try to print ectire content of the screen everything seems to work fine. However If I change my code to print content of one of the panels I can see that there is a job sent to the printer queue but it never gets printed (the job disappear from the queue.). When I try to print to a file it's size is 0. Any ideas? I would be grateful for help. Cheers, Bartek
[flexcoders] Re: Printing Images with printJob.addObject
Sorry, now i understand: explicit embedding is working in Print-Templates: ... mx:Script ![CDATA[ import mx.core.*; [Embed(source=myimage.png)] [Bindable] public var imgCls:Class; ]] /mx:Script ... mx:Image height=60 id=myimage width=30% source={imgCls}/ ... Thanks --- In flexcoders@yahoogroups.com, nathanpdaniel [EMAIL PROTECTED] wrote: Using the PrintView component, you have to embed images for them to show up. I also asked the same question, but no one has ever come up with a good solution. So it works fine if you have static images, but trying to load them dynamically will never work with what's available now! :D Hope this helps! --- In flexcoders@yahoogroups.com, bnuenemann benedikt@ wrote: here my problem: File: printimage.mxml --- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.core.*; import mx.printing.*; public function doPrint():void { var printJob:FlexPrintJob = new FlexPrintJob(); if (printJob.start()) { var thePrintView:PrintView = new PrintView(); addChild(thePrintView); printJob.addObject(printcontainer); // works fine printJob.addObject(thePrintView); //will show second page without images removeChild(thePrintView); } printJob.send(); } } mx:Canvas backgroundColor=#ff id=printcontainer width=100 height=100 mx:Image width=100 height=100 source=myimage.png/ /mx:Canvas mx:Button label=Print click=doPrint() / /mx:VBox /mx:Application File: PrintView.mxml --- ?xml version=1.0? mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; backgroundColor=#ff height=650 width=550 paddingTop=50 paddingBottom=50 paddingLeft=50 mx:VBox width=500 mx:Image width=100 height=100 source=myimage.png/ /mx:VBox /mx:VBox If i add the image without the printview-template the images (jpg, gif, png) are visible, but with the PrintView it will show only white space on the print-output. Any suggestions?
Re: [flexcoders] Re: printing/zooming bugs
This is still an open issue Peter. I remember it had been fixed but then some how it got back. Will press for it to be fixed ASAP. Thanks, -sam On 7/25/06, Daniel Tuppeny [EMAIL PROTECTED] wrote: I was playing with your code, and discovered you don't need to create a new context menu, just call hideBuiltInItems() on the existing one: function init:void() { contextMenu.hideBuiltInItems(); } From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Pan TroglodytesSent: 18 July 2006 00:14To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: printing/zooming bugs I know this was asked a long time ago, but somehow I must have missed it. Either that or I learned how to do it later. In any case, do this: import flash.ui.ContextMenu; var menu:ContextMenu = new ContextMenu(); menu.hideBuiltInItems(); contextMenu = menu; On 6/30/06, Daniel Tuppeny [EMAIL PROTECTED] wrote: Is there a way to hide the context menu (or at least the zoom part)? Wehave a zoomable graph, and if the user right-clicks, they see Zoom,think it's ours, click it, and then they're stuffed until reloading the page! -Original Message-From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] OnBehalf Of JasonSent: 29 June 2006 17:50To: flexcoders@yahoogroups.comSubject: [flexcoders] Re: printing/zooming bugsUnfortunately, it looks like the Zoom bug is still there in the releaseversion. I've entered it into the bug report page. But be aware. --- In flexcoders@yahoogroups.com , Jason [EMAIL PROTECTED] wrote: Before I start talking about bugs, let me just say thanks for the help. I demoed to the boss today and he was VERY pleased. Flex was a big hit with him. Hope the release doesn't slip too far behind, as we're looking forward to writing that check! :D Anyway, I've had a couple of problems that seem to be related. In Flex 2beta3, whenever I create any app and run it, the Flash player's Zoom options are broken. Right-click and say Zoom In. Right-click and the Zoom Out option is not shown. You can Zoom In more and THEN Zoom Out, but not all the way out. You're stuck with it zoomed in. And you can't pan around. This doesn't happening using the beta player with non-Flex SWFs. The printing problem seems similar. Here's my example app: ?xml version= 1.0 encoding=utf-8? mx:Application xmlns:mx= http://www.adobe.com/2006/mxml layout=absolute mx:Script ![CDATA[ private function printClick(e:Event):void { import flash.printing.PrintJob; var myPrintJob:PrintJob = new PrintJob(); myPrintJob.start() ; myPrintJob.addPage(this); myPrintJob.send(); } ]] /mx:Script mx:Button label=Print click=printClick(event) width=481 x=10 y=10/ mx:DataGrid y=40 x=10 width=481 mx:dataProvider mx:ArrayCollection mx:source mx:Object mx:ArtistPavement/mx:Artist mx:Price11.99/mx:Price mx:AlbumSlanted and Enchanted/mx:Album /mx:Object mx:Object mx:ArtistPavement/mx:Artist mx:AlbumBrighten the Corners/mx:Album mx:Price11.99/mx:Price /mx:Object /mx:source /mx:ArrayCollection /mx:dataProvider /mx:DataGrid /mx:Application If you click on the print button, you get a zoomed in printed document. Just like the whole right-click and Zoom In problem. It's like the player thinks that the normal size is zoomed in. Can I get some confirmation or denial of the bug? Or if there's something somehow messed up with my system, let me know. Thanks. Yahoo! Groups Sponsor ~--Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM --~- -- Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links[Inbound Mail Scanned by MessageLabs]__This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ -- Jason [Inbound Mail Scanned by MessageLabs]__ This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development
RE: [flexcoders] Re: printing/zooming bugs
I was playing with your code, and discovered you don't need to create a new context menu, just call hideBuiltInItems() on the existing one: function init:void() { contextMenu.hideBuiltInItems(); } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Pan TroglodytesSent: 18 July 2006 00:14To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: printing/zooming bugs I know this was asked a long time ago, but somehow I must have missed it. Either that or I learned how to do it later. In any case, do this: import flash.ui.ContextMenu; var menu:ContextMenu = new ContextMenu(); menu.hideBuiltInItems(); contextMenu = menu; On 6/30/06, Daniel Tuppeny [EMAIL PROTECTED] wrote: Is there a way to hide the context menu (or at least the zoom part)? Wehave a zoomable graph, and if the user right-clicks, they see Zoom,think it's ours, click it, and then they're stuffed until reloading thepage! -Original Message-From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] OnBehalf Of JasonSent: 29 June 2006 17:50To: flexcoders@yahoogroups.comSubject: [flexcoders] Re: printing/zooming bugsUnfortunately, it looks like the Zoom bug is still there in the releaseversion. I've entered it into the bug report page. But be aware.--- In flexcoders@yahoogroups.com, "Jason" [EMAIL PROTECTED] wrote: Before I start talking about bugs, let me just say thanks for the help. I demoed to the boss today and he was VERY pleased. Flex was a big hit with him. Hope the release doesn't slip too far behind, as we're looking forward to writing that check! :D Anyway, I've had a couple of problems that seem to be related. In Flex 2beta3, whenever I create any app and run it, the Flash player's Zoom options are broken. Right-click and say Zoom In. Right-click and the Zoom Out option is not shown. You can Zoom In more and THEN Zoom Out, but not all the way out. You're stuck with it zoomed in. And you can't pan around. This doesn't happening using the beta player with non-Flex SWFs. The printing problem seems similar. Here's my example app: ?xml version="1.0" encoding="utf-8"? mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" mx:Script ![CDATA[ private function printClick(e:Event):void { import flash.printing.PrintJob; var myPrintJob:PrintJob = new PrintJob(); myPrintJob.start() ; myPrintJob.addPage(this); myPrintJob.send(); } ]] /mx:Script mx:Button label="Print" click="printClick(event)" width="481" x="10" y="10"/ mx:DataGrid y="40" x="10" width="481" mx:dataProvider mx:ArrayCollection mx:source mx:Object mx:ArtistPavement/mx:Artist mx:Price11.99/mx:Price mx:AlbumSlanted and Enchanted/mx:Album /mx:Object mx:Object mx:ArtistPavement/mx:Artist mx:AlbumBrighten the Corners/mx:Album mx:Price11.99/mx:Price /mx:Object /mx:source /mx:ArrayCollection /mx:dataProvider /mx:DataGrid /mx:Application If you click on the print button, you get a zoomed in printed document. Just like the whole right-click and Zoom In problem. It's like the player thinks that the normal size is zoomed in. Can I get some confirmation or denial of the bug? Or if there's something somehow messed up with my system, let me know. Thanks. Yahoo! Groups Sponsor ~--Check out the new improvements in Yahoo! Groups email.http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM --~- --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links[Inbound Mail Scanned by MessageLabs]__This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ -- Jason [Inbound Mail Scanned by MessageLabs] __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Re: printing/zooming bugs
It's still present here. I can right-click - Zoom In, and it correctly zooms in. When I then right-click - Zoom Out, it only zooms out a little, but a tick appears next to "Show All" and Zoom Out greys out. Leaving me still partly zoomed in (and missing the outside of my application), unable to get back. I'm definately using the release player :-( From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Samuel ReubenSent: 19 July 2006 05:52To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: printing/zooming bugs The zoom in, zoom out problem was noticed and was fixed. I'll look into it. As far as I can see it works fine on the release player. -sam On 7/18/06, Daniel Tuppeny [EMAIL PROTECTED] wrote: Cool, thanks! From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Pan TroglodytesSent: 18 July 2006 00:14To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: printing/zooming bugs I know this was asked a long time ago, but somehow I must have missed it. Either that or I learned how to do it later. In any case, do this: import flash.ui.ContextMenu; var menu:ContextMenu = new ContextMenu(); menu.hideBuiltInItems(); contextMenu = menu; On 6/30/06, Daniel Tuppeny [EMAIL PROTECTED] wrote: Is there a way to hide the context menu (or at least the zoom part)? Wehave a zoomable graph, and if the user right-clicks, they see Zoom,think it's ours, click it, and then they're stuffed until reloading the page! -Original Message-From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] OnBehalf Of JasonSent: 29 June 2006 17:50To: flexcoders@yahoogroups.comSubject: [flexcoders] Re: printing/zooming bugsUnfortunately, it looks like the Zoom bug is still there in the releaseversion. I've entered it into the bug report page. But be aware. --- In flexcoders@yahoogroups.com , "Jason" [EMAIL PROTECTED] wrote: Before I start talking about bugs, let me just say thanks for the help. I demoed to the boss today and he was VERY pleased. Flex was a big hit with him. Hope the release doesn't slip too far behind, as we're looking forward to writing that check! :D Anyway, I've had a couple of problems that seem to be related. In Flex 2beta3, whenever I create any app and run it, the Flash player's Zoom options are broken. Right-click and say Zoom In. Right-click and the Zoom Out option is not shown. You can Zoom In more and THEN Zoom Out, but not all the way out. You're stuck with it zoomed in. And you can't pan around. This doesn't happening using the beta player with non-Flex SWFs. The printing problem seems similar. Here's my example app: ?xml version=" 1.0" encoding="utf-8"? mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" mx:Script ![CDATA[ private function printClick(e:Event):void { import flash.printing.PrintJob; var myPrintJob:PrintJob = new PrintJob(); myPrintJob.start() ; myPrintJob.addPage(this); myPrintJob.send(); } ]] /mx:Script mx:Button label="Print" click="printClick(event)" width="481" x="10" y="10"/ mx:DataGrid y="40" x="10" width="481" mx:dataProvider mx:ArrayCollection mx:source mx:Object mx:ArtistPavement/mx:Artist mx:Price11.99/mx:Price mx:AlbumSlanted and Enchanted/mx:Album /mx:Object mx:Object mx:ArtistPavement/mx:Artist mx:AlbumBrighten the Corners/mx:Album mx:Price11.99/mx:Price /mx:Object /mx:source /mx:ArrayCollection /mx:dataProvider /mx:DataGrid /mx:Application If you click on the print button, you get a zoomed in printed document. Just like the whole right-click and Zoom In problem. It's like the player thinks that the normal size is zoomed in. Can I get some confirmation or denial of the bug? Or if there's something somehow messed up with my system, let me know. Thanks. Yahoo! Groups Sponsor ~--Check out the new improvements in Yahoo! Groups email.http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM --~- --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links[Inbound Mail Scanned by MessageLabs]__This email has been scanned by the MessageLabs Email Security System.For more information please visit http:/
Re: [flexcoders] Re: printing/zooming bugs
If you go to http://www.adobe.com/shockwave/welcome/ in the flash player about does it show 9,0,16,0 ? -sam On 7/19/06, Daniel Tuppeny [EMAIL PROTECTED] wrote: It's still present here. I can right-click - Zoom In, and it correctly zooms in. When I then right-click - Zoom Out, it only zooms out a little, but a tick appears next to Show All and Zoom Out greys out. Leaving me still partly zoomed in (and missing the outside of my application), unable to get back. I'm definately using the release player :-( From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Samuel ReubenSent: 19 July 2006 05:52 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: printing/zooming bugs The zoom in, zoom out problem was noticed and was fixed. I'll look into it. As far as I can see it works fine on the release player. -sam On 7/18/06, Daniel Tuppeny [EMAIL PROTECTED] wrote: Cool, thanks! From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Pan TroglodytesSent: 18 July 2006 00:14To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: printing/zooming bugs I know this was asked a long time ago, but somehow I must have missed it. Either that or I learned how to do it later. In any case, do this: import flash.ui.ContextMenu; var menu:ContextMenu = new ContextMenu(); menu.hideBuiltInItems(); contextMenu = menu; On 6/30/06, Daniel Tuppeny [EMAIL PROTECTED] wrote: Is there a way to hide the context menu (or at least the zoom part)? Wehave a zoomable graph, and if the user right-clicks, they see Zoom,think it's ours, click it, and then they're stuffed until reloading the page! -Original Message-From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] OnBehalf Of JasonSent: 29 June 2006 17:50To: flexcoders@yahoogroups.comSubject: [flexcoders] Re: printing/zooming bugsUnfortunately, it looks like the Zoom bug is still there in the releaseversion. I've entered it into the bug report page. But be aware. --- In flexcoders@yahoogroups.com , Jason [EMAIL PROTECTED] wrote: Before I start talking about bugs, let me just say thanks for the help. I demoed to the boss today and he was VERY pleased. Flex was a big hit with him. Hope the release doesn't slip too far behind, as we're looking forward to writing that check! :D Anyway, I've had a couple of problems that seem to be related. In Flex 2beta3, whenever I create any app and run it, the Flash player's Zoom options are broken. Right-click and say Zoom In. Right-click and the Zoom Out option is not shown. You can Zoom In more and THEN Zoom Out, but not all the way out. You're stuck with it zoomed in. And you can't pan around. This doesn't happening using the beta player with non-Flex SWFs. The printing problem seems similar. Here's my example app: ?xml version= 1.0 encoding=utf-8? mx:Application xmlns:mx= http://www.adobe.com/2006/mxml layout=absolute mx:Script ![CDATA[ private function printClick(e:Event):void { import flash.printing.PrintJob; var myPrintJob:PrintJob = new PrintJob(); myPrintJob.start() ; myPrintJob.addPage(this); myPrintJob.send(); } ]] /mx:Script mx:Button label=Print click=printClick(event) width=481 x=10 y=10/ mx:DataGrid y=40 x=10 width=481 mx:dataProvider mx:ArrayCollection mx:source mx:Object mx:ArtistPavement/mx:Artist mx:Price11.99/mx:Price mx:AlbumSlanted and Enchanted/mx:Album /mx:Object mx:Object mx:ArtistPavement/mx:Artist mx:AlbumBrighten the Corners/mx:Album mx:Price11.99/mx:Price /mx:Object /mx:source /mx:ArrayCollection /mx:dataProvider /mx:DataGrid /mx:Application If you click on the print button, you get a zoomed in printed document. Just like the whole right-click and Zoom In problem. It's like the player thinks that the normal size is zoomed in. Can I get some confirmation or denial of the bug? Or if there's something somehow messed up with my system, let me know. Thanks. Yahoo! Groups Sponsor ~--Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM --~- --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links[Inbound Mail Scanned by MessageLabs]__This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ -- Jason [Inbound Mail Scanned by MessageLabs] __This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email
[flexcoders] Re: printing/zooming bugs
--- In flexcoders@yahoogroups.com, Samuel Reuben [EMAIL PROTECTED] wrote: If you go to http://www.adobe.com/shockwave/welcome/ in the flash player about does it show 9,0,16,0 ? -sam Hi sam, I've submitted that as serious usability issue to Flex QA team during beta and haven't got any confirmation yet, just tried any sample, eg. from that page: http://labs.adobe.com/showcase/special/flexderby/ click Zoom In (say I'm impared person and do want to read some text) and then try to see all content again, tested with *.16 public plugin in FireFox (IExplorer hosts development plugin), that's not the only issue I know that is not fixed and not listed in know issues I think, regards, Peter Yahoo! Groups Sponsor ~-- Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: printing/zooming bugs
Since seeing is believing, have a video:http://rapidshare.de/files/26310210/zoombug.wmv.htmlOn 7/19/06, Peter Blazejewicz [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com , Samuel Reuben [EMAIL PROTECTED] wrote: If you go to http://www.adobe.com/shockwave/welcome/ in the flash player about does it show 9,0,16,0 ? -sam Hi sam, I've submitted that as serious usability issue to Flex QA team during beta and haven't got any confirmation yet, just tried any sample, eg. from that page: http://labs.adobe.com/showcase/special/flexderby/ click Zoom In (say I'm impared person and do want to read some text) and then try to see all content again, tested with *.16 public plugin in FireFox (IExplorer hosts development plugin), that's not the only issue I know that is not fixed and not listed in know issues I think, regards, Peter -- Jason __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Re: printing/zooming bugs
I too have noticed this... but, i simply assumed that someone is alerady working on it :-) -uday Peter Blazejewicz wrote: --- In [EMAIL PROTECTED]ups.com, "Samuel Reuben" [EMAIL PROTECTED] wrote: If you go to http://www.adobe.com/shockwave/welcome/ in the flash player "about" does it show 9,0,16,0 ? -sam Hi sam, I've submitted that as serious usability issue to Flex QA team during beta and haven't got any confirmation yet, just tried any sample, eg. from that page: http://labs.adobe.com/showcase/special/flexderby/ click Zoom In (say I'm impared person and do want to read some text) and then try to see all content again, tested with *.16 public plugin in FireFox (IExplorer hosts development plugin), that's not the only issue I know that is not fixed and not listed in know issues I think, regards, Peter __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Re: printing/zooming bugs
So was I.That was in beta.Seriously, this is pretty major. Zooming MUST be very important to Flash/Flex if it takes up the first three right-click menu options by default. And yet, they break it and seem to just blow it off. FYI, I entered a bug report on the official web page about it.On 7/19/06, Uday M. Shankar [EMAIL PROTECTED] wrote: I too have noticed this... but, i simply assumed that someone is alerady working on it :-) -uday Peter Blazejewicz wrote: --- In flexcoders@yahoogroups.com, Samuel Reuben [EMAIL PROTECTED] wrote: If you go to http://www.adobe.com/shockwave/welcome/ in the flash player about does it show 9,0,16,0 ? -sam Hi sam, I've submitted that as serious usability issue to Flex QA team during beta and haven't got any confirmation yet, just tried any sample, eg. from that page: http://labs.adobe.com/showcase/special/flexderby/ click Zoom In (say I'm impared person and do want to read some text) and then try to see all content again, tested with *.16 public plugin in FireFox (IExplorer hosts development plugin), that's not the only issue I know that is not fixed and not listed in know issues I think, regards, Peter -- Jason __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Re: printing/zooming bugs
Cool, thanks! From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Pan TroglodytesSent: 18 July 2006 00:14To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: printing/zooming bugs I know this was asked a long time ago, but somehow I must have missed it. Either that or I learned how to do it later. In any case, do this: import flash.ui.ContextMenu; var menu:ContextMenu = new ContextMenu(); menu.hideBuiltInItems(); contextMenu = menu; On 6/30/06, Daniel Tuppeny [EMAIL PROTECTED] wrote: Is there a way to hide the context menu (or at least the zoom part)? Wehave a zoomable graph, and if the user right-clicks, they see Zoom,think it's ours, click it, and then they're stuffed until reloading thepage! -Original Message-From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] OnBehalf Of JasonSent: 29 June 2006 17:50To: flexcoders@yahoogroups.comSubject: [flexcoders] Re: printing/zooming bugsUnfortunately, it looks like the Zoom bug is still there in the releaseversion. I've entered it into the bug report page. But be aware.--- In flexcoders@yahoogroups.com, "Jason" [EMAIL PROTECTED] wrote: Before I start talking about bugs, let me just say thanks for the help. I demoed to the boss today and he was VERY pleased. Flex was a big hit with him. Hope the release doesn't slip too far behind, as we're looking forward to writing that check! :D Anyway, I've had a couple of problems that seem to be related. In Flex 2beta3, whenever I create any app and run it, the Flash player's Zoom options are broken. Right-click and say Zoom In. Right-click and the Zoom Out option is not shown. You can Zoom In more and THEN Zoom Out, but not all the way out. You're stuck with it zoomed in. And you can't pan around. This doesn't happening using the beta player with non-Flex SWFs. The printing problem seems similar. Here's my example app: ?xml version="1.0" encoding="utf-8"? mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" mx:Script ![CDATA[ private function printClick(e:Event):void { import flash.printing.PrintJob; var myPrintJob:PrintJob = new PrintJob(); myPrintJob.start() ; myPrintJob.addPage(this); myPrintJob.send(); } ]] /mx:Script mx:Button label="Print" click="printClick(event)" width="481" x="10" y="10"/ mx:DataGrid y="40" x="10" width="481" mx:dataProvider mx:ArrayCollection mx:source mx:Object mx:ArtistPavement/mx:Artist mx:Price11.99/mx:Price mx:AlbumSlanted and Enchanted/mx:Album /mx:Object mx:Object mx:ArtistPavement/mx:Artist mx:AlbumBrighten the Corners/mx:Album mx:Price11.99/mx:Price /mx:Object /mx:source /mx:ArrayCollection /mx:dataProvider /mx:DataGrid /mx:Application If you click on the print button, you get a zoomed in printed document. Just like the whole right-click and Zoom In problem. It's like the player thinks that the normal size is zoomed in. Can I get some confirmation or denial of the bug? Or if there's something somehow messed up with my system, let me know. Thanks. Yahoo! Groups Sponsor ~--Check out the new improvements in Yahoo! Groups email.http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM --~- --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links[Inbound Mail Scanned by MessageLabs]__This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ -- Jason [Inbound Mail Scanned by MessageLabs] __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Soft
Re: [flexcoders] Re: printing/zooming bugs
The zoom in, zoom out problem was noticed and was fixed. I'll look into it. As far as I can see it works fine on the release player. -sam On 7/18/06, Daniel Tuppeny [EMAIL PROTECTED] wrote: Cool, thanks! From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Pan TroglodytesSent: 18 July 2006 00:14To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: printing/zooming bugs I know this was asked a long time ago, but somehow I must have missed it. Either that or I learned how to do it later. In any case, do this: import flash.ui.ContextMenu; var menu:ContextMenu = new ContextMenu(); menu.hideBuiltInItems(); contextMenu = menu; On 6/30/06, Daniel Tuppeny [EMAIL PROTECTED] wrote: Is there a way to hide the context menu (or at least the zoom part)? Wehave a zoomable graph, and if the user right-clicks, they see Zoom,think it's ours, click it, and then they're stuffed until reloading the page! -Original Message-From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] OnBehalf Of JasonSent: 29 June 2006 17:50To: flexcoders@yahoogroups.comSubject: [flexcoders] Re: printing/zooming bugsUnfortunately, it looks like the Zoom bug is still there in the releaseversion. I've entered it into the bug report page. But be aware. --- In flexcoders@yahoogroups.com , Jason [EMAIL PROTECTED] wrote: Before I start talking about bugs, let me just say thanks for the help. I demoed to the boss today and he was VERY pleased. Flex was a big hit with him. Hope the release doesn't slip too far behind, as we're looking forward to writing that check! :D Anyway, I've had a couple of problems that seem to be related. In Flex 2beta3, whenever I create any app and run it, the Flash player's Zoom options are broken. Right-click and say Zoom In. Right-click and the Zoom Out option is not shown. You can Zoom In more and THEN Zoom Out, but not all the way out. You're stuck with it zoomed in. And you can't pan around. This doesn't happening using the beta player with non-Flex SWFs. The printing problem seems similar. Here's my example app: ?xml version= 1.0 encoding=utf-8? mx:Application xmlns:mx= http://www.adobe.com/2006/mxml layout=absolute mx:Script ![CDATA[ private function printClick(e:Event):void { import flash.printing.PrintJob; var myPrintJob:PrintJob = new PrintJob(); myPrintJob.start() ; myPrintJob.addPage(this); myPrintJob.send(); } ]] /mx:Script mx:Button label=Print click=printClick(event) width=481 x=10 y=10/ mx:DataGrid y=40 x=10 width=481 mx:dataProvider mx:ArrayCollection mx:source mx:Object mx:ArtistPavement/mx:Artist mx:Price11.99/mx:Price mx:AlbumSlanted and Enchanted/mx:Album /mx:Object mx:Object mx:ArtistPavement/mx:Artist mx:AlbumBrighten the Corners/mx:Album mx:Price11.99/mx:Price /mx:Object /mx:source /mx:ArrayCollection /mx:dataProvider /mx:DataGrid /mx:Application If you click on the print button, you get a zoomed in printed document. Just like the whole right-click and Zoom In problem. It's like the player thinks that the normal size is zoomed in. Can I get some confirmation or denial of the bug? Or if there's something somehow messed up with my system, let me know. Thanks. Yahoo! Groups Sponsor ~--Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM --~- --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links[Inbound Mail Scanned by MessageLabs]__This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ -- Jason [Inbound Mail Scanned by MessageLabs] __This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group
Re: [flexcoders] Re: printing/zooming bugs
I know this was asked a long time ago, but somehow I must have missed it. Either that or I learned how to do it later. In any case, do this: import flash.ui.ContextMenu; var menu:ContextMenu = new ContextMenu(); menu.hideBuiltInItems(); contextMenu = menu;On 6/30/06, Daniel Tuppeny [EMAIL PROTECTED] wrote: Is there a way to hide the context menu (or at least the zoom part)? We have a zoomable graph, and if the user right-clicks, they see Zoom, think it's ours, click it, and then they're stuffed until reloading the page! -Original Message- From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Jason Sent: 29 June 2006 17:50 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: printing/zooming bugs Unfortunately, it looks like the Zoom bug is still there in the release version. I've entered it into the bug report page. But be aware. --- In flexcoders@yahoogroups.com, Jason [EMAIL PROTECTED] wrote: Before I start talking about bugs, let me just say thanks for the help. I demoed to the boss today and he was VERY pleased. Flex was a big hit with him. Hope the release doesn't slip too far behind, as we're looking forward to writing that check! :D Anyway, I've had a couple of problems that seem to be related. In Flex 2beta3, whenever I create any app and run it, the Flash player's Zoom options are broken. Right-click and say Zoom In. Right-click and the Zoom Out option is not shown. You can Zoom In more and THEN Zoom Out, but not all the way out. You're stuck with it zoomed in. And you can't pan around. This doesn't happening using the beta player with non-Flex SWFs. The printing problem seems similar. Here's my example app: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=absolute mx:Script ![CDATA[ private function printClick(e:Event):void { import flash.printing.PrintJob; var myPrintJob:PrintJob = new PrintJob(); myPrintJob.start() ; myPrintJob.addPage(this); myPrintJob.send(); } ]] /mx:Script mx:Button label=Print click=printClick(event) width=481 x=10 y=10/ mx:DataGrid y=40 x=10 width=481 mx:dataProvider mx:ArrayCollection mx:source mx:Object mx:ArtistPavement/mx:Artist mx:Price11.99/mx:Price mx:AlbumSlanted and Enchanted/mx:Album /mx:Object mx:Object mx:ArtistPavement/mx:Artist mx:AlbumBrighten the Corners/mx:Album mx:Price11.99/mx:Price /mx:Object /mx:source /mx:ArrayCollection /mx:dataProvider /mx:DataGrid /mx:Application If you click on the print button, you get a zoomed in printed document. Just like the whole right-click and Zoom In problem. It's like the player thinks that the normal size is zoomed in. Can I get some confirmation or denial of the bug? Or if there's something somehow messed up with my system, let me know. Thanks. Yahoo! Groups Sponsor ~-- Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM --~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links [Inbound Mail Scanned by MessageLabs] __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- Jason __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Re: printing/zooming bugs
Unfortunately, it looks like the Zoom bug is still there in the release version. I've entered it into the bug report page. But be aware. --- In flexcoders@yahoogroups.com, Jason [EMAIL PROTECTED] wrote: Before I start talking about bugs, let me just say thanks for the help. I demoed to the boss today and he was VERY pleased. Flex was a big hit with him. Hope the release doesn't slip too far behind, as we're looking forward to writing that check! :D Anyway, I've had a couple of problems that seem to be related. In Flex 2beta3, whenever I create any app and run it, the Flash player's Zoom options are broken. Right-click and say Zoom In. Right-click and the Zoom Out option is not shown. You can Zoom In more and THEN Zoom Out, but not all the way out. You're stuck with it zoomed in. And you can't pan around. This doesn't happening using the beta player with non-Flex SWFs. The printing problem seems similar. Here's my example app: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ private function printClick(e:Event):void { import flash.printing.PrintJob; var myPrintJob:PrintJob = new PrintJob(); myPrintJob.start() ; myPrintJob.addPage(this); myPrintJob.send(); } ]] /mx:Script mx:Button label=Print click=printClick(event) width=481 x=10 y=10/ mx:DataGrid y=40 x=10 width=481 mx:dataProvider mx:ArrayCollection mx:source mx:Object mx:ArtistPavement/mx:Artist mx:Price11.99/mx:Price mx:AlbumSlanted and Enchanted/mx:Album /mx:Object mx:Object mx:ArtistPavement/mx:Artist mx:AlbumBrighten the Corners/mx:Album mx:Price11.99/mx:Price /mx:Object /mx:source /mx:ArrayCollection /mx:dataProvider /mx:DataGrid /mx:Application If you click on the print button, you get a zoomed in printed document. Just like the whole right-click and Zoom In problem. It's like the player thinks that the normal size is zoomed in. Can I get some confirmation or denial of the bug? Or if there's something somehow messed up with my system, let me know. Thanks. Yahoo! Groups Sponsor ~-- Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: printing/zooming bugs
Can someone else confirm this happens with them, too? I get it both on my machine and another one. But it would be good to get some verification from someone else. Yahoo! Groups Sponsor ~-- See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: printing/zooming bugs
Hi Jason, I've submitted that (zoom in/zoom out/show all) as plugin usability bug some time ago to Flex Team QA, haven't received confirmation yet from them though, kind regards, Peter Blazejewicz Yahoo! Groups Sponsor ~-- Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: printing/zooming bugs
I suggest, you to use Flex PrintJob class instead of Player's PrintJob. Flex 2 PrintJob gives you more control.mx.printing.FlexPrintJob ?If you still see the same problem...let us know... I know the person, who can answer this best :) -abdulOn 6/15/06, Peter Blazejewicz [EMAIL PROTECTED] wrote: Hi Jason, I've submitted that (zoom in/zoom out/show all) as plugin usability bug some time ago to Flex Team QA, haven't received confirmation yet from them though, kind regards, Peter Blazejewicz __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Re: printing/zooming bugs
I've not tried printing, but the Zoom In/Zoom Out is definitely broken on all our versions of the Flash Player 9 beta here - does exactly as you described! -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jason Sent: 14 June 2006 22:16 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: printing/zooming bugs Can someone else confirm this happens with them, too? I get it both on my machine and another one. But it would be good to get some verification from someone else. Yahoo! Groups Sponsor ~-- See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links [Inbound Mail Scanned by MessageLabs] __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: printing/zooming bugs
Thanks for the tip! That worked great on the printing part of the bug. Still have weird zooming issues, though. For anyone else's reference, I changed the code around to this: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute backgroundColor=0xFF mx:Script ![CDATA[ private function buttonClick(e:Event):void { import mx.printing.FlexPrintJob; var myPrintJob:FlexPrintJob = new FlexPrintJob(); myPrintJob.start(); vbox.height = vbox.width * myPrintJob.pageHeight / myPrintJob.pageWidth; myPrintJob.addObject(vbox, FlexPrintJobScaleType.MATCH_WIDTH); myPrintJob.send(); vbox.percentHeight = 100; } ]] /mx:Script mx:VBox id=vbox height=100% width=100% backgroundColor=0x00FF00 mx:Button label=Print click=buttonClick(event) width=100% height=5%/ mx:DataGrid width=100% height=90% backgroundColor=0xFF mx:dataProvider mx:ArrayCollection mx:source mx:Object mx:ArtistPavement/mx:Artist mx:Price11.99/mx:Price mx:AlbumSlanted and Enchanted/mx:Album /mx:Object mx:Object mx:ArtistPavement/mx:Artist mx:AlbumBrighten the Corners/mx:Album mx:Price11.99/mx:Price /mx:Object /mx:source /mx:ArrayCollection /mx:dataProvider /mx:DataGrid mx:Button label=Empty width=100% height=5%/ /mx:VBox /mx:Application Note that I took the height/width off application (that seems to get it confused) and that I adjusted the height so it would fill the page. --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: I suggest, you to use Flex PrintJob class instead of Player's PrintJob. Flex 2 PrintJob gives you more control. mx.printing.FlexPrintJob ? If you still see the same problem...let us know... I know the person, who can answer this best :) -abdul On 6/15/06, Peter Blazejewicz [EMAIL PROTECTED] wrote: Hi Jason, I've submitted that (zoom in/zoom out/show all) as plugin usability bug some time ago to Flex Team QA, haven't received confirmation yet from them though, kind regards, Peter Blazejewicz Yahoo! Groups Sponsor ~-- See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Printing whole lotta pages?
Thank you all for the answers. Clearly printing is not the most advanced and easy-to-use feature in Flex/Flash. Nihit, your code example works - it really is possible to print two pages even if they are not on screen. Great, thanks! But how does the code work, could you explain the logic a little? Where are the resizeMask() etc methods coming from? Satu --- In flexcoders@yahoogroups.com, Nihit Saxena [EMAIL PROTECTED] wrote: Check the attached files, you can use the same strategy to print areas outside of print area/ inside a scroll bar. You can also scale the contents to the desired scaling, For printing two pages, you can call addPage two times after changing the look and feel of the page. Thanks, Nihit From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of svktiilikainen Sent: Tuesday, July 05, 2005 7:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Printing whole lotta pages? Hi, I need to print a form having two pages. The form consists of boxes, containing layout boxes and grids, containing labels, texts etc. The contents are pretty long so that a vertical scrollbar is displayed on the form. I have studied the PrintJob class and tried various procedures with little success. How should the pages be scaled in order for them to fit to the paper (A4)? And, above all, is there any way to print the second page? Is it true that the printable contents should be visible when printing?? Now I can print (most of) the first page, with good luck, but never the second page (a blank, black page prints out). And yes, I have tried manipulating the vPosition of the VBox in question to give the PrintJob a clue as where to start the second page. This has not worked. Suggestions, anyone, please? Satu -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Printing whole lotta pages?
On 7/6/05, svktiilikainen [EMAIL PROTECTED] wrote: Nihit, your code example works - it really is possible to print two pages even if they are not on screen. Great, thanks! But how does the code work, could you explain the logic a little? Where are the resizeMask() etc methods coming from? I'll try to beat Nihit to this (although he's clearly da man when it comes to printing). Basically the parent of the Loader, the Box, has a mask that is used for clipping the content (as the content won't fit within the bounds). In the sample code, this mask is being removed temporarily before printing and then added back once it's done. The removeMask, createMask and resizeMask functions are internal to the Container class. They are not documented, as they are not meant to be a part of the public API. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: Printing
I noticed something odd in testing the code available on macromedia.com on how to print the entire contents of a datagrid. It works if you leave the default printer settings alone, but if you change to have the report printed landscape-wise, it doesn't work anymore. It stops at the point where you can see up to on the screen and doesn't print past that... Also...is there any way to change the font size when printing a datagrid? I have the fontWeight style set to bold for all contents of my datagrid, which is relatively wide, and when I print the datagrid using the script, the font is rather large on the page and the columns, when the print job shrinks the column width to fit it to the paper width, the contents in some of the cells is too large and is replaced with a vertical scrollbar, making the report illegible for some of the cells. I've tried added a setStyle (fontSize, 6) call before the pj.send() is called and then resetting the fontSize afterwards and I see it visually happening on the screen, but it holds no bearing on what's sent to the printer. Just was wondering. Thanks, Rob
RE: [flexcoders] Re: Printing
Robert, I just tried that example and it does not work either way for me. The data and paging is correct, but only the screen/visible area prints. Did you discover anything? Tracy -Original Message- From: rbrueckmann78 [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 7:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Printing I noticed something odd in testing the code available on macromedia.com on how to print the entire contents of a datagrid. It works if you leave the default printer settings alone, but if you change to have the report printed landscape-wise, it doesn't work anymore. It stops at the point where you can see up to on the screen and doesn't print past that... Also...is there any way to change the font size when printing a datagrid? I have the fontWeight style set to bold for all contents of my datagrid, which is relatively wide, and when I print the datagrid using the script, the font is rather large on the page and the columns, when the print job shrinks the column width to fit it to the paper width, the contents in some of the cells is too large and is replaced with a vertical scrollbar, making the report illegible for some of the cells. I've tried added a setStyle (fontSize, 6) call before the pj.send() is called and then resetting the fontSize afterwards and I see it visually happening on the screen, but it holds no bearing on what's sent to the printer. Just was wondering. Thanks, Rob Yahoo! Groups Links