I also just noticed something funny in this example...

After i send the text control to the printer the height of my text 
control get's smaller, instead of showing all lines (4 of them) it 
shrinks in height to just show 3 lines of text cutting off the text...

That does not happen in my real application but in my real applicatin 
i'm not sending the text control directly to the printer.  The text 
control is wrapped inside a grid table and panel control which is 
sent to the printer.... still has same strange effects on text 
though...


--Scott


--- In [email protected], "scott_flex" <[EMAIL PROTECTED]> wrote:
>
> 
> Here's a small sample app to illustrate what i'm running into..
> 
> http://www.scottkrause.com/PrintTest/PrintingTest.html
> 
> Right click to view source.... It's one file.
> 
> When you click the print button it just adds the text control to 
the 
> print job object. You'll notice not all the text is printed... I've 
> been testing sending the document to the printer as well as (for 
> saving paper) printing to pdf or Microsoft Document Image writer.
> 
> 
> --Scott
> 
> 
> --- In [email protected], "Alex Harui" <aharui@> wrote:
> >
> > Can you make a really small test case?
> > 
> >  
> > 
> > ________________________________
> > 
> > From: [email protected] 
> [mailto:[EMAIL PROTECTED] On
> > Behalf Of scott_flex
> > Sent: Tuesday, May 01, 2007 6:58 PM
> > To: [email protected]
> > Subject: [flexcoders] Html Text does NOT print in same format as
> > rendered on screen..
> > 
> >  
> > 
> > 
> > Text/Fonts render differently when sent to the printer than when 
> > viewed on screen, this is a real PAIN when formatting display 
> objects 
> > to send to the printer.
> > 
> > I've added a few Text controls to to a vbox with variable length 
> > data, some have custom font formatting, ALL installed fonts, even 
> > tested with embedded fonts.
> > 
> > The width of the text box is 100%, which fills to the width of 
the 
> > vbox, and the height is not set, so it grows to show all text. 
> Works 
> > great.. except when sent to the printer.
> > 
> > When I send these text controls to the print job.addObject and 
set 
> > scale type to show all, the text breaks at different points and 
> does 
> > NOT render the same as seen on screen. If the text happens to 
> render 
> > a bit wider, teh font could go to the next line and therefore NOT 
> > print.
> > 
> > I JUST WANT THE Text DISPLAY OBJECT to print on the printer in 
the 
> > exact format/rendering as seen on screen... is this not possible. 
I 
> > think when you send this text control to the printer, flash trys 
to 
> > get smart and not render the text as an image but as text... 
which 
> > changes some line breaks and such... this is really annoying.
> > 
> > Not sure how to solf this issue... just want all my text to 
print. 
> > 
> > Any help would be appreciated.
> > 
> > I posted this same issue in another post... not sure it was clear 
> as 
> > to what my problem is.
> >
>


Reply via email to