소스 검색

打印测试

lilei 3 년 전
부모
커밋
29ed2f8762
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      src/libs/JGPrint.js

+ 3 - 2
src/libs/JGPrint.js

@@ -45,8 +45,9 @@ export const JGPrint = function(data, type, printerType){
       // window.open(url)
       const LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM'))
       LODOP.ADD_PRINT_PDF(0,0,"100%","100%",url);
-       LODOP.SET_PRINT_STYLEA(0,"PDFScalMode",1);
-       LODOP.SET_PRINT_PAGESIZE(3,0,0,"");
+      LODOP.SET_PRINT_STYLEA(0,"PDFScalMode",1);
+      LODOP.SET_PRINT_PAGESIZE(3,0,0,"");
+      LODOP.PREVIEW()
     } else if (type == 'print') { //  打印
       window.frames['printfsqd'].focus()
       window.frames['printfsqd'].print()