execWB
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
I used ie = CreateObject("InternetExplorer.Application") ie.Navigate("test.html") ie.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT, SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER) to print "text.html". when the file has too many pages to print, it doesn't print all the pages.. suppose test.html has actual 20 pages to print but it only get 2 pages printed by using above code? So I add System.Thread.Sleep(5000) to give the time to printer to spool all and print all the pages..it helps.. but still only 5 pages printed and not all 20 pages.. how can i pause the program to wait printer to finish printing the document?? thanks