VB and VBA Users Source Code: Re: Opening, Printing and Emailing documents/files using Shell API
[
Home
|
Contents
|
Search
|
Reply
|
Previous
| Next ]
VB/VBA Source Code
Re: Opening, Printing and Emailing documents/files using Shell API
By:
Jerry O'Connor
Email (spam proof):
Email the originator of this post
Date:
Monday, October 24, 2005
Hits:
689
Category:
Windows API
Article:
Hi Andrew, I've followed your hints before, found them to be very good, and thought you might have this answer! A new laptop has only USB Ports (no LPT1: parallel printer port). My code opens the LPT1 port as follows: Close 1: Open "LPT1:" for output as #1 Print #1, Tab(33); "Help"; Tab(44); sA4 This has alway7s worked very well with a parallel printer. How would I address the USB port to print in this way? I know the Brother HL-5140 port is shown as USB001, and when I replace "LPT1:" with "USB001" in my Open statement above, I get no error - but nothing prints to the printer. It appears that the printer is not opening as a device. The open statement is just creating a file called USB001 and printing to it. Any solution? Thanks very much for looking at the problem. Jerry
Terms and Conditions
Support this site
Download a trial version of the Excel Workbook Rebuilder