🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.web
5 messages
5 total messages Started by Giles Allen Wed, 29 Sep 2004 14:09
TCPPWebBrowser, print, landscape (please help)
#1578
Author: Giles Allen
Date: Wed, 29 Sep 2004 14:09
16 lines
1318 bytes
Hi Guys

i have a tcppwebbrowser object and it works ok.
i can print from it using :
CppWebBrowser1->ExecWB(Shdocvw_tlb::OLECMDID_PRINT,Shdocvw_tlb::OLECMDEXECOP
T_PROMPTUSER);

thats all fine and good except i need it to default to landscape rather than
portrait. and i cant see any properties that affect this (it doesn't use
TPrinter i don't think)

any ideas?

Cheers

Giles
Re: TCPPWebBrowser, print, landscape (please help)
#1581
Author: Mark Finkle
Date: Fri, 01 Oct 2004 05:03
30 lines
1748 bytes
TCppWebBrowser does not use TPrinter. Changing printer settings when using
the WebBrowser is a real pain.  MSDN has several articles on what you can
do. They are all hacks, but its the only way. Use Google to search for
"WebBrowser print settings' and you should see some MSDN articles on the
subject.

Mark Finkle

"Giles Allen" <gallen@solartronmetrology.com> wrote in message
news:415ac2cd$1@newsgroups.borland.com...
> Hi Guys
>
> i have a tcppwebbrowser object and it works ok.
> i can print from it using :
>
CppWebBrowser1->ExecWB(Shdocvw_tlb::OLECMDID_PRINT,Shdocvw_tlb::OLECMDEXECOP
> T_PROMPTUSER);
>
> thats all fine and good except i need it to default to landscape rather
than
> portrait. and i cant see any properties that affect this (it doesn't use
> TPrinter i don't think)
>
> any ideas?
>
> Cheers
>
> Giles
>
>
Re: TCPPWebBrowser, print, landscape (please help)
#1685
Author: Giles Allen
Date: Mon, 04 Oct 2004 07:14
39 lines
2128 bytes
Thanks a lot, i'll post the code when i've done it :)

G:)

"Mark Finkle" <mark_finkle@nospam.hotmail.com> wrote in message
news:415ce68f$1@newsgroups.borland.com...
> TCppWebBrowser does not use TPrinter. Changing printer settings when using
> the WebBrowser is a real pain.  MSDN has several articles on what you can
> do. They are all hacks, but its the only way. Use Google to search for
> "WebBrowser print settings' and you should see some MSDN articles on the
> subject.
>
> Mark Finkle
>
> "Giles Allen" <gallen@solartronmetrology.com> wrote in message
> news:415ac2cd$1@newsgroups.borland.com...
> > Hi Guys
> >
> > i have a tcppwebbrowser object and it works ok.
> > i can print from it using :
> >
>
CppWebBrowser1->ExecWB(Shdocvw_tlb::OLECMDID_PRINT,Shdocvw_tlb::OLECMDEXECOP
> > T_PROMPTUSER);
> >
> > thats all fine and good except i need it to default to landscape rather
> than
> > portrait. and i cant see any properties that affect this (it doesn't use
> > TPrinter i don't think)
> >
> > any ideas?
> >
> > Cheers
> >
> > Giles
> >
> >
>
>
Re: TCPPWebBrowser, print, landscape (still need help)
#1688
Author: Giles Allen
Date: Mon, 04 Oct 2004 11:03
53 lines
2634 bytes
ok more problems,

i did a search and found (as noted in some elses earlier post) that some of
the properties could be changed in the registry at
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup
which is taken from :
HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\PageSetup
 if it doesn't exist

this contains, header footer and margins but not orientation :(
unfortunately i need to default to landscape :(

i then tried using css but that option isn't available to me as there are
nested tables which it don't get changed :(
Really struggling to find a work around any suggestions?

G

"Mark Finkle" <mark_finkle@nospam.hotmail.com> wrote in message
news:415ce68f$1@newsgroups.borland.com...
> TCppWebBrowser does not use TPrinter. Changing printer settings when using
> the WebBrowser is a real pain.  MSDN has several articles on what you can
> do. They are all hacks, but its the only way. Use Google to search for
> "WebBrowser print settings' and you should see some MSDN articles on the
> subject.
>
> Mark Finkle
>
> "Giles Allen" <gallen@solartronmetrology.com> wrote in message
> news:415ac2cd$1@newsgroups.borland.com...
> > Hi Guys
> >
> > i have a tcppwebbrowser object and it works ok.
> > i can print from it using :
> >
>
CppWebBrowser1->ExecWB(Shdocvw_tlb::OLECMDID_PRINT,Shdocvw_tlb::OLECMDEXECOP
> > T_PROMPTUSER);
> >
> > thats all fine and good except i need it to default to landscape rather
> than
> > portrait. and i cant see any properties that affect this (it doesn't use
> > TPrinter i don't think)
> >
> > any ideas?
> >
> > Cheers
> >
> > Giles
> >
> >
>
>
Re: TCPPWebBrowser, print, landscape (still need help)
#1699
Author: Mark Finkle
Date: Sat, 09 Oct 2004 18:10
11 lines
1398 bytes
The next level of customization is via Print Templates. Check them out here:
http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/hosting/printpreview/reference/reference.asp

You will find an "orientation" property that you could use to get landscape.

Mark Finkle

"Giles Allen" <gallen@solartronmetrology.com> wrote in message
news:41612e0b@newsgroups.borland.com...
> Really struggling to find a work around any suggestions?
>
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