| View previous topic :: View next topic |
| Author |
Message |
Mike Collins Guest
|
Posted: Wed Apr 25, 2007 6:54 pm Post subject: Printing TCppWebBrowser content via ExecWB |
|
|
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
|
Posted: Thu Apr 26, 2007 4:11 pm Post subject: 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. |
|
| Back to top |
|
 |
Mike Collins Guest
|
Posted: Fri Apr 27, 2007 7:17 pm Post subject: 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" <notused (AT) notused (DOT) nl> wrote in message
news:463088f2 (AT) newsgroups (DOT) borland.com... |
|
| Back to top |
|
 |
Hans Galema Guest
|
Posted: Mon Apr 30, 2007 8:10 am Post subject: 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. |
|
| Back to top |
|
 |
Mike Collins Guest
|
Posted: Mon Apr 30, 2007 6:45 pm Post subject: 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" <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 |
|
 |
|