Re: [Flashcoders] Printing table receipt with Flex
Thanks all for the replies... However a datagrid would not be a good idea because it would show scrollbars if any, also what is printed it is not shown into the appliaction... Cor your Idea is good I'll try that. Cheerz On Fri, Feb 27, 2009 at 11:41 PM, Anthony Pace anthony.p...@utoronto.cawrote: Why not treat the textfield as a cell with absolute positioning? They have their own x,y,width,height, along with visual styles, so why not just define them? Just look at the format of the object you want printed and separate them into their elements. I also wanted to mention that you don't have to convert to a bitmap, if you want to print with vectors, as is the default, you can just use PrintJob; yet, remember to give your object a 100% opaque coloured background of its own, using the drawing API, or you may run into problems with black printing in areas that are supposed to be transparent. PrintJobOptions (if you want to print as bitmap) PrintJobOrientation (landscape of portrait) PrintJob (for everything else related to the pj such as addPage) I don't mean to be a snot and way you should check the livedocs; yet, these are a few useful resources: http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0332.html#wp127671 http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0334.html http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7e25.html http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7d8f.html Muzak wrote: Dump them in a datagrid, print the datagrid.. - Original Message - From: Omar Fouad omarfouad@gmail.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Friday, February 27, 2009 5:54 AM Subject: Re: [Flashcoders] Printing table receipt with Flex Thanks everybody for the replies... I've been thinking about rendering an HTML table into a TextField inside a sprite... But as far as I know, TextFields in flash does not support HTML tables. What else is recomended? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Omar M. Fouad - ActionScript Developer www.omar-fouad.net Cellular: (+20) 1011.88.534 Mail: m...@omar-fouad.net This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Printing table receipt with Flex
Skin a data grid? Omar Fouad wrote: Thanks everybody for the replies... I've been thinking about rendering an HTML table into a TextField inside a sprite... But as far as I know, TextFields in flash does not support HTML tables. What else is recomended? On Thu, Feb 26, 2009 at 7:52 PM, Anthony Pace anthony.p...@utoronto.cawrote: You beat me to it. I was going to say that he could lat it out someway like outputing it all as html inside an mc like eric said, convert the mc to a bitmap like you suggested, and then use printJob(); Here is a decent tutorial... http://blog.tikikitchen.com/2008/04/18/printing-in-flash-in-10-simple-steps Glen Pike wrote: Omar Fouad wrote: Hi all,I am working on a POS application in AIR and SQLite, and I am stuck with this little problem. I need to send to a printer, some data from an array and create a table.. in other words, I need to print a receipt. Is there any way to create dinamically a table and fill it with strings and print it out? Thanks in advance Hi, Not sure about the dynamic table, but you can use the PrintJob class in ActionScript. The best thing to do with this is to create a MovieClip the size of the thing to print and put a Bitmap inside it. Do a grab of your Receipt table / MovieClip into the bitmap and use the PrintJob to print - this gets around problems with vector vs bitmap in printing because you are always printing a bitmap. As long as you have a way of laying out your receipt you can print it from AS if you like... Glen ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Printing table receipt with Flex
What are you planning to do with the info? Maybe putting every html cell in a seperate sprite helps -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Glen Pike Sent: vrijdag 27 februari 2009 10:31 To: Flash Coders List Subject: Re: [Flashcoders] Printing table receipt with Flex Skin a data grid? Omar Fouad wrote: Thanks everybody for the replies... I've been thinking about rendering an HTML table into a TextField inside a sprite... But as far as I know, TextFields in flash does not support HTML tables. What else is recomended? On Thu, Feb 26, 2009 at 7:52 PM, Anthony Pace anthony.p...@utoronto.cawrote: You beat me to it. I was going to say that he could lat it out someway like outputing it all as html inside an mc like eric said, convert the mc to a bitmap like you suggested, and then use printJob(); Here is a decent tutorial... http://blog.tikikitchen.com/2008/04/18/printing-in-flash-in-10-simple-steps Glen Pike wrote: Omar Fouad wrote: Hi all,I am working on a POS application in AIR and SQLite, and I am stuck with this little problem. I need to send to a printer, some data from an array and create a table.. in other words, I need to print a receipt. Is there any way to create dinamically a table and fill it with strings and print it out? Thanks in advance Hi, Not sure about the dynamic table, but you can use the PrintJob class in ActionScript. The best thing to do with this is to create a MovieClip the size of the thing to print and put a Bitmap inside it. Do a grab of your Receipt table / MovieClip into the bitmap and use the PrintJob to print - this gets around problems with vector vs bitmap in printing because you are always printing a bitmap. As long as you have a way of laying out your receipt you can print it from AS if you like... Glen ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.0.237 / Virus Database: 270.11.3/1973 - Release Date: 02/26/09 14:51:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Printing table receipt with Flex
Dump them in a datagrid, print the datagrid.. - Original Message - From: Omar Fouad omarfouad@gmail.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Friday, February 27, 2009 5:54 AM Subject: Re: [Flashcoders] Printing table receipt with Flex Thanks everybody for the replies... I've been thinking about rendering an HTML table into a TextField inside a sprite... But as far as I know, TextFields in flash does not support HTML tables. What else is recomended? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Printing table receipt with Flex
Why not treat the textfield as a cell with absolute positioning? They have their own x,y,width,height, along with visual styles, so why not just define them? Just look at the format of the object you want printed and separate them into their elements. I also wanted to mention that you don't have to convert to a bitmap, if you want to print with vectors, as is the default, you can just use PrintJob; yet, remember to give your object a 100% opaque coloured background of its own, using the drawing API, or you may run into problems with black printing in areas that are supposed to be transparent. PrintJobOptions (if you want to print as bitmap) PrintJobOrientation (landscape of portrait) PrintJob (for everything else related to the pj such as addPage) I don't mean to be a snot and way you should check the livedocs; yet, these are a few useful resources: http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0332.html#wp127671 http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0334.html http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7e25.html http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7d8f.html Muzak wrote: Dump them in a datagrid, print the datagrid.. - Original Message - From: Omar Fouad omarfouad@gmail.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Friday, February 27, 2009 5:54 AM Subject: Re: [Flashcoders] Printing table receipt with Flex Thanks everybody for the replies... I've been thinking about rendering an HTML table into a TextField inside a sprite... But as far as I know, TextFields in flash does not support HTML tables. What else is recomended? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Printing table receipt with Flex
Hi all,I am working on a POS application in AIR and SQLite, and I am stuck with this little problem. I need to send to a printer, some data from an array and create a table.. in other words, I need to print a receipt. Is there any way to create dinamically a table and fill it with strings and print it out? Thanks in advance -- Omar M. Fouad - ActionScript Developer www.omar-fouad.net Cellular: (+20) 1011.88.534 Mail: m...@omar-fouad.net This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Printing table receipt with Flex
Could you use some temporary HTML to do that and write the HTML internally? On Thu, Feb 26, 2009 at 8:50 AM, Omar Fouad omarfouad@gmail.com wrote: Hi all,I am working on a POS application in AIR and SQLite, and I am stuck with this little problem. I need to send to a printer, some data from an array and create a table.. in other words, I need to print a receipt. Is there any way to create dinamically a table and fill it with strings and print it out? Thanks in advance -- Omar M. Fouad - ActionScript Developer www.omar-fouad.net Cellular: (+20) 1011.88.534 Mail: m...@omar-fouad.net This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- http://ericd.net Interactive design and development ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Printing table receipt with Flex
Omar Fouad wrote: Hi all,I am working on a POS application in AIR and SQLite, and I am stuck with this little problem. I need to send to a printer, some data from an array and create a table.. in other words, I need to print a receipt. Is there any way to create dinamically a table and fill it with strings and print it out? Thanks in advance Hi, Not sure about the dynamic table, but you can use the PrintJob class in ActionScript. The best thing to do with this is to create a MovieClip the size of the thing to print and put a Bitmap inside it. Do a grab of your Receipt table / MovieClip into the bitmap and use the PrintJob to print - this gets around problems with vector vs bitmap in printing because you are always printing a bitmap. As long as you have a way of laying out your receipt you can print it from AS if you like... Glen ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Printing table receipt with Flex
You beat me to it. I was going to say that he could lat it out someway like outputing it all as html inside an mc like eric said, convert the mc to a bitmap like you suggested, and then use printJob(); Here is a decent tutorial... http://blog.tikikitchen.com/2008/04/18/printing-in-flash-in-10-simple-steps Glen Pike wrote: Omar Fouad wrote: Hi all,I am working on a POS application in AIR and SQLite, and I am stuck with this little problem. I need to send to a printer, some data from an array and create a table.. in other words, I need to print a receipt. Is there any way to create dinamically a table and fill it with strings and print it out? Thanks in advance Hi, Not sure about the dynamic table, but you can use the PrintJob class in ActionScript. The best thing to do with this is to create a MovieClip the size of the thing to print and put a Bitmap inside it. Do a grab of your Receipt table / MovieClip into the bitmap and use the PrintJob to print - this gets around problems with vector vs bitmap in printing because you are always printing a bitmap. As long as you have a way of laying out your receipt you can print it from AS if you like... Glen ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Printing table receipt with Flex
Thanks everybody for the replies... I've been thinking about rendering an HTML table into a TextField inside a sprite... But as far as I know, TextFields in flash does not support HTML tables. What else is recomended? On Thu, Feb 26, 2009 at 7:52 PM, Anthony Pace anthony.p...@utoronto.cawrote: You beat me to it. I was going to say that he could lat it out someway like outputing it all as html inside an mc like eric said, convert the mc to a bitmap like you suggested, and then use printJob(); Here is a decent tutorial... http://blog.tikikitchen.com/2008/04/18/printing-in-flash-in-10-simple-steps Glen Pike wrote: Omar Fouad wrote: Hi all,I am working on a POS application in AIR and SQLite, and I am stuck with this little problem. I need to send to a printer, some data from an array and create a table.. in other words, I need to print a receipt. Is there any way to create dinamically a table and fill it with strings and print it out? Thanks in advance Hi, Not sure about the dynamic table, but you can use the PrintJob class in ActionScript. The best thing to do with this is to create a MovieClip the size of the thing to print and put a Bitmap inside it. Do a grab of your Receipt table / MovieClip into the bitmap and use the PrintJob to print - this gets around problems with vector vs bitmap in printing because you are always printing a bitmap. As long as you have a way of laying out your receipt you can print it from AS if you like... Glen ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Omar M. Fouad - ActionScript Developer www.omar-fouad.net Cellular: (+20) 1011.88.534 Mail: m...@omar-fouad.net This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders