I have an access database which creates an HTML message body and sends the message as an email. This code runs through a loop in a recordset, but if there is no email address I'd like to outpout the message to a printer. I can create the html fine with
...
Set objFso = New FileSystemObject
Dim objFile As Object
Set objFile = objFs
penTextFile("K:/output/Bk" & Me.RefID & "-" & StrLoopName & ".htm", 8, True)
objFile.WriteLine txtMessage
objFile.Close
Set objFile = Nothing
Set objFso = Nothing
...
This works fine and creates the html perfectly. BUT How do I then print that file.
Is there some thing like
objFSO.CopyFile source, printer
if so does anyone have the syntax.
Thanks

...
Set objFso = New FileSystemObject
Dim objFile As Object
Set objFile = objFs
objFile.WriteLine txtMessage
objFile.Close
Set objFile = Nothing
Set objFso = Nothing
...
This works fine and creates the html perfectly. BUT How do I then print that file.
Is there some thing like
objFSO.CopyFile source, printer
if so does anyone have the syntax.
Thanks