BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

File-Open option with WebBrowser

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
David Nash
Guest





PostPosted: Fri Jun 25, 2004 8:16 pm    Post subject: File-Open option with WebBrowser Reply with quote



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





PostPosted: Fri Jun 25, 2004 8:56 pm    Post subject: Re: File-Open option with WebBrowser Reply with quote




"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





PostPosted: Fri Jun 25, 2004 9:09 pm    Post subject: Re: File-Open option with WebBrowser Reply with quote



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.
Quote:


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.