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 

Printing TCppWebBrowser content via ExecWB

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet Web)
View previous topic :: View next topic  
Author Message
Mike Collins
Guest





PostPosted: Wed Apr 25, 2007 6:54 pm    Post subject: Printing TCppWebBrowser content via ExecWB Reply with quote



Hi all, posted the other day regarding propagating some values on an html
document that I was loading and displaying in a TCppWebBrowser window.

Got the code to work using the HTMLDocument2 interface / OnDocumentComplete
that Remy described. However, i now have another problem. I need to save
the modified displayed html which i'm doing using the
ExecWB(Shdocvw_tlb::OLECMDID_SAVEAS) method. However the two values that i
have modified do not get saved. The html document is part of a registration
process and is store on an installation CD. Once the document is displayed
and propagated, i need to provide the user with the option to print it, or
if they do not have a printer, save it.

Can anyone point me in the right direction here?

Best regards,

Mike C
Back to top
Hans Galema
Guest





PostPosted: Thu Apr 26, 2007 4:11 pm    Post subject: Re: Printing TCppWebBrowser content via ExecWB Reply with quote



Mike Collins wrote:
Quote:
... i need to provide the user with the option to print it,

You do not have to do anything for that because it is already there.

A print option is in the (right click) popup menu of (TCpp)WebBrowser.

This will print also the contents of the inputs.

Hans.
Back to top
Mike Collins
Guest





PostPosted: Fri Apr 27, 2007 7:17 pm    Post subject: Re: Printing TCppWebBrowser content via ExecWB Reply with quote



is there anyway to automate this? I have a print button on the builder form
that i want to us to call the printing of the html...

Thanks


"Hans Galema" <notused (AT) notused (DOT) nl> wrote in message
news:463088f2 (AT) newsgroups (DOT) borland.com...
Back to top
Hans Galema
Guest





PostPosted: Mon Apr 30, 2007 8:10 am    Post subject: Re: Printing TCppWebBrowser content via ExecWB Reply with quote

Mike Collins wrote:
Quote:
is there anyway to automate this? I have a print button on the builder form
that i want to us to call the printing of the html...

Did you already try to put a javascript print link on that form?

Hans.
Back to top
Mike Collins
Guest





PostPosted: Mon Apr 30, 2007 6:45 pm    Post subject: Re: Printing TCppWebBrowser content via ExecWB Reply with quote

Sorry Han - it was late and i mixed up my post.

I have the print and it works fine. However, i need a save function incase
they do not have a printer. I automated the save the same way - using the
ExecWB but the values that i propage, via the OnDocumentComplete do not seem
to be saved - it is as if the orginal, unparse / unpopulated html is being
saved. Do u have any ideas?


"Hans Galema" <notused (AT) notused (DOT) nl> wrote in message
news:46359656 (AT) newsgroups (DOT) borland.com...
Quote:
Mike Collins wrote:
is there anyway to automate this? I have a print button on the builder
form that i want to us to call the printing of the html...

Did you already try to put a javascript print link on that form?

Hans.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet Web) 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.