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

    printing richtextbox

    wegoodwin Community Member

      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" />