0 Replies Latest reply on Dec 22, 2011 10:05 PM by wegoodwin

    printing richtextbox

    wegoodwin Newcomer

      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)



                          printJob.addObject(tb_print, FlexPrintJobScaleType.NONE);




      The rich text box is defined as follows:


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