- Код: Выделить всё
Dim doc As Word.Application
Set doc = New Word.Application
doc.Documents.Open ("C:\FTPer\temp\" + Mid$(Date$, 4, 2) + "_" + Mid$(Date$, 1, 2) + "_" + Mid$(Date$, 7, 4) + "T" + Mid$(Time$, 1, 2) + "_" + Mid$(Time$, 4, 2) + ".htm")
doc.Application.ActivePrinter = "\\PUBLIC\HP LaserJet 9050 PS"
doc.ActiveDocument.PrintOut
doc.Documents.Close
doc.Quit