Board index » cppbuilder » Printing TCppWebBrowser content via ExecWB

Printing TCppWebBrowser content via ExecWB


2007-04-25 09:54:26 PM
cppbuilder100
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
 
 

Re:Printing TCppWebBrowser content via ExecWB

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.
 

Re:Printing TCppWebBrowser content via ExecWB

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" < XXXX@XXXXX.COM >wrote in message
 

{smallsort}

Re:Printing TCppWebBrowser content via ExecWB

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.
 

Re:Printing TCppWebBrowser content via ExecWB

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" < XXXX@XXXXX.COM >wrote in message
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.