General discussion

Locked

WEB BROWSER CTRL - OBJECT WAS UNLOADED

By alanr ·
We have a VB program that automates the printing of a personalized letter, a personalized HTML page and PDF pages in that order for a given number of records. We use WORD for the letter, a web browser control for the HTML page and Adobe Acrobat for the PDF. We do not use WORD to open and print the HTML page because it does not print the way we want it in WORD. The problem is that after going through 270 records, we get the error "Object Was Unloaded - Error 364" and we have to Restart the computer. To print the HTML page we open a form with a Web Browser control, load the HTML page, print, then unload the form. We use Windows ME OS, Explorer 5.5, Word 2000, Acrobat 5.0 in Novell Environment (print files goes to Novell Print Queue). Does anyone know why it would stop at 270 records? It doesn't matter if we close the program and restart it. It still stops after 270 records. Can anyone suggest an alternative way of printing the HTML page?

This conversation is currently closed to new comments.

6 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

WEB BROWSER CTRL - OBJECT WAS UNLOADED

by amanabala In reply to WEB BROWSER CTRL - OBJECT ...

Hello,

I am assuming that you are doing this in a loop (Loading the form, loading the page, printing and Unloading the form). Please try to load the form just once outside the loop, load HTML pages in a loop and then once you are done, unload theform.

Another alternative is to create a simple vbscript/javascript that will load a page, print it and the load the next one, in a loop. Then you would put this script in a blank html page and then launch IE. I can send you sample code if you would like me to. Please let me know/post a comment here.

regards,
Ravi
ananth_manabala@yahoo.com

Collapse -

WEB BROWSER CTRL - OBJECT WAS UNLOADED

by amanabala In reply to WEB BROWSER CTRL - OBJECT ...

Certainly! I will get back to you later today or early morning tomorrow.

Ravi

Collapse -

WEB BROWSER CTRL - OBJECT WAS UNLOADED

by alanr In reply to WEB BROWSER CTRL - OBJECT ...

Poster rated this answer

Collapse -

WEB BROWSER CTRL - OBJECT WAS UNLOADED

by alanr In reply to WEB BROWSER CTRL - OBJECT ...

We did try to load the form once and load the HTML pages in a loop. The problem was the routine that printed the Word document pauses during the Print operation (Print dialog box comes up waiting for the user to click on OK). I would like to have sample code on the other alternative (vbscript in a blank HTML page) and try that one. Thanks.

Collapse -

WEB BROWSER CTRL - OBJECT WAS UNLOADED

by alanr In reply to WEB BROWSER CTRL - OBJECT ...

Poster rated this answer

Collapse -

WEB BROWSER CTRL - OBJECT WAS UNLOADED

by alanr In reply to WEB BROWSER CTRL - OBJECT ...

This question was closed by the author

Back to Web Development Forum
6 total posts (Page 1 of 1)  

Related Discussions

Related Forums