PrintHTMLDocFormSource Method
|
Part | Description
|
HTMLSource | String expression containing the source code of the HTML document.
|
Sub Print()
|
|
'Create the ASPPrinter object
|
Set Prn=CreateObject("ASPPrinterCOM.ASPPrinter")
|
|
'Get the entire HTML document source code
|
HTMLSource=document.documentElement.outerHTML
|
|
'Print the document using its source code
|
RetVal=Prn.PrintHTMLDocFromSource(HTMLSource)
|
|
'Clean up objects
|
Set Prn=Nothing
|
|
MsgBox "Print Completed Successfully!",,"ASP Printer COM"
|
|
End Sub
|