0 Replies Latest reply on Dec 7, 2007 1:21 PM by drxer

    printing multipage tilelist

    drxer
      hi
      I have been trying to print out a tilelist that is multipage and has images.

      1. the images are not showing up.
      2. i can not get the list to scrolldown.

      here is the code to print out

      private function doPrint():void{
      var pj:FlexPrintJob = new FlexPrintJob();
      if(pj.start())
      {
      var myPrintView:PrintView2=new PrintView2();
      this.addChild(myPrintView);
      myPrintView.myPrintDG.dataProvider = aRep.dataProvider;
      pj.addObject(myPrintView);
      myPrintView.myPrintDG.verticalScrollPosition += 30;
      Alert.show("test" + myPrintView.myPrintDG.maxVerticalScrollPosition + "test" + myPrintView.myPrintDG.verticalScrollPosition);
      pj.send();
      removeChild(myPrintView);
      }

      }