How do I open a Windows program from a Java program?
Joined: Sep 13, 2006
Just a simple task I'm trying to do in a program I made: it produces an HTML file which I subsequently want Internet Explorer to open up and print out. I have everything working up to the point where I need to open IE...and then I realized I don't know how. How can I do this?'
Opening IE for a specific page or file is easy enough. Just use Runtime.exec() to run "iexplore file://whatever.html". Getting IE to print thereafter though, that is hard. Is there any reason why you want IE to print the file? You could just use the Java Print Service API to do it without the involvement of IE.