View Full Version : printing

01-24-2007, 12:38 PM
i have this code:

Dim objFSO
Dim objPrinter

Set objFSO = Server.CreateObject("Scripting.FileSystemObject")

Set objPrinter = objFSO.CreateTextFile("LPT1:", True)

objPrinter.WriteLine "This is a test of printing from ASP!"
objPrinter.Write vbFormFeed


Set objPrinter = Nothing

Set objFSO = Nothing

it prints a page out but the page is blank... any suggestions?

01-25-2007, 04:36 PM
Doesn't work for me at all. Tho I don't have my printer on LPT.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum