Article View: borland.public.cppbuilder.internet.web
Article #1688Re: TCPPWebBrowser, print, landscape (still need help)
From: Giles Allen
Date: Mon, 04 Oct 2004 11:03
Date: Mon, 04 Oct 2004 11:03
53 lines
2634 bytes
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 > > > > > >
Technical Details
Message-ID:
<41612e0b@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<415ac2cd$1@newsgroups.borland.com> <415ce68f$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,2a650edaf14aa8f1 X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Giles Allen" <gallen@solartronmetrology.com> From: "Giles Allen" <gallen@solartronmetrology.com> Newsgroups: borland.public.cppbuilder.internet.web References: <415ac2cd$1@newsgroups.borland.com> <415ce68f$1@newsgroups.borland.com> Subject: Re: TCPPWebBrowser, print, landscape (still need help) Date: Mon, 4 Oct 2004 12:03:39 +0100 Lines: 55 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 212.32.58.50 Message-ID: <41612e0b@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1096887819 212.32.58.50 (4 Oct 2004 04:03:39 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail