Why Document of Webbrowser is Nil?

P

ppt

If my computer only has PPView97 installed(not MS Office),the Document object
of Webbrowser is Nil? Why?

Can anybody help me,how to get its Document object, thanks a lot!

delphi code:
procedure TForm1.Button1Click(Sender: TObject);
begin
wb.Navigate('c:\1.ppt'); //wb is a TWebbrowser
if wb.Document=nil then showmessage('nil!');
end;
 
A

Alvin Bruney - ASP.NET MVP

TWebbrowser is what? A server control or client control? If it is a client
control, you can't access it on the server. If it is a server control, you
need to make sure the name/id of the control is set to wb.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top