Jump to content

printdefault not working somtimes in internet explorer.

Recommended Posts


i tried to print ie windows with cutepdf writer/pdfelemnet using

_IEAction ($oIE, "printdefault")

but it was not working sometimes, autoit icon showing in tray but not printing anything.

My full code is : 

#include <IE.au3>
#include <MsgBoxConstants.au3>

HotKeySet("{ESC}", "Quit")

Func Quit()
$oIE = _IEAttach ("Gujarat PDS Shop")
$body = _IEBodyReadHTML($oIE)
If StringInStr($body, "Bill Details) Then
$Dbillreceiptdetails = _IEGetObjById($oIE, "billreceiptdetails")
$DitemgridDetails = _IEGetObjById($oIE, "itemgridDetails")
_IEAction ($oIE, "printdefault")
WinWait("Select a filename to write into")
WinActivate("Select a filename to write into")


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now