0 Replies Latest reply on Aug 31, 2010 4:08 AM by pogla129

    How  to control the  flex print size............

    pogla129

      I am facing some problem  with mainting the size of a report

      in flex   using FlexPrintJob.

      I have Panel component in my interface and within it  there is some components  Myintesion is to print all  of those  but

      problem is that when i press the print button it covers all the page  of a A4 size page.

       

      But my requirement is that I want to set the custom size page(ex:height:552px and width:452px  or Card Size)

       

      please give me some  solution to rectify the same...  if  u can.....................

       

       

       

      my code is given below

       

      here PanelPrint  is the panel component ID.

       

       

      private function PrintJob():void{

       

      try{

       

       

      var printJob:FlexPrintJob= new FlexPrintJob();

       

      if (printJob.start() != true) return;

      printJob.addObject(PanelPrint, FlexPrintJobScaleType.NONE);

      printJob.send();

       

      }

       

       

      catch( ex : Error )

      {

      Alert.show( ex.message );

      }

      }