 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
David Nash Guest
|
Posted: Fri Jun 25, 2004 8:16 pm Post subject: File-Open option with WebBrowser |
|
|
Firstly, thanks to Remy Lebreau for giving me the code to Save the contents
of a TCppWebBrowser. However, I need to add a 'File Open' to allow the user
to load a previously saved web page. I'd really appreciate the code for
this, as the indexing on my on-line help has gone pear-shaped, and I can't
look up the OLECMDID stuff, and I need to install the application on a load
of PCs tomorrow.
Hopefully this will be the last thing!
// This is the code to Save
CppWebBrowser1->ExecWB(Shdocvw_tlb::OLECMDID_SAVEAS,
Shdocvw_tlb::OLECMDEXECOPT_DODEFAULT);
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Fri Jun 25, 2004 8:56 pm Post subject: Re: File-Open option with WebBrowser |
|
|
"David Nash" <nashcom (AT) btinternet (DOT) com> wrote
| Quote: | However, I need to add a 'File Open' to allow the user to
load a previously saved web page. I'd really appreciate the
code for this
|
Use OLECMDID_OPEN.
| Quote: | as the indexing on my on-line help has gone pear-shaped, and I
can't look up the OLECMDID stuff
|
I suggest you go to MSDN directly:
OLECMDID
http://msdn.microsoft.com/library/en-us/com/htm/oen_a2z_22sk.asp
Gambit
|
|
| Back to top |
|
 |
Hans Galema Guest
|
Posted: Fri Jun 25, 2004 9:09 pm Post subject: Re: File-Open option with WebBrowser |
|
|
David Nash wrote:
| Quote: | I need to add a 'File Open' to allow the user
to load a previously saved web page.
|
CppWebBrowser1->Navigate ( WideString ( "file:///c:/index.html") );
CppWebBrowser1->Navigate ( WideString ( "c:/index.html") );
| Quote: | Hopefully this will be the last thing!
|
Why ?
Hans.
|
|
| 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
|
|