pdf_tools printpdf com control

From: Barry (barry_wells_at_ca4.uscourts.gov)
Date: 10/30/03


Date: Thu, 30 Oct 2003 15:13:09 -0500

Does anyone use the pdf_tools printpdf com control? If so, how do you get
the com control to work with delphi? I'm not familiar with com controls.
Below is my code.

unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, printerocxlib_tlb;

type
  TForm1 = class(TForm)
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
var
   pdf_prt : pdfprinter;
begin

   pdf_prt := pdfprinter.create(self);

   pdf_prt.PrintFile('c:\578585.pdf','HP LaserJet 1200 Series PCL','');
end;

end.