首页 > TAG信息列表 > printerInfo

delphi调用打印机打印Pdf格式文件

 use Vcl.Printers, Winapi.ShellAPI;procedure TForm1.PrintDocument(const documentToPrint: string); var printCommand: string; printerInfo: string; Device, Driver, Port: array[0..255] of Char; hDeviceMode: THandle; begin if Printer.PrinterIndex =