70 likes | 214 Views
HP PCL5 Printing. Using Business Rules to create formatted forms. Formatting Print. Fonts Boxes Lines Shading. Fonts. Sources of Fonts Printer resident font Downloaded font Fixed size vs. Scalable Proportional vs. Fixed width. Load a Font and Assign Variable.
E N D
HP PCL5 Printing Using Business Rules to create formatted forms
Formatting Print • Fonts • Boxes • Lines • Shading
Fonts • Sources of Fonts • Printer resident font • Downloaded font • Fixed size vs. Scalable • Proportional vs. Fixed width
Load a Font and Assign Variable 03500 DEF LIBRARY FNLOADFONT$*50(NUMBER$,FONTCALL$*50;FONT$*100,FILENAME$*100) !: ! FILNUM = DYNAMICALLY SET STARTING AT 126 !: ! NUMBER$ = NUMBER OF "FONT$(#)" TO SET !: ! FONTCALL$ = ESCAPE CODE USED TO INVOKE FONT !: ! filename$ = FILE NAME TO USE AS AN INTERMEDIARY ! FONT$ = FILE NAME OF FONT TO LOAD
Program Line to Print Text Box 01610 LET V=.75 !: LET H=1+1/2 !: LET BV=1/6 !: LET BH=5 !: LET SHADE=0 !: LET TV=0 !: LET TH=-1 !: LET FNPRINTBOX(127,V,H,BV,BH,SHADE,TV,TH,"Rabies Vaccination Certificate",11,FONT$(1))
Print Shaded and Bordered Text Box 10170 LET V=V+BV !: LET H=5 !: LET BV=1/4 !: LET BH=2+3/8 !: LET SHADE=0 !: LET FNDRAWBOX(FILNUM,V,H,BV,BH,.01,SHADE) !: LET TV=.8*BV !: LET TH=.1 !: LET FNPRINTBOX(FILNUM,V,H,0,0,SHADE,TV,TH,"Federal ID#",CPI,F10$)
Printing a Bar Graph with Bargraph.dll 01010 DEF LIBRARY FNBARGRAPH(MAT NAMES$,MAT AMT,MAT AMT$;BASEZERO) 01011 ! names$(1) = Main title !: ! names$(2) = Sub-title !: ! names$(3) = Y-axis title !: ! names$(4) = X-axis title !: ! names$(5) = Column 1 title !: ! names$(6) = Column 2 title !: ! names$(7) = Column 3 title …. 01014 ! amt(1) = data element 01016 ! mat amt$ = labels for each data element group (X Captions)