Solved

send data to printer

Posted on 2002-07-11
1
182 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

744 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

15 Experts available now in Live!

Get 1:1 Help Now