Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: printing

  1. #1
    Regular Coder
    Join Date
    Jul 2005
    Location
    Oxfordshire, UK
    Posts
    144
    Thanks
    0
    Thanked 0 Times in 0 Posts

    printing

    i have this code:

    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
    
    objPrinter.Close
    
    Set objPrinter = Nothing
    
    Set objFSO = Nothing
    %>
    it prints a page out but the page is blank... any suggestions?

  • #2
    New Coder
    Join Date
    Aug 2006
    Posts
    72
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Doesn't work for me at all. Tho I don't have my printer on LPT.
    I know that I know nothing


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •