|
@@ -60,7 +60,16 @@ export const textFormat = function(command,text,maxFontNums,left,top,lightHeight
|
|
}
|
|
}
|
|
return rowTop
|
|
return rowTop
|
|
}
|
|
}
|
|
-
|
|
+export const printText = function(tsc,text){
|
|
|
|
+ const command = tsc.jpPrinter.createNew()
|
|
|
|
+ command.init()
|
|
|
|
+ command.setSize(40, 30)
|
|
|
|
+ command.setGap(3)
|
|
|
|
+ command.setCls()
|
|
|
|
+ command.setText(100, 48, "5", 4, 3, text)
|
|
|
|
+ command.setPagePrint(1,1)
|
|
|
|
+ return command
|
|
|
|
+}
|
|
|
|
|
|
export const printTempl = function(tsc,data){
|
|
export const printTempl = function(tsc,data){
|
|
let top = 24
|
|
let top = 24
|