Printing to LPT1 from Notes 4.5.2 on Win3.11

Greetings, experts..

I'm trying to print to LPT1 (a local lineprinter) from Notes version 4.5.2 DB, which is running on Win3.11

I can't use the standard printing-handling of Notes, since the output is supposed to be on a special kind of paper which is not even Close to A4 in size (a kind of receipts, with carbon-paper and stuff). -Lineprinting is what I need..

I've tried opening LPT1 for output in this way on versions 4.6 and 5 (on a win 98-machine), and it works just fine.. on the 4.5.2 (on the win3.11-machine) it just says "Can't open file".

fn% = FreeFile()
Open "LPT1" For Output As fn%

.. as you can guess I'm a bit frustrated about the whole thing.

Anybody who can guess what the reason for this is- is it the OS or the Notes-version?

Existential Angst! :)
/Torbjörn Josefsson
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

This is definately not an option with 3.11.  Win9x uses a completely different method for doing its printing.  It uses streams very differntly then the way that Win3.x does.  You will not be able to use the method you have on a 3.x box.

Sorry, it just cannot be done.

You can do somethings on the Notes side to format the page correctly, but it is a real trial and error proposition.  First create a form that will print out absolutely correctly, with proper page breaks and fromating.  Then use the @Command([FilePrint]) with that form in the formname parameter.  If you are printing several documents from a view you can set the break as a line instead of a page and use formating again to ensure you are printing on a new sheet from your printer.

Unfortunately it is not possible to just eyeball this, you have to do some test pages over and over again.  But once you have it, you are set.

Use condition formulas to hide which method to use.

Hope this has been of some help.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Lotus IBM

From novice to tech pro — start learning today.