Code covered by the BSD License  

Highlights from
Print with Internet Explorer

5.0

5.0 | 3 ratings Rate this file 7 Downloads (last 30 days) File Size: 1.63 KB File ID: #21746

Print with Internet Explorer

by Matthew Simoneau

 

14 Oct 2008 (Updated 04 Jan 2010)

Prints out a URL with Internet Explorer

| Watch this File

File Information
Description

This function drives Internet Explorer® via ActiveX®. It opens the URL, waits for the page to load, and issues a "print".

There's an arbitrary 5 second wait after issuing the print before the browser. If you close too soon, printing will fail. You may need to modify this pause for your environment.

== Usage Note from Laszlo Sragner ==
"It seems that the problem was that MATLAB® starts IE in Protected Mode:off state, but if IE was setup with PM:on it cannot access the web with this IE window. This can be set on Internet Securities Properties (checkbox at the bottom)."

MATLAB release MATLAB 7.6 (R2008a)
Other requirements Windows Internet Explorer
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
16 Oct 2009 port tracker

excellent work, really helped me !
Is it possible to create the same function also with firefox? (the problem with the protected zone in IE is a bit bothering)

Thanks,
porter

16 Oct 2009 port tracker

One more request, if I may - Is it possible to print only the document of the web, not the entire page (I think it's done in document.write() method in javascript but have no idea how to integrate it with the above code).

Thanks again,
porter

17 Aug 2011 mohammed

perfect

Please login to add a comment or rating.
Updates
17 Feb 2009

Usage update.

04 Jan 2010

Add trademarks.

Tag Activity for this File
Tag Applied By Date/Time
activex Matthew Simoneau 22 Oct 2008 10:24:28
print Matthew Simoneau 22 Oct 2008 15:06:07
internet explorer Matthew Simoneau 22 Oct 2008 15:06:13

Contact us at files@mathworks.com