0 Replies Latest reply on Mar 13, 2007 8:57 AM by justin_beckwith

    Printing Text

    justin_beckwith
      Hi All,
      when attempting to print a large amount of text in flex, I am running into some line breaking issues. When the height of the rendered text control is larger than that of a page, the last line of text may be split into two, over the pages. There also doesn't seem to be a way to enforce a page by page top / bottom margin. Code:

      var text : Text;
      var printJob : FlexPrintJob;

      printJob = new FlexPrintJob();
      printJob.start();

      text = new Text();
      text.htmlText = "very long piece of text, at least two pages worth here";
      text.width = 500;
      Application.application.addChild(text);
      printJob.addObject(text);
      printJob.send();

      Any help would be appreciated