1 Reply Latest reply on Dec 6, 2010 7:16 PM by Jantasy

    Print preview is blank if set printerName by js.

    Jantasy

      Need help.

       

      I inject js to pdf file.

      ===============

      var pp=this.getPrintParams();

      this.print(pp);

      ===============

      (After the pdf opened)Execute the codes, print dialog will display. And eveything is OK.

       

       

      If add a statement like below:

      =============

      var pp=this.getPrintParams();

      pp.printerName='Microsoft XPS Document Writer';

      this.print(pp);

      =============

      Execute the codes, print dialog will display.Setting printerName is success. But the preview is blank.

      image.JPG

       

       

      Are my codes right?

      Is it a bug?

       

      Is there a solution to avoid it?

      What should I do?

       

      Can anybody help me?