5.0

5.0 | 2 ratings Rate this file 129 downloads (last 30 days) File Size: 1.63 KB File ID: #21746

Print with Internet Explorer

by Matthew Simoneau

 

14 Oct 2008 (Updated 17 Feb 2009)

Code covered by BSD License  

Prints out a URL with Internet Explorer

Download Now | 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
Zip File Content  
Other Files license.txt,
printWithInternetExplorer.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
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

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

Usage update.

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
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com