 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Sherlyn Guest
|
Posted: Mon May 14, 2007 6:56 am Post subject: How to retrieve available style items (e.g Heading 1, Headin |
|
|
Hi!
How do i retrieve available styles items (e.g Heading 1, Heading 2,
Address and etc) from IDM_GETBLOCKFMTS command. I have tried the
following, but my vaOut variable returned Unassigned after called the
Cmd.Exec. Can someone help me on this?
const CGID_WebBrowser: TGUID = '{ED016940-BD5B-11cf-BA4E-00C04FD70816}';
var varIn, vaOut: olevariant;
PtrGUID: PGUID;
begin
New(PtrGUID) ;
PtrGUID^ := CGID_WebBrowser;
if WebBrowser1.Document <> nil then
try
WebBrowser1.Document.QueryInterface(IOleCommandTarget, CmdTarget) ;
if CmdTarget <> nil then
try
CmdTarget.Exec(PGUID(nil), IDM_GETBLOCKFMTS, 0, vaIn, vaOut) ;
finally
CmdTarget._Release;
end;
except
end;
Dispose(PtrGUID) ;
end;
Thanks in advance.
From,
Sherlyn Chew |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|