Programmatically Set Page Setup when printing with Internet Explorer?

Hello,
I'm using the LabVIEW 7.1 Print HTML Report VIs.
However, I'd like to change the default margings and footer and headres of Microsoft internet explorer which is used to do the actual printing.
I tried to find a way using the functionality of IWebBrowser2 (Wich is actaully used by the original VIs). It seems I have to use OLECMDID_GETPRINTTEMPLATE and pass a structure of the type ITemplatePrinter.
How can this be done - or is there a more simple way to do this?
Thanx,
Rainer

I'm looking for the same features.  Ideally you would be able to send the page setup parameters to IE programatically but so far I've had no luck doing that or finding any reference on how it would be done.  The closest thing I've seen is the print templates, but I am still unsure how those would be implemented exactly.  I did find this reference for the template which seems fairly descriptive:
http://msdn2.microsoft.com/en-us/library/bb250434.aspx
Message Edited by Deej60 on 04-03-2007 06:17 PM

Similar Messages

  • COM Surrogate stops working When printing in Internet Explorer 10

    Some info about the setup
    Virtual Server
    WIndows server 2008 R2 Standard
    Terminal server
    64 Bit
    Internet Explorer 10.0.9200.16618
    Problem detail from Reliability Monitor
    i.imgur.com/fN1yFxA
    The problem only occurs for some users, other users on the terminal server are able to print.
    Printing in Google Crome works just fine.
    I've tried to disable all "add-ons" in internet explorer
    I've disabled Data Execution Protection for "C:\Windows\SysWOW64\dllhost.exe"
    I've also tried to add "C:\Windows\System32\dllhost.exe" got an error about 64bit 

    FOUND A WORKING SOLUTION TO INTERNET EXPLORER 11's COM Surrogate Error
    Problem: My Windows 7 x86 (32bit) Virtual Instance on Parallels was having issues with launching Internet Explorer 11, either after an upgrade from 10 or when I had accidentally uninstalled then reinstalled my Parallels Display Adapter from the Device Manager.
    And since one of my work websites rely and are only compatible with Internet Explorer, this was driving me NUTS. Every time I would launch Internet Explorer, I would get bombarded with a series of COM Surrogate errors that would never stop until I had end
    tasked everything via Task Manager and/or restarted the virtual machine.
    Diagnosis: After attempting all the available solutions on the internet..: Updating Windows 7/8 Codecs, Adding Data Execution Prevention (DEP) entries for both COM Surrogate and Windows Host Process for my x86 Windows 7, and attempting to find a way to downgrade
    Internet Explorer 11 (nearly impossible).
    HERE IS THE SOLUTION that worked for me:
    1. Hit Windows + R (Run) and launch "inetcpl.cpl" (Internet Explorer Settings)
    2. Go to the Advanced Tab, and Click "Reset..."
    3. Check "Delete Personal Settings" and click Reset
    Enjoy :)
    --Will.

  • Printing with Internet Explorer

    I have a jsp generated page which is displayed in a browser which I want to print on a generic text printer. The jsp page is all code (friendly ghost language) and I want the window to print the contents of the window exactly. I am using the window.print() javascript command. This used to work with internet explorer 4 but now it does not (ie 5 an 5.5). If I copy the exact contents of the window from my browser to notepad and print it works fine. This suggests that ie is sending unwanted formatting details with it. Any ideas how to stop ie from sending the formatting information.
    Cheers

    Cause IE5.5 uses a method called printer.printPage() instead of print();
    function Print()
         numCopies = printer.copies;
         // Print first side
         printer.startDoc("Brochure Machine, page 1");
         for (i = 0; i < numCopies; i++)
              printer.printPage(frontside);
         printer.stopDoc();
         alert("Front Side Printing. When complete, take pages out of printer, flip, reinsert into printer, and press OK");
         // Print second side
         printer.startDoc("Brochure Machine, page 2");
         for (i = 0; i < numCopies; i++)
              printer.printPage(backside);
         printer.stopDoc();
    Who knows what IE6 will bring... when is there going to be some consistancy in the browsers?

  • Hp smart print with internet explorer 10 on windows 7 professional 64 bit

    I downloaded HP smart print 2.1 but it will not work with Internet Explorer 10 on windows 7 professional 64 bit

    Hi,
    Please check the following post:
       http://h30434.www3.hp.com/t5/Web-Printing-Software/HP-Smart-Print-2-1-and-IE10-not-working/td-p/2465...
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Invalid pointer when printing from Internet Explorer 64 bit with Adobe Reader 11.0.7

    If I print a PDF file in Internet Explorer 8 or 9 64 bit with Adobe Reader 11.0.7 on a Windows 2008 R2 server with the File --> Print (or CTRL+P) option, the file won't print. It generates the error "Er is een onjuiste parameter" (Dutch version). I can print the PDF file with the Adobe Reader option. The 32 bits version of IE8 or IE9 works fine. Also the Adobe Reader versions before 11.0.7 works fine. One fix in 11.0.7 is "64 bit IE plugin - required to run IE 11 with Enhanced Protected Mode on in Win 7". Is this the reason that IE8 or IE9 64 bits doesn't work anymore with the CTRL+P option?

    You can try using this tool to first remove all traces of Reader from your computer: http://labs.adobe.com/downloads/acrobatcleaner.htmlThen, you can download the full offline Reader installer from http://get.adobe.com/reader/enterprise/ After downloading, restart your computer and run the installer before doing anything else.

  • HP Laserjet P1102w - Right side margin cut off when printing in Internet Explorer 9! URGENT PROBLEM*

    Hi,
    I have just purchased a new printer (HP Laserjet P1102W), and when I print a web page in Internet Explorer 9, the footer (I set to the URL) does not print at all and the header will print though the right hand edge of my entire web page is cut off (including my top right header - Pages ? of ?).
    I always use Print Preview first, and in the print preview it looks perfect. I always tick the box to enable shrink to fit too. Why will it look perfect in 'Print Preview' but yet when it prints, it cuts off the right hand side edge of the page and doesnt print the footer?? I have tried adjusting margins, etc... all to no avail.
    I would like to check whether others have this same problem?
    I spoke to HP (UK Printer Support) and they said it is Internet Explorer 9's problem. I have left a message on the Microsodt Web forum which you can see here. http://answers.microsoft.com/en-us/ie/forum/ie9-windows_vista/internet-exploer-9-not-printing-header...
    I am hoping they may release a patch / hotfix - but this has to be affecting many other users of this printer too? The more of us that complain, the quicker it will get sorted.
    Any others with the same problem?
    Thanks.

    I spoke with Microsoft technical support via phone today. Between us - we seemed to have found the problem.
    It's to do with the DPI (the font size) settings in Windows!?
    I have mine set to 188% on my Windows Vista mahcine and 200% on my Windows 7 laptop.
    From my Printing tests in Internet Explorer 9...
    at 100 % DPI – it prints perfectly
    at 150% DPI – it prints perfectly
    at 200% DPI – the right side of the margin is cut off, and no footer is printed – despite it looking perfect in the Print Preview.
    I am using http://uk.msn.com/ as my test print outs.
    This indicates when the DPI is changed above 150%, IE9 doesn't print properly – though other browsers like Safari or Firefox do print correctly. This surely has to indicate a bug in either the Windows operating system or Internet Explorer 9?
    Microsoft are going to run their own tests and phone me back tomorrow...hopefully with a solution!
    Hope this helps any others with the same problem at the moment!
    Would be great if HP could provide a soloution asap - surely a tweak to the Printer dirvers will fix the problem?

  • Laserjet 1020. Cannot print with Internet Explorer 9

    I have downloaded the latest Microsoft Internet Explorer 9  and now find that I cannot print emails with my HP Laserjet 1020. Previously when using IE8 printing was OK. I use Windows Live Mail and Windows Vista as my OS. I also have an Epson printer that works OK with IE9 and Live Mail but the HP does not. I would like to keep IE9 if possible

    Hi ATOL,
    It sounds like you might be selecting properties instead of  "printer properties".
     Double check and make sure that  you're selecting "printer properties" from the list.

  • LAYERS PRINTING WITH Internet Explorer

    Hi. I made a webpage in Dreamweaver 8.
    I have 2 tables on top of each other so I wanted to make a
    layer behind them 2, so I can have a graphic in the background.
    This graphic does not print well from IE. It overlaps the tables
    when I try to scale the page down or fit to page in the print
    settings. If I do not scale anything, it isn't where it should be,
    the image is pushed over more.
    It looks fine in the preview mode.
    Anyone know what I am talking about? Anyway can I stop that
    layer from moving around? Please help. New to this.

    > Anyone know what I am talking about?
    Nope - sorry. Explanations are never so informative - code is
    MUCH better.
    Can you show us?
    > Anyway I can stop that layer from moving around?
    Layers don't move. But tables do. No doubt this is what you
    are seeing.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Stella1251" <[email protected]> wrote in
    message
    news:g913jv$qhj$[email protected]..
    > Hi. I made a webpage in Dreamweaver 8.
    > I have 2 tables on top of each other so I wanted to make
    a layer behind
    > them
    > 2, so I can have a graphic in the background. This
    graphic does not print
    > well
    > from IE. It overlaps the tables when I try to scale the
    page down or fit
    > to
    > page in the print settings. If I do not scale anything,
    it isn't where it
    > should be, the image is pushed over more.
    > It looks fine in the preview mode.
    > Anyone know what I am talking about? Anyway I can stop
    that layer from
    > moving
    > around? Please help. New to this.
    >

  • Need Help Programmatically setting Page Size for printing to Adobe PDF

    We are upgrading from Adobe 5 to Adobe 9.  In Adobe 5, we set a few parameters in the __pdf.ini file to create a document with a specific Page Size.  For Example:
    [Acrobat PDFWriter]
    PDFFileName=
    bDocInfo=0
    Orient=1
    bExecViewer=0
    cpmarginwhole=18
    cpwidepart=0
    cpwidewhole=612
    cpheightpart=0
    cpheightwhole=792
    Paper=0
    Since upgrading to Adobe 9.2, this no longer appears to work.  I have also tried adding these values to the following Registry Locations with no luck:
    HKCU\Software\Adobe\Acrobat PDFWrite
    and
    HKCU\Software\Adobe\Acrobat Distiller\PrinterJobControl
    Is it still possible to create a custom page size using this method?  Or am I going to have to do that in a different way?

    Bill, thanks for the quick response.  However, we generate many forms on a daily basis with different page size requirements.  The way this was accomplished through Adobe PDFWriter was by setting the various parameters in the __pdf.ini file for the Document that we are generating.  I believe we have about 7 different page sizes that we generate.

  • HP 8600 Printer setting changes do not work with internet explorer v11 and win7

    I can connect to my printer using my IP address in ie 11, and i can look at lots of things, but if i attempt to change something simple, like the time, i get an error message back that says invalid input.  However, if i use Firefox v26.0, it works fine.  I have the latest drivers installed on my laptopt.  can this be resolved?   I have to do this from time to time because the clock on the printer does not keep the correct time.  Apparently, there is no fix for that.  (other than manually  adjusting it from time to time)
    This question was solved.
    View Solution.

    Hi,
    Open IE 11 internet options and place the printers EWS IP address in the compatibilty view section. You can then save changes
    I was an HP employee
    Reminder: Please select the "Accept as Solution" button on the post that best answers your question. Also, you may select the "Kudos" button on any helpful post to give that person a quick thanks.

  • Why can't I print "printable" email messages with Firefox, that I can print with Internet Explorer?

    My ISP is Optimum Online, which is where I receive email. My operating system is Windows 2000 Professional Ed. My printer is Brother HL 1440.

    It is possible that you accidentally clicked the 'Block Images' item in the right click context menu while trying to save an image.
    Check the image exceptions: Tools > Options > Content: Load Images: Exceptions - See [[Options window - Content panel]]
    A way to see which images are blocked is to click the favicon (''Site Identification'' icon) on the left side of the location bar and click the "More Information" button.
    This will open the Security tab of the ''Page Info'' window (also accessible via Tools > Page Info).
    Go to the ''Media'' tab of that Page Info window.
    Select the first image and scroll down though the list with the Down arrow.
    If an image is grayed and there is a check-mark in the box ''Block Images from...'' then remove that mark to unblock the images from that domain.
    See also [[Images or animations do not show]] and http://kb.mozillazine.org/Images_or_animations_do_not_load

  • I can't see the animations on the website or access most of the options when I log in.Works perfect with Internet explorer though! Please help

    I can't see the animations on this page (looks like a very small image) and when I log in can't access/see some of the options in the website . The page however works perfect with Internet explorer though! Please help identify the kind of plugin/add-on needed to make it work.

    If you're using it in bright light, you may be getting sunlight through the back of the machine which can wash out the display.  The Apple logo on the back of the lid is actually a cut-out that uses the systems back light to make it glow.  Bright light (especially sunlight) can actually shine through the back.  As the users in the login are typically in the middle of the display, this is the area most likely to be washed out as that is where the Apple logo is.  You can try just putting your hand over the Apple logo on the back to block the sunlight when trying to log in.

  • Adobe FlashPlayer paired with Internet Explorer 8 shows Plug-In version Not Installed?

    Active X version is 11.7.700.202 I am being told that for a new program (Remedy) we are going to be using that the Plug-In version needs installed or the web-based application will not work.  Is there any way to install the Plug-In version in addition to the Active X Version when paired with Internet Explorer?

    You can download the plugin installer from http://helpx.adobe.com/flash-player/kb/installation-problems-flash-player-windows.html#mai n-pars_header (under the heading Progress bar hangs...).

  • I cannot print from web pages with mozilla, can print from internet explorer and all other programs. I have a Cannon Imageclass MF8100.

    I cannot print from any web pages with Mozilla as my browser. The printer gives me a blank page. I can print from internet explorer and all other programs. I have a
    Cannon Imageclass MF8100 printer. I spoke to Cannon as I thought it was a Cannon issue and it is not.

    Try the '''''reset''''' described here: <br />
    http://kb.mozillazine.org/Problems_printing_web_pages#Reset_printer

  • I can no longer open my Comcast email when I launch from Firefox - it takes me to the email preview page but will not allow me to open the inbox . Does not happen with Internet Explorer.

    This started last month - when I go to my comcast account, I'm able to log on and view my account but can not open my email inbox. When I enter my user name and password, I'm taken to the "Email Preview" page so that I can see a partial view of the inbox but when I click on "View Entire Inbox" it jumps to a page showing that it's loading but goes right back to the preview page - I can't open any of the emails. This does not happen when I use Internet Explorer or Firefox on my older laptop.

    Did you find out what addon?

Maybe you are looking for

  • AirPort Time Capsule doesn't work as Time Machine

    When I try to connect AirPort Time Capsule as Time Machine the following message is displayed: The backup disk image "/Volumes/Data/Constantin's MacBook Pro.sparsebundle" could not be accessed (error -1). How can I resolve this issue? Thanks, Constan

  • Video formats for Ipad

    Hey, i Have an ipad 2 and am trying to place video files on it. I have been tryig to copy over the same files i use on my ipod clasic but they wont work and said its not compatable. its weird. Thanks for your help.

  • Can I use Adobe CS4 with Mavericks? I get message: Document Types Not Found

    Not able to open CS4 after moving from 2006 MacBook to newer MacBookPro with Mavericks already installed.

  • WANT TO USE M1217 printer on fax server but modem driver could not find

    Dear All I want to install HP Laserjet M1217 MFP on Window Server 2012 r2 and Use on windows Fax and Scan utility. but i think i need modem driver to use on this utility. therefore i need assistance  how can i use this dvice on Fax server. best regar

  • Nokia c6-01 and symbian belle

    hello,      i would like to know that, in future do symbian belle update will be available for nokia c6-01?? please let me know so that i can buy this awesom smartpone without any doubts. And i also heard that phones which will be shipped to india wi