中国程序员联盟 正在重新改版中ing 不便之处还请见谅 改版后将内容涉及java delphi .net php
 
  首页 | 数据库开发 | 网络通讯 | 多线程 | 多媒体开发 | 图像处理 | 程序人生 | 系统函数 | 控件开发 | Web服务
 
  当前位置:笨鱼delphi技术网>数据库开发>打印报表>文章内容

delphi 改变打印机字符集

来源:站内 关于:bill 发布时间:2007-06-23   [收藏] [推荐]

uses Sysutils,Printers;

procedure TForm1.Button1Click(Sender: TObject);

var

  Dosya:TextFile

begin

  with Printer do

  begin

  AssignPrn(Dosya);

  Rewrite(Dosya);

  Printer.Canvas.Font.Name:='Courier New';

  Printer.Canvas.Font.Style:=[fsBold];

  Printer.Canvas.Font.Size:=18;

//****for Turkish special characters

  Writeln(Dosya,'eüit??y');

 

//****set Font CharSet to Turkish(162)

  Printer.Canvas.Font.Charset:=162;

  Writeln(Dosya,'eüit??y');

  CloseFile(Dosya);

  end;

end;

The following table lists the predefined constants provided for standard character sets:

type TFontCharset = 0..255;

Constant Value Description

ANSI_CHARSET 0 ANSI characters.

DEFAULT_CHARSET 1 Font is chosen based solely on Name and Size. If the described font is not available on the system, Windows will substitute another font.

SYMBOL_CHARSET 2 Standard symbol set.

MAC_CHARSET 77 Macintosh characters. Not available on NT 3.51.

SHIFTJIS_CHARSET 128 Japanese shift-jis characters.

HANGEUL_CHARSET 129 Korean characters (Wansung).

JOHAB_CHARSET 130 Korean characters (Johab). Not available on NT 3.51

 

GB2312_CHARSET 134 Simplified Chinese characters (mainland china).

CHINESEBIG5_CHARSET 136 Traditional Chinese characters (taiwanese).

GREEK_CHARSET 161 Greek characters. Not available on NT 3.51.

TURKISH_CHARSET 162 Turkish characters. Not available on NT 3.51

VIETNAMESE_CHARSET 163 Vietnamese characters. Not available on NT 3.51.

HEBREW_CHARSET 177 Hebrew characters. Not available on NT 3.51

ARABIC_CHARSET 178 Arabic characters. Not available on NT 3.51

 

BALTIC_CHARSET 186 Baltic characters. Not available on NT 3.51.

RUSSIAN_CHARSET 204 Cyrillic characters. Not available on NT 3.51.

THAI_CHARSET 222 Thai characters. Not available on NT 3.51

EASTEUROPE_CHARSET 238 Includes diacritical marks for eastern european countries. Not available on NT 3.51.

OEM_CHARSET 255 Depends on the codepage of the operating system.


[浏览: 次]   
上一篇:delphi 调出添加打印机向导   下一篇:delphi 设定缺省打印机
[收藏] [推荐] [返回顶部] [打印本页] [关闭窗口]  
    评论加载中…
google adsense热点文章
·delphi 获取打印机状态
·delphi 打印时改变纸张大小
·delphi 判断打印机能否打印的PostScrip
·delphi 检测存在打印机
·delphi Tmemo,TstringList,Tstrings打
·delphi 如何保存打印机信息到注册表
·delphi 判断系统是否有打印机连接
·delphi 在打印中间改变打印设置
·delphi 获取打印驱动,打印端口名
·delphi 使用打印机内置字体打印
·delphi 改变打印机的打印端口
·delphi 如何发二进制字符到打印机
     delphi技术网 | firefox 下载 | Avant Browser下载 | dedecms 技术网 | drupal 爱好者 | php 技术网
  Copyright@www.delphichm.com,2006-2009.All Rights Reserved.
 
程序员联盟 | delphi Java .net|QQ:707102932