3 Replies Latest reply on Apr 24, 2012 4:13 PM by ArtashesGamarian

    jvue print sheet size

      i using Jvue 20.1 version to printing file .i am using different sheet size file to print with Jvue.
      when i try to print A3 sheet size single file ,it printed in A3 size.if batch print (mixed A4 and A3) all files are printed in A4 formats.where printer support both A4 and A3 .

      i want to know there is any Parameter in applet to specify sheet Size to print or any JavaScript function.

      Edited by: 929512 on Apr 23, 2012 4:25 AM
        • 1. Re: jvue print sheet size
          You will need to use com.cimmetry.jvue.JVue.printFile() API and specify paper size in PrintOptions.
          com.cimmetry.common.PrintProperties: getOptions().setPaperSize().
          Use PrintOptions.PAPER_A4 or PrintOptions.PAPER_A3.
          1 person found this helpful
          • 2. Re: jvue print sheet size
            Thanks for replay.

            i changed this exisiting code to following as
            function myFunction()
            var myApp = window.document.applets["JVue"];window.document.applets["JVue"].getActiveVueBean().getProfile().addString("PRINTOPTIONS", "PRINTERNAME","PDF Printer");
            var pPropsClass = myApp.getClass("com.cimmetry.common.PrintProperties");
            var pProps = pPropsClass.newInstance();

            // API and specify paper size in PrintOptions.
            // com.cimmetry.jvue.JVue.printFile()
            // PrintOptions.PAPER_A4

            var vectorClass = myApp.getClass("java.util.Vector");
            var fileList = vectorClass.newInstance();
            var vList="server://ADMIN24 04 12 08 56 26 890\\703178\\A3.jpg";
            var SplitResult = vList.split(',');
            for (i=0;i<SplitResult.length;i++)
            var filepathe=SplitResult.toString();
            var vcomp = myApp.waitForLastMethod();

            i want to know this correct pProps.getOptions().setPaperSize(PAPER_A4);
            • 3. Re: jvue print sheet size
              You can either use:
              var PAPER_A3 = 8;
              var PAPER_A4 = 9;

              ...or if you don't want to care about constants and OK with slightly ugly code then:
              1 person found this helpful