--- In [email protected], "Paul Andrews" <p...@...> wrote: > > > ----- Original Message ----- > From: "Amy" <amyblankens...@...> > To: <[email protected]> > Sent: Friday, April 03, 2009 10:57 PM > Subject: [flexcoders] Re: Print existing documents in Flex > > > > --- In [email protected], "Paul Andrews" <paul@> wrote: > >> > >> PrintJob won't print external files. The only way to do it with Flex > >> would > >> be to read each file and add it's contents to a container to be rendered > >> using Printjob. > >> > >> Unfortunately Flex isn't a printspooler! > >> > >> You might have some luck trying to navigate to the document url by > >> popping > >> up a new browser window, which may then display the document and would > >> still > >> require the user to use separate print dialogs. > >> > >> The only other solution is via networked printer support on the server. > >> It's > >> not going to be straightforward. > > > > You could create a page that treats each of the URL's as a service, then > > stitches them all together. You might even be able to get away with not > > removing the html, head, and body tags. Browsers can be amazingly > > tolerant of that kind of junk. > > Interesting suggestion - might be a problem with pagination - you'd want > each document to at least start on a new page. AFAIK it's not possible to > force a page break in a HTML document.
http://www.w3schools.com/HTMLDOM/prop_style_pagebreakafter.asp http://www.w3schools.com/CSS/pr_print_pageba.asp http://www.w3schools.com/Css/pr_print_pagebb.asp If you didn't strip out the body tags and that actually didn't break anything, you could use page-break-after on body tags. HTH; Amy

