Paul Andrews escreveu: > ----- Original Message ----- > From: "coolz22in" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Wednesday, March 26, 2008 6:42 AM > Subject: [flexcoders] Re: How do I print in Flex? > > > >> Hi, >> >> I want to print only the data and not the UI. >> But the FlexPrintJob.addObject() method takes only the UIComponent to >> print. >> > > You can add a datagrid to the print job and style it as you wish to try and > get the correct appearance. Alternatively you could loop throught your data > adding individual fields to the print job. > > Flex printing is dissappointingly primitive, based on a bitmap render. > > Paul > > >> Thanks in advance. >> >> ~ Sundar ~ >> >> --- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote: >> >>> FlexPrintJob >>> >>> >>> >>> ________________________________ >>> >>> From: [email protected] [mailto:[EMAIL PROTECTED] On >>> Behalf Of coolz22in >>> Sent: Tuesday, March 25, 2008 10:35 PM >>> To: [email protected] >>> Subject: [flexcoders] How do I print in Flex? >>> >>> >>> >>> Hi, >>> I want to print some data obtained from data grid & text input from >>> flex. How can I print data which i wanted in flex? What are the API's >>> available for printing? >>> >>> Thanks. >>> >>> ~ Sundar ~ >>> >>> >> >> ------------------------------------ >> >> -- >> Flexcoders Mailing List >> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt >> Search Archives: >> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups >> Links >> >> >> >> >> > > > ------------------------------------ > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links > > > > > __________ NOD32 2974 (20080326) Information __________ > > This message was checked by NOD32 antivirus system. > http://www.eset.com > > > > Hi,
As Paul said the Flash printing API is rather primitive but there are only a few limitations we can't overcome (being selecting printer one of them). You can take a look at FlexReport at http://www.kemelyon.com/bts It's a small framework to make the usage of the Flash printing API a bit easier. If you feel FlexReport isn't what you need here are some resources which might help you getting into printing in Flex. http://flexrays.wordpress.com/2007/08/08/printing-datagrid-in-flex/ http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm?href=00001965.html http://livedocs.adobe.com/flex/2/langref/flash/printing/PrintJob.html Kind Regards, Frederico Garcia

