petertickler
Programmer
I am having trouble opening a pdf file via my Delphi application, even though I am using the same
approach as I have used sucessfully to open Powerpoint, Word and Excel files.
I have set up a new form, put a Tpdf component on it, declared a private Tpdf called
NewPDFapp, and created as public open procedure which reads thus:
However this does not work. When I try to open a pdf file, Acrobat appears
to open, but then it disappears and the system locks up.
Any bright ideas as to why this might be happening?
Peter Tickler
approach as I have used sucessfully to open Powerpoint, Word and Excel files.
I have set up a new form, put a Tpdf component on it, declared a private Tpdf called
NewPDFapp, and created as public open procedure which reads thus:
Code:
procedure TfmAcrobat.Open(pdfFile: OleVariant);
begin
NewPDFapp := TPdf.Create(Self);
NewPDFapp.src := pdfFile;
NewPDFapp.Visible := True;
end;
However this does not work. When I try to open a pdf file, Acrobat appears
to open, but then it disappears and the system locks up.
Any bright ideas as to why this might be happening?
Peter Tickler