This discussion is archived
4 Replies Latest reply: May 24, 2012 8:24 PM by 932515 RSS

jvue print more than one print in network printer

932515 Newbie
Currently Being Moderated
When i try to print from jvue getting more than one print from different printer .
where i PC connected with 2 printers,one printer is my default printer .if giving print on printer(not default printer), that file print in both printer.

applet code:

<html> <head> <script>
function myFunction()
{
var myApp = window.document.applets["JVue"];window.document.applets["JVue"].getActiveVueBean().getProfile().addString("PRINTOPTIONS", "PRINTERNAME","HP LaserJet P1008 on 192.168.3.1");
var pPropsClass = myApp.getClass("com.cimmetry.common.PrintProperties"); var pProps = pPropsClass.newInstance(); pProps.setProfile(myApp.getActiveVueBean().getProfile());
var printop = myApp.getClass("com.cimmetry.common.PrintOptions");
var printoperation = printop.newInstance();
printoperation.setPaperSize(printoperation.PAPER_A3);
pProps.setOptions(printoperation);
var vectorClass = myApp.getClass("java.util.Vector");
var fileList = vectorClass.newInstance();
var vList="server://ADMIN03 05 12 12 30 55 749\\654744\\42600_1600x1200-wallpaper-cb1320062937.jpg";
var SplitResult = vList.split(',');
for (i=0;i<SplitResult.length;i++)
{
var filepathe=SplitResult.toString();
fileList.addElement(filepathe);
myApp.batchPrint(fileList,pProps,true,true);
var vcomp = myApp.waitForLastMethod();
BatchPrint();
}
}
</script> Printing in progress…
</head>
<body onload="window.focus();">
<form id="form1" runat="server" >
<APPLET
NAME="JVue"
CODE="com.cimmetry.jvue.JVue.class"
CODEBASE="http://192.168.3.1/jVue"
ARCHIVE="jvue.jar,jogl.jar,gluegen-rt.jar"
HSPACE="0" VSPACE="0"
WIDTH="0%" HEIGHT="0%" MAYSCRIPT> <param name="USERNAME" VALUE="ADMIN03 05 12 12 30 55 749">
<PARAM NAME="ONINIT" VALUE="myFunction();">
<PARAM NAME="EMBEDDED" VALUE="true">
<PARAM NAME="VERBOSE" VALUE="false">
<PARAM NAME="CACHEUI" VALUE="false" >
<PARAM NAME="ENABLEEMF" VALUE="true" >
<PARAM NAME="NOCOOKIES" VALUE="true" >
<param name="failure_url" value="failure.html">
<PARAM NAME="PDFCACHELEVEL" VALUE="High" >
<PARAM NAME="USEMESHCACHE" VALUE="0" >
<PARAM NAME="GUIFILE" VALUE="ENABLE_PRINT.gui" >
<PARAM NAME="JVUESERVER" VALUE="http://192.168.3.1:5098/servlet/VueServlet">


JRE 6.0 or greater is required
You have no Java plug-in installed
</APPLET> </form> </body> </html>

Edited by: shio on May 3, 2012 12:17 AM

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points