만들어서 실행하면 잘되는데요.
프로그램을 종료 시키면 아래같은 에러가 뜨는데...
Access violation at address 10006759 in module 'pdf.ocx' 에러가 나네요.
고수님들의 조언을 부탁드립니다.
unit untAcrobatR;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, OleCtrls, PdfLib_TLB, ExtCtrls;
type
TForm1 = class(TForm)
Pdf1: TPdf;
Timer1: TTimer;
procedure FormCreate(Sender: TObject);
procedure Timer1Timer(Sender: TObject);
procedure FormDestroy(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
var
MePath: String;
begin
MePath := ExtractFilePath(Application.ExeName);
Pdf1.src := MePath + '36P.pdf';
pdf1.LoadFile(MePath + '36P.pdf');
end;
end.