0 Replies Latest reply on Jun 1, 2011 5:22 AM by kfreigofas

    firefox print in xps format, stucks Save As window

    kfreigofas

      Hallo,

      I use flex_sdk_3 and firefox4.
      problem as follows:
      I call the function normally realPrint ():

      private function doPrint (): void
      {

      thePrintView = null;
      thePrintView FormPrintView = (PopUpManager.createPopUp (this, FormPrintView, true));

      thePrintView.show();
      realPrint ();
      }

      public function realPrint (): void
      {
      var printJob: FlexPrintJob FlexPrintJob = new ();
      if (printJob.start ()! = true) return;
      printJob.addObject (thePrintView, FlexPrintJobScaleType.SHOW_ALL);
      printJob.send ();
      }

      everything worked and I save a file in XPS format.
      When I try to invite realPrint (event: Event)

      private function doPrint (): void
      {

      thePrintView = null;
      thePrintView FormPrintView = (PopUpManager.createPopUp (this, FormPrintView, true));

      thePrintView.show();

       


      }

      public function realPrint (event: Event): void
      {
      var printJob: FlexPrintJob FlexPrintJob = new ();
      if (printJob.start ()! = true) return;
      printJob.addObject (thePrintView, FlexPrintJobScaleType.SHOW_ALL);
      printJob.send ();
      }
      okay, but then i try to save in the XPS format - all stuck on Firefox Save As window, I have to kill firefox plugin container.

      everything works with IE9, and i read that Chrome have a problem, it says: you do not have premision to save file (on desktop or else where..) or something like that.

       

      I read then you added object to printJob  - there object can not be changed till you send().

      I need object to bee fully created, becouse there still loading images, but on complete event, part with xps save to file - fails. Then i call as a normal function, not by event - works nicelly. Then i call by MouseEvent.Click (pressing a button) - works.

      So how to ensore that Popup is fully created? or this is not the problem?

      I tried thePrintView.validateNow() - no help., or there need to be executed not by event?

      I tried add timer - same problem. Any suggestion?