<?xml version="1.0" encoding="gb2312"?>
<rss version="2.0">
<channel>
<title>打印 报表</title>
<link>/html/Database/print/index.html</link>
<description>数据库开发 / 打印 报表</description>
<language>zh-cn</language>
<generator>&lt;a href='mailto:webmaster@delphichm.com'&gt;
Copyright@delphichm,&lt;/a&gt;2006-2009.&lt;br/&gt;All Rights Reserved.&lt;br/&gt;
&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot; src=&quot;http://js.users.51.la/1120570.js&quot;&gt;&lt;/script&gt;
</generator>
<webmaster>webmaster@delphichm.com</webmaster>
<item>
    <title>delphi 打印Trichedit</title>
    <link>/html/Database/print/20070706/320.html</link>
    <description>How to print a TRichEdit upside down </description>
    <pubDate>2007-07-06</pubDate>
    <category>打印 报表</category>
    <author>Jonas Bilinkevicius</author>
    <comments>国外</comments>
</item>
<item>
    <title>delphi Tmemo,TstringList,Tstrings打印</title>
    <link>/html/Database/print/20070706/319.html</link>
    <description>How to print a TMemo, TStringlist or TStrings?</description>
    <pubDate>2007-07-06</pubDate>
    <category>打印 报表</category>
    <author>Peter Below</author>
    <comments>国外</comments>
</item>
<item>
    <title>delphi 如何发二进制字符到打印机</title>
    <link>/html/Database/print/20070706/318.html</link>
    <description>How to send a raw string to the printer</description>
    <pubDate>2007-07-06</pubDate>
    <category>打印 报表</category>
    <author>Maarten de Haan</author>
    <comments>国外</comments>
</item>
<item>
    <title>delphi 如何保存打印机信息到注册表</title>
    <link>/html/Database/print/20070706/317.html</link>
    <description>
I'm trying to get Windows to remember settings - in particular paper type, size and orientation - configured using the Printer Setup dialogue. It's confusing me. It seems that sometimes Windows remembers these settings and sometimes not. The tech</description>
    <pubDate>2007-07-06</pubDate>
    <category>打印 报表</category>
    <author>William Gerbert</author>
    <comments>国外</comments>
</item>
<item>
    <title>delphi 如何发改变HP打印机消息</title>
    <link>/html/Database/print/20070706/316.html</link>
    <description>How to change the ReadyMessage of HP-LaserJet printers with a LCD display?</description>
    <pubDate>2007-07-06</pubDate>
    <category>打印 报表</category>
    <author>Maarten de Haan</author>
    <comments>国外</comments>
</item>
<item>
    <title>delphi 打印LabelsVCL组件</title>
    <link>/html/Database/print/20070706/315.html</link>
    <description>A simple component to print labels</description>
    <pubDate>2007-07-06</pubDate>
    <category>打印 报表</category>
    <author>Alejandro Castro</author>
    <comments>国外</comments>
</item>
<item>
    <title>delphi 一个打印Labels的类</title>
    <link>/html/Database/print/20070706/314.html</link>
    <description>A very simple class to print labels</description>
    <pubDate>2007-07-06</pubDate>
    <category>打印 报表</category>
    <author>Alejandro Castro</author>
    <comments>国外</comments>
</item>
<item>
    <title>delphi 获取打印驱动，打印端口名</title>
    <link>/html/Database/print/20070623/98.html</link>
    <description>  if PrintDialog1.Execute then begin
    GetMem(pDevice, cchDeviceName);
    GetMem(pDriver, MAX_PATH);
    GetMem(pPort, MAX_PATH);
    Printer.GetPrinter(pDevice, pDriver, pPort, hDMode);
    if lStrLen(pDriver) = 0 then begin
      GetProfil</description>
    <pubDate>2007-06-23</pubDate>
    <category>打印 报表</category>
    <author>bill</author>
    <comments>站内</comments>
