Thread View: borland.public.cppbuilder.internet.web
5 messages
5 total messages
Started by Mike Collins
Wed, 25 Apr 2007 13:54
Printing TCppWebBrowser content via ExecWB
Author: Mike Collins
Date: Wed, 25 Apr 2007 13:54
Date: Wed, 25 Apr 2007 13:54
17 lines
1610 bytes
1610 bytes
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
Author: Hans Galema
Date: Thu, 26 Apr 2007 11:11
Date: Thu, 26 Apr 2007 11:11
10 lines
1312 bytes
1312 bytes
Mike Collins wrote: > ... 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
Author: Mike Collins
Date: Fri, 27 Apr 2007 14:17
Date: Fri, 27 Apr 2007 14:17
8 lines
1222 bytes
1222 bytes
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@notused.nl> wrote in message news:463088f2@newsgroups.borland.com...
Re: Printing TCppWebBrowser content via ExecWB
Author: Hans Galema
Date: Mon, 30 Apr 2007 07:10
Date: Mon, 30 Apr 2007 07:10
7 lines
1297 bytes
1297 bytes
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.
Re: Printing TCppWebBrowser content via ExecWB
Author: Mike Collins
Date: Mon, 30 Apr 2007 13:45
Date: Mon, 30 Apr 2007 13:45
18 lines
1755 bytes
1755 bytes
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@notused.nl> wrote in message news:46359656@newsgroups.borland.com... > 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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads