AttachStream method doesn't work in version 3
6k Views
2 users
read 1 min
I have tried this in the latest build, file version 3.3.3.684, and it still doesn't display the document and if I click on the control I get an access violation.
#3
♥ 0
I am using Delphi 2007 and have just upgraded from version 1 to version 3 and found that the AttachStream method no longer works, i.e. no page appears. The LoadFromStream method does work. For example,
procedure TForm1.FormCreate(Sender: TObject);
begin
FileStream := TFileStream.Create('c:\temp\test.pdf', fmOpenRead);
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
FileStream.Position := 0;
wpviewpdf1.AttachStream(FileStream);
end;
doesn't display anything.
#1
♥ 0