OCX and Delphi
From: Barry (barry_wells_at_ca4.uscourts.gov)
Date: 10/30/03
- Next message: John Herbster \(TeamB\): "Re: RAM usage"
- Previous message: eshipman: "Re: TDGrid row color?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Oct 2003 15:15:36 -0500
I'm trying to use a com control from pdf_tools which will allow me to print
pdf documents. The problem is I'm not sure on how to get the com control to
work with delphi.
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); <== this doesn't work.
pdf_prt.PrintFile('c:\578585.pdf','HP LaserJet 1200 Series PCL','');
end;
end.
- Next message: John Herbster \(TeamB\): "Re: RAM usage"
- Previous message: eshipman: "Re: TDGrid row color?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]