Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Thu, 23 Mar 2006 01:53:30 -0800,    group: microsoft.public.inetsdk.programming.scripting.vbscript        back       


Problem with Printing from IE object running on Server side   
I would like to print a page from an IE object created to run on server from 
my vbscript.  Problem is, the print works only when the specific webaccount 
user (for this application) is logged on to the server.  When any other user 
is logged on to the server, the IE object stays doing nothing.

Can anyone help ?  Thanks in advance.

I use the following code.

set oMyIE = server.createobject("internetexplorer.application")
oMyIE.navigate "about:blank"

do while oMyIE.ReadyState <> 4
loop

set oMyDoc = oMyIE.document
if not oMyDoc is nothing then 
               oMyDoc.write cstr(sHTML)
               oMyIE.execwb 6, 2, 3
end if

oMyIE.quit

set oMyDoc = nothing
set oMyIE = nothing

--end of script--
date: Thu, 23 Mar 2006 01:53:30 -0800   author:   I Sathish I

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us