Printing to LPT1: on Win 7

Windows specific questions.
Post Reply
Norbert
Posts: 2
Joined: Feb 13, 2017 13:58

Printing to LPT1: on Win 7

Post by Norbert »

I'm a newbie to Free Basic. Converting QB 4.5

In QB I use:
Out$ = "LPT1:":
OPEN Out$ FOR OUTPUT AS #1


Free Basic compiles it, but I get unhandled error #53 (file not found)

I then tried

Open Lpt "LPT1:EMU=TTY" For Output As #1

That earns me a "Expected operator in equation on current line" Error And I copied that from the manual :(

I even tried

Code: Select all
OPEN LPT "LPT:printer_name,TITLE=title" As #1


Then the error is "Expected CASE on current line"

any suggestions?

Norbert
Norbert
Posts: 2
Joined: Feb 13, 2017 13:58

Re: Printing to LPT1: on Win 7

Post by Norbert »

I tried

LPRINT "Testing!"

and the printer worked
St_W
Posts: 1619
Joined: Feb 11, 2009 14:24
Location: Austria
Contact:

Re: Printing to LPT1: on Win 7

Post by St_W »

The latter two commands do compile fine for me on FBC 1.05 x64. Do you use the latest compiler? Do you use any language mode other than "fb"?

Is that the whole code? I guess not, so are you sure that the error is caused by this line and not something else?
Post Reply