</item>
<item>
    <title>delphi 改变缺省打印机</title>
    <link>/html/Database/print/20070623/97.html</link>
    <description>begin
  GetWindowsDirectory(WinIniFileName, sizeof(WinIniFileName));
  StrCat(WinIniFileName, '\win.ini');
  WinIni := TIniFile.Create(WinIniFileName);
  try 
    WinIni.WriteString('windows',
                       'device',
          </description>
    <pubDate>2007-06-23</pubDate>
    <category>打印 报表</category>
    <author>bill</author>
    <comments>站内</comments>
</item>
<item>
    <title>delphi 判断打印机能否打印的PostScript</title>
    <link>/html/Database/print/20070623/96.html</link>
    <description>  TestInt := GETTECHNOLOGY;
 {$IFDEF WIN32}
  if ExtEscape(Dc,
               QUERYESCSUPPORT,
               sizeof(TestInt),
               @TestInt,
               0,
               Nil) &gt; 0 then begin
     Err := ExtEscape(Dc,
          </description>
    <pubDate>2007-06-23</pubDate>
    <category>打印 报表</category>
    <author>bill</author>
    <comments>站内</comments>
</item>
<item>
    <title>delphi 打印时改变纸张大小</title>
    <link>/html/Database/print/20070623/95.html</link>
    <description>procedure SetPaperSize(X, Y: Integer);
// 单位是0.1mm
// A4时 Printer.Pagewidth:=1440；  A5时 Printer.Pagewidth:=1049；
// B5时 Printer.Pagewidth:=1290；  16K时 Printer.Pagewidth:=1035；
// lq1600宽行打印机这个值宽度最大为42cm左右, 长度大约2m。
</description>
    <pubDate>2007-06-23</pubDate>
    <category>打印 报表</category>
    <author>bill</author>
    <comments>站内</comments>
</item>
<item>
    <title>delphi 获取打印机状态</title>
    <link>/html/Database/print/20070623/94.html</link>
    <description>var
  ErrorCode, C : BYTE;
  code, x : integer;
  s : string;

           function GetPrinterStatus (LPT: Word): Byte;
           {Pass 1 in LPT for LPT1}
           begin
             asm
               mov ah,2
               mov dx,LPT
</description>
    <pubDate>2007-06-23</pubDate>
    <category>打印 报表</category>
    <author>bill</author>
    <comments>站内</comments>
</item>
<item>
    <title>delphi 安装打印驱动</title>
    <link>/html/Database/print/20070623/93.html</link>
    <description>  WriteProfileString('PrinterPorts',
                     'DriverName',
                     'DRVFILE,FILE:,15,45');
  WriteProfileString('Devices',
                     'DriverName',
                     'DRVFILE,FILE:');
  StrCopy</description>
    <pubDate>2007-06-23</pubDate>
    <category>打印 报表</category>
    <author>bill</author>
    <comments>站内</comments>
</item>
<item>
    <title>delphi 使用打印机内置字体打印</title>
    <link>/html/Database/print/20070623/92.html</link>
    <description>    Printer.Canvas.Font.Handle := GetStockObject(DEVICE_DEFAULT_FONT);
    GetTextMetrics(Printer.Canvas.Handle, tm);
    for i := 1 to 10 do begin
      Printer.Canvas.TextOut(100,
                             i * tm.tmHeight +
                </description>
    <pubDate>2007-06-23</pubDate>
    <category>打印 报表</category>
    <author>bill</author>
    <comments>站内</comments>
</item>
<item>
    <title>delphi 改变打印机的打印端口</title>
    <link>/html/Database/print/20070623/91.html</link>
    <description>  if PrintDialog1.Execute then begin
    GetMem(pDevice, cchDeviceName);
    GetMem(pDriver, MAX_PATH);
    GetMem(pPort, MAX_PATH);
    Printer.GetPrinter(pDevice, pDriver, pPort, hDMode);
    Printer.SetPrinter(pDevice, PDriver, 'FILE:', hDM</description>
    <pubDate>2007-06-23</pubDate>
    <category>打印 报表</category>
    <author>bill</author>
    <comments>站内</comments>
</item>
<item>
    <title>delphi 在打印中间改变打印设置</title>
    <link>/html/Database/print/20070623/90.html</link>
    <description>      if not odd(PageNumber) then begin
        pDMode^.dmFields := pDMode^.dmFields or dm_PaperSize;
        pDMode^.dmPaperSize := DMPAPER_LETTER;
      end else begin
        pDMode^.dmFields := pDMode^.dmFields or dm_PaperSize;
        pDMod</description>
    <pubDate>2007-06-23</pubDate>
    <category>打印 报表</category>
    <author>bill</author>
    <comments>站内</comments>
</item>
<item>
    <title>delphi 获取打印机边距</title>
    <link>/html/Database/print/20070623/89.html</link>
    <description>        if Escape(Printer.Handle,
                  GETPHYSPAGESIZE,
                  0,
                  nil,
                  @Margin) &gt; 0  then begin
          Margin.x := (Margin.x -
                       GetDeviceCaps(Printer.Handle, H</description>
    <pubDate>2007-06-23</pubDate>
    <category>打印 报表</category>
    <author>bill</author>
    <comments>站内</comments>
</item>
<item>
    <title>delphi 判断打印机是否能打印图像</title>
    <link>/html/Database/print/20070623/88.html</link>
    <description>if (GetDeviceCaps(Printer.Canvas.Handle, RASTERCAPS) and
   RC_NONE) = RC_NONE then
NoGraphics := True;

if (GetDeviceCaps(Printer.Canvas.Handle, RASTERCAPS) and
   RC_STRETCHDIB) = RC_STRETCHDIB then
DeviceDirectly SupportsStretchDIB := True e</description>
    <pubDate>2007-06-23</pubDate>
    <category>打印 报表</category>
    <author>bill</author>
    <comments>站内</comments>
</item>
<item>
    <title>delphi 检测打印缓冲池中打印任务数</title>
    <link>/html/Database/print/20070623/87.html</link>
    <description>  Lable1.Caption := IntToStr(msg.JobsLeft) +
                    ' Jobs currenly in spooler';
  msg.Result := 0;</description>
    <pubDate>2007-06-23</pubDate>
    <category>打印 报表</category>
    <author>bill</author>
    <comments>站内</comments>
</item>
<item>
    <title>delphi 检测存在打印机</title>
    <link>/html/Database/print/20070623/86.html</link>
    <description>Printers是专门用来控制打印机的，可是在没有安装打印机时，却会提示I/O错误，所以必须有一个检测是否存在打印机的方法，我试过很多方法，可是I/O错误总是比我的判断早出现，所以采用以下的烂招来检测打印机。首先在uses增加Printers，再准备一个列表框ComboBox1，其属</description>
    <pubDate>2007-06-23</pubDate>
    <category>打印 报表</category>
    <author>bill</author>
    <comments>站内</comments>
</item>
<item>
    <title>delphi 切换打印机的彩色模式</title>
    <link>/html/Database/print/20070623/85.html</link>
    <description>    PrinterIndex := PrinterIndex;
    GetPrinter(Device, Driver, Port, hDMode);

    if hDMode &lt;&gt; 0 then begin
      pDMode := GlobalLock(hDMode);
      if pDMode &lt;&gt; nil then begin
        pDMode.dmFields := pDMode.dmFields or dm_Color;
      </description>
    <pubDate>2007-06-23</pubDate>
    <category>打印 报表</category>
    <author>bill</author>
    <comments>站内</comments>
</item>
<item>
    <title>delphi 调用添加打印对话框</title>
    <link>/html/Database/print/20070623/84.html</link>
    <description>ShellExecute(Handle, 'open', 'rundll',
'shell32.dll,SHHelpShortcuts_RunDLL AddPrinter', '', SW_SHOWNORMAL); </description>
    <pubDate>2007-06-23</pubDate>
    <category>打印 报表</category>
    <author>bill</author>
    <comments>站内</comments>
</item>
<item>
    <title>delphi 判断打印机是否黑白</title>
    <link>/html/Database/print/20070623/83.html</link>
    <description>IsMonochrome := (GetDeviceCaps(Printer.Handle, BITSPIXEL) *
   GetDeviceCaps(Printer.Handle, PLANES)) = 1;</description>
    <pubDate>2007-06-23</pubDate>
    <category>打印 报表</category>
    <author>bill</author>
    <comments>站内</comments>
</item>
<item>
    <title>delphi 枚举打印缓冲池打印任务</title>
    <link>/html/Database/print/20070623/82.html</link>
    <description>  case Status of
    0:                            Result := 'Waiting';
    JOB_STATUS_PAUSED:            Result := 'Paused';
    JOB_STATUS_ERROR:             Result := 'Error';
    JOB_STATUS_DELETING:          Result := 'Deleting';
  </description>
    <pubDate>2007-06-23</pubDate>
    <category>打印 报表</category>
    <author>bill</author>
    <comments>站内</comments>
</item>
<item>
    <title>delphi 枚举打印缓冲</title>
    <link>/html/Database/print/20070623/81.html</link>
    <description>uses Printers, WinSpool; function PrinterStatusText(Status: Integer): String; begin case Status of 0: Result := 'Waiting'; JOB_STATUS_PAUSED: Result := 'Paused'; JOB_STATUS_ERROR: Result := 'Error'; JOB_STATUS_DELETING: Result := 'Deleting'; JOB_STA</description>
    <pubDate>2007-06-23</pubDate>
    <category>打印 报表</category>
    <author>秩名</author>
    <comments>笨鱼技术网</comments>
</item>
<item>
    <title>delphi 获得打印驱动版本信息</title>
    <link>/html/Database/print/20070623/80.html</link>
    <description>    PrtName: String;
    DriverInfo: PDriverInfo2;
    dwNeeded: DWord;
begin
    PrtName :=  comboPrinters.Text;
    OpenPrinter( PChar( PrtName ) , hPrinter , nil );
    GetPrinterDriver( hPrinter, nil, 2, DriverInfo, 0, dwNeeded );
    GetM</description>
    <pubDate>2007-06-23</pubDate>
    <category>打印 报表</category>
    <author>bill</author>
    <comments>站内</comments>
</item>
<item>
    <title>delphi 获得打印机解析度</title>
    <link>/html/Database/print/20070623/79.html</link>
    <description>function GetPageWidth: Integer; 

begin 

  Result := Screen.PixelsPerInch*GetDeviceCaps(Printer.Handle, 

PHYSICALWIDTH) div GetPixelsPerInchX 

end; 

 
</description>
    <pubDate>2007-06-23</pubDate>
    <category>打印 报表</category>
    <author>bill</author>
    <comments>站内</comments>
</item>
<item>
    <title>delphi 设定缺省打印机</title>
    <link>/html/Database/print/20070623/78.html</link>
    <description>Use this on form create (or whatever)...

  ComboBox1.Items := Printer.Printers; {populates ComboBox}
  ComboBox1.ItemIndex := Printer.PrinterIndex; {sets display to current
printer}

then, assuming you have a Button5...
</description>
    <pubDate>2007-06-23</pubDate>
    <category>打印 报表</category>
    <author>bill</author>
    <comments>站内</comments>
</item>
<item>
    <title>delphi 改变打印机字符集</title>
    <link>/html/Database/print/20070623/77.html</link>
    <description>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 </description>
    <pubDate>2007-06-23</pubDate>
    <category>打印 报表</category>
    <author>bill</author>
    <comments>站内</comments>
</item>
<item>
    <title>delphi 调出添加打印机向导</title>
    <link>/html/Database/print/20070623/76.html</link>
    <description>ShellExecute(Handle, 'open', 'rundll', 

'shell32.dll,SHHelpShortcuts_RunDLL AddPrinter', '', SW_SHOWNORMAL);
</description>
    <pubDate>2007-06-23</pubDate>
    <category>打印 报表</category>
    <author>bill</author>
    <comments>站内</comments>
</item>
<item>
    <title>delphi 改变缺省打印机</title>
    <link>/html/Database/print/20070623/75.html</link>
    <description>发送一条 WM_WININICHANGE 消息：

var
strIni: array[0..MAX_PATH] of Char;
arrWindows: array[0..64] of Char;
begin
GetWindowsDirectory(strIni, SizeOf(strIni));
StrCat(strIni, '\win.ini');
with TIniFile.Create(strIni) do</description>
    <pubDate>2007-06-23</pubDate>
    <category>打印 报表</category>
    <author>bill</author>
    <comments>站内</comments>
</item>
<item>
    <title>delphi 判断系统是否有打印机连接</title>
    <link>/html/Database/print/20070623/74.html</link>
    <description>begin
  hPrinter:= GetCurrentPrinterHandle;
  try
    EnumJobs( hPrinter, 0, 1000, 1, Nil, 0, bytesNeeded,
              numJobs );
    pJ := AllocMem( bytesNeeded );
    If not EnumJobs( hPrinter, 0, 1000, 1, pJ, bytesNeeded,
                </description>
    <pubDate>2007-06-23</pubDate>
    <category>打印 报表</category>
    <author>bill</author>
    <comments>站内</comments>
</item>

</channel>
</rss>
