Skip navigation
Currently Being Moderated

printing richtextbox

Dec 22, 2011 10:05 PM

Tags: #flash_builder_4.6

Is there a way to print the contents of a richtextbox?  I have tried the following but it does not work:

 

var tempstr:String = "<b>Hello World</b>";

 

               

                tb_print.textFlow = TextConverter.importToFlow(tempstr, TextConverter.TEXT_FIELD_HTML_FORMAT);

               

                    var printJob:FlexPrintJob = new FlexPrintJob();

                   

                    if (printJob.start() != true)

                        return;

                   

                    printJob.addObject(tb_print, FlexPrintJobScaleType.NONE);

                   

                    printJob.send();

                   

The rich text box is defined as follows:

       

<s:RichText id="tb_print" x="21" y="305" width="757" height="345" />

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points