By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,989 Members | 2,392 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,989 IT Pros & Developers. It's quick & easy.

ERROR : The callee (server [not server application])...etc while Printing

P: n/a
i have the Following method to Print an Html frames and if i ran this method
through a loop i get the follwing error....

Sub PrintFrame(toFrame, tnPrintOption)
Dim loWebBrowser
toFrame.focus

If Not IsNumeric(tnPrintOption) OR tnPrintOption < 0 OR tnPrintOption > 3
OR tnPrintOption = "" Then
tnPrintOption = 0
End If

loWebBrowser = "<OBJECT ID='WebBrowser' WIDTH=0 HEIGHT=0
CLASSID='CLSID:8856F961-340A-11D0-A96B-00C04FD705A2'></OBJECT>"
Document.body.insertAdjacentHTML "beforeEnd", loWebBrowser
WebBrowser.Silent = TRUE
WebBrowser.ExecWB 6, tnPrintOption
WebBrowser.outerHTML=""
End Sub

The callee (server [not server application]) is not available and
disappeared; all connections are invalid. The call did not execute.

Note: Also Note that this will happen only if the tnPrintOption = 2, Which
means to Promt before Printing....

Any Idia to solve this...?
Nov 20 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.