Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

print a page with no confirmation popup

Status
Not open for further replies.

zekmek

Programmer
Jun 12, 2003
44
PT
hello,

i'm new to activex but i'm working on a project in which i need to print a page without any confirmation popup... i went on a lot of javascript forums in which everybody seem to say that it must be possible but only with activeX...

anybody knows how ?

thanks :)
 
I am looking to do the same. I need to print an html document w/o confirmation. I do have working code that prints .pdf docs w/o confirmation. The openps variable contains the path to the pdf I want to print. Here is that code:
Code:
var openps = "/s /h /p\\\\server13a\\apps\\ProcessSheets\\tempsheets\\" + strps + ".pdf";

ShellReader(openps); 

function ShellReader(params){
    var oShell = new ActiveXObject("Shell.Application");
    var commandtoRun = "C:\\Program Files\\Adobe\\Acrobat 5.0\\Reader\\acrord32.exe"; 
    oShell.ShellExecute(commandtoRun,params, "", "open", "1");
}

I don't know if this helps at all. This was written by someone that worked here before me. It works well. Now, if I could just figure out how to do this with an html document.
 
You want to print the activex contents loaded in a browser
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top