打印弹出框参数设置

 

StringBuffer sb = new StringBuffer();
sb.append("var pp = this.getPrintParams(); ");
sb.append("pp.interactive = pp.constants.interactionLevel.silent; ");
sb.append("pp.colorOverride = pp.constants.colorOverrides.mono; ");
sb.append("pp.firstPage = 0; ");
sb.append("pp.lastPage = 0; ");
sb.append("this.print(pp); ");

 

 

String scriptString = "var pp = this.getPrintParams();" +					
	"				var str = '';  " + 
	"				for(var p in pp) { " +
	"					str = str + p + '--'; " +
	"				} " +
	"				app.alert(str);";

 

 

this.print({bUI: false, bSilent: true, bShrinkToFit: true});

//nStart:0, nEnd:5   //----表示打印  1到6页

 

你可能感兴趣的:(弹出框)