Solved

send data to printer

Posted on 2002-07-11
1
192 Views
Last Modified: 2010-05-02
Is there a way to send a data stream to a printer via lpt1 without using the printer.print method?

Thanks
jw
0
Comment
Question by:wilch101
1 Comment
 
LVL 22

Accepted Solution

by:
rspahitz earned 50 total points
ID: 7147577
I don't think that printer.print guarantees LPT1.

Instead you can do this:

open "LPT1:" for output as #1
print #1, "Text to output"
print #1, "This on the second line";
print #1, " still on second line";
print #1, chr$(12); ' form-feed
close #1
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Adding to a VBA? 6 63
Access query that references subform 5 43
SLMGR Switches Are Not Working On KMS Host 3 70
TT Auto Dashboard 13 85
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now