Solved

send data to printer

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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 process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

808 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