DaviiD2010
Programmer
Hi all . I have list of webpages that need to go in each one of them and a press a print button on each one of them(once i press the print button then the button no longer show as it means i have already send it for print). So I tried doing:
The above code either freezes my vb6 application or only loads the last page!!Could you guys show me a stable way that my program prints all pages and doesn't freez or skipp printing any pages. Looking forward for replies.Thanks
Code:
Dim i As Integer
For i = 0 To List1.Items.Count - 1
wb.Navigate List1.List(i)
For Each ele In wb.Document.getelementsbytagname("a")
If ele.innertext = "Print This page" Then ele.Click
Next
Next
The above code either freezes my vb6 application or only loads the last page!!Could you guys show me a stable way that my program prints all pages and doesn't freez or skipp printing any pages. Looking forward for replies.Thanks