หน้า 1 จากทั้งหมด 1

เพิ่ม/ลดขนาดตัวอักษรได้หรือไม่

โพสต์โพสต์แล้ว: ศุกร์ ส.ค. 28, 2009 10:49 am
โดย gordai
การออกใบแจ้งหนี้ระบบ express สามารถเพิ่มหรือลดขนาดตัวอักษรได้หรือไม่
ถ้าทำได้ ขอทราบ Code ที่ต้องใช้ค่ะ

Re: เพิ่ม/ลดขนาดตัวอักษรได้หรือไม่

โพสต์โพสต์แล้ว: ศุกร์ ส.ค. 28, 2009 11:04 am
โดย (=_=)"nongnina
\027\033\000      10 ตัวนิ้ว เป็นขนาดใหญ่ที่สุดค่ะ
\027\033\001      12 ตัวนิ้ว
\018\027\103      15 ตัวนิ้ว
\027\033\004      17 ตัวนิ้ว
\027\033\005      20 ตัวนิ้ว


;D :D ;)

Re: เพิ่ม/ลดขนาดตัวอักษรได้หรือไม่

โพสต์โพสต์แล้ว: ศุกร์ ส.ค. 28, 2009 11:14 am
โดย gordai
แล้วต้องวาง Code ไว้ตรงไหนของบรรทัดคะ
เช่น ต้องการให้ หมายเหตุตัวเล็กลง เป็นต้น

Re: เพิ่ม/ลดขนาดตัวอักษรได้หรือไม่

โพสต์โพสต์แล้ว: ศุกร์ ส.ค. 28, 2009 11:30 am
โดย (=_=)"nongnina
ต้องดูบรรทัด Print Control=\027\033\001 เป็นหลักก่อนนะค่ะว่าเป็นเท่าไหร่เช่นในที่นี้คือ 12 ตัวนิ้วนะค่ะ อยากให้หมายเหตุตัวเล็กลงนะค่ะ ก้อต้องใช้สูตร 15 ตัวนิ้วค่ะ \018\027\103

Su:\018\027\103  หมายเหตุ                              \027\033\001                                               
Su:\018\027\103 ~HREM1                                \027\033\001           
Su:\018\027\103 ~HREM2                                \027\033\001                                     
Su:\018\027\103 ~HREM3                                \027\033\001 


;D ;) :D
ลองพิมพ์แบบทดสอบออกเครื่องพิมพ์ดูนะค่ะ

Re: เพิ่ม/ลดขนาดตัวอักษรได้หรือไม่

โพสต์โพสต์แล้ว: พฤหัสฯ. ต.ค. 08, 2009 10:44 am
โดย taeinthamara
XXX\XXX\XXX อธิบายให้หน่อยครับว่ามันเป็นโค๊ตอะไร

Re: เพิ่ม/ลดขนาดตัวอักษรได้หรือไม่

โพสต์โพสต์แล้ว: พฤหัสฯ. ต.ค. 08, 2009 11:07 am
โดย savek
เป็นคำสั่งที่ใช้กับเครื่องพิมพ์ของ Epson ครับ (ซึ่งก็ถูกนำไปใช้เป็นมาตรฐานของเครื่องพิมพ์ทั่วๆ ไปด้วยครับ)

อย่าง \027\033 ก็เป็นคำสั่งในการปรับขนาดตัวอักษรครับ ส่วนคำสั่งอื่นๆ ก็ตามนี้นะครับ :)

Epson Control Codes

Epson Printer Codes were the industry standard through most of the 80s when DOS programs were in their prime.  Most DOS programs have an option to choose an Epson compatible printer.

The following codes are supported: (ascii codes are displayed here in decimal format)

Remenber that these prtinter codes are used to determine font characteristics when DOS Printer creates the graphic images for your report.  They are not passed to your printer.  You should set your DOS software to use EPSON printer codes no matter what Windows printer or Printer driver you are using !

013 010  =  New Line  (This can be changed to 010 013 - See Setup | Advanced Options)

012  = New Page

015 = Compressed on (15 cpi)
018 = Compressed Off

027 033 n where n =
  000 - Pica  (10 cpi, Normal Font)  This is "normal text" for most printers
              001 - Elite  (12 cpi, Normal Font)
  004 - Compressed (15 cpi, Normal Font)
              016 - Pica  (10 cpi, Bold Font)
  020 - Elite  (12 cpi, Bold Font)

027 045 001 - Underline On
027 045 000 - Underline Off

027 052 - Italics On
027 053 - Italics Off

027 069 - Bold On
027 070 - Bold Off

027 077 - Elite
027 080 - Pica
027 080 015 - Compressed Pica (17 cpi)


027 130 001 - Print the report in Landscape (can occur antwhere within report)

อ้างอิง http://www.dsbglobal.com/dosprinter/hel ... ts0008.htm