Revision history for KeyPgOpenLpt


Revision [21760]

Last edited on 2017-05-25 00:20:10 by fxm [Typo]
Additions:
**Open Lpt** ["[LPT[x]:][//Printer_Name//][,//TITLE=Doc_Title//][,//EMU=TTY//]"] [For Input|Output] [[KeyPgAs|as]] #//filenumber//
**Open Lpt** "LPT..." [[KeyPgAs|as]] [#]//filenumber//
//result// = **Open Lpt**( "LPT..."[,] [[KeyPgAs|as]] [#]//filenumber// )
##//filenumber//##
Deletions:
**Open Lpt** ["[LPT[x]:][//Printer_Name//][,//TITLE=Doc_Title//][,//EMU=TTY//]"] [For Input|Output] [[KeyPgAs|as]] #//filenum//
**Open Lpt** "LPT..." [[KeyPgAs|as]] [#]//filenum//
//result// = **Open Lpt**( "LPT..."[,] [[KeyPgAs|as]] [#]//filenum// )
##//filenum//##


Revision [21641]

Edited on 2016-10-30 18:30:35 by fxm [Formatting]
Additions:





Revision [21540]

Edited on 2016-08-13 09:33:18 by fxm [Corrected bad referring to 'Open']
Additions:
The error code returned by ##**Open Lpt**## can be checked using ##[[KeyPgErr|Err]]## in the next line. The function version of ##**Open Lpt**## returns directly the error code as a 32 bit ##[[KeyPgLong|Long]]##.
Deletions:
The error code returned by ##**Open Lpt**## can be checked using ##[[KeyPgErr|Err]]## in the next line. The function version of ##**Open**## returns directly the error code as a 32 bit ##[[KeyPgLong|Long]]##.


Revision [21332]

Edited on 2016-04-06 03:39:31 by fxm [The error code returned can also be checked using Err()]
Additions:
The error code returned by ##**Open Lpt**## can be checked using ##[[KeyPgErr|Err]]## in the next line. The function version of ##**Open**## returns directly the error code as a 32 bit ##[[KeyPgLong|Long]]##.


Revision [21317]

Edited on 2016-04-03 16:47:13 by fxm [Open Lpt() returns a 32 bit Long]
Additions:
A 32 bit ##[[KeyPgLong|Long]]##: ##0## is returned if ##**Open Lpt()**## completed successfully, otherwise a non-zero value is returned to indicate failure.
Deletions:
A 32 bit ##[[KeyPgLong|Long]]##: ##0## is returned if ##**Open Lpt**## completed successfully, otherwise a non-zero value is returned to indicate failure.


Revision [21313]

Edited on 2016-04-03 16:38:10 by fxm [Open Lpt() returns a 32 bit Long]
Additions:
A 32 bit ##[[KeyPgLong|Long]]##: ##0## is returned if ##**Open Lpt**## completed successfully, otherwise a non-zero value is returned to indicate failure.
Deletions:
##0## is returned if ##**Open Lpt**## completed successfully, otherwise a non-zero value is returned to indicate failure.


Revision [21026]

Edited on 2016-03-13 05:57:22 by fxm [Formatting]
Additions:









Revision [20376]

Edited on 2016-02-10 16:04:22 by DkLwikki [Update link format]
Additions:
**Open Lpt** ["[LPT[x]:][//Printer_Name//][,//TITLE=Doc_Title//][,//EMU=TTY//]"] [For Input|Output] [[KeyPgAs|as]] #//filenum//
**Open Lpt** "LPT..." [[KeyPgAs|as]] [#]//filenum//
//result// = **Open Lpt**( "LPT..."[,] [[KeyPgAs|as]] [#]//filenum// )
##**Open Lpt**## opens a connection to a printer device. The connection is treated like a file, so data may be written to the printer using ##[[KeyPgPrint|Print]]## and ##[[KeyPgPutfileio|Put #]]## commands.
##[[KeyPgLprint|Lprint]]## will automatically try to open the default printer on Windows and Linux, and ##"LPT1:"## on DOS.
Line Input #RptFileFileNum, RptInput
Print #PrintFileNum, RptInput
- In the //[[CompilerOptlang|-lang qb]]// dialect the old syntax is supported OPEN "LPT:..." . This syntax used in the other dialects will open a regular file.
- ##[[KeyPgOpen|Open]]##
- ##[[KeyPgLprint|Lprint]]##
Deletions:
**Open Lpt** ["[LPT[x]:][//Printer_Name//][,//TITLE=Doc_Title//][,//EMU=TTY//]"] [For Input|Output] [[KeyPgAs as]] #//filenum//
**Open Lpt** "LPT..." [[KeyPgAs as]] [#]//filenum//
//result// = **Open Lpt**( "LPT..."[,] [[KeyPgAs as]] [#]//filenum// )
##**Open Lpt**## opens a connection to a printer device. The connection is treated like a file, so data may be written to the printer using ##[[KeyPgPrint Print]]## and ##[[KeyPgPutfileio Put #]]## commands.
##[[KeyPgLprint Lprint]]## will automatically try to open the default printer on Windows and Linux, and ##"LPT1:"## on DOS.
Line Input #RptFileFileNum, RptInput
Print #PrintFileNum, RptInput
- In the //[[CompilerOptlang -lang qb]]// dialect the old syntax is supported OPEN "LPT:..." . This syntax used in the other dialects will open a regular file.
- ##[[KeyPgOpen Open]]##
- ##[[KeyPgLprint Lprint]]##


Revision [17581]

Edited on 2015-04-04 06:46:22 by FxMwikki [In function version of OPEN LPT, a comma is not mandatory to separate fields]
Additions:
//result// = **Open Lpt**( "LPT..."[,] [[KeyPgAs as]] [#]//filenum// )
Deletions:
//result// = **Open Lpt**( "LPT..." [[KeyPgAs as]] [#]//filenum// )


Revision [16292]

Edited on 2012-08-16 18:33:35 by CountingPine [Formatting]
Additions:
##0## is returned if ##**Open Lpt**## completed successfully, otherwise a non-zero value is returned to indicate failure.
##**Open Lpt**## opens a connection to a printer device. The connection is treated like a file, so data may be written to the printer using ##[[KeyPgPrint Print]]## and ##[[KeyPgPutfileio Put #]]## commands.
Deletions:
Zero is returned if **Open Lpt** completed successfully, otherwise a non-zero value is returned to indicate failure.
**Open Lpt** opens a connection to a printer device. The connection is treated like a file, so data may be written to the printer using ##[[KeyPgPrint Print]]## and ##[[KeyPgPutfileio Put #]]## commands.


Revision [16291]

Edited on 2012-08-16 18:32:18 by CountingPine [Formatting]
Additions:
Any printer attached to the system may be opened with ##**Open Lpt**##
##**Open Lpt** "LPT:" ...## will try to open the default printer on Windows and Linux, and ##"LPT1:"## on DOS.
The argument ##EMU=TTY## assumes printable ASCII or Unicode text, and applies printer driver text imaging to the input. ##EMU=TTY## also allows the usage of CR, LF, BS, TAB, FF, etc., for virtual print-head movement...even when the printer is a GDI printer and therefore doesn't itself understand these special characters. If ##",EMU=TTY"## is omitted, the data must be sent in the printer's language (ESC/P, HPGL, ""PostScript"", etc...). Other useful emulation modes aren't supported yet.
A printer spooler available through ##lp## must be installed to access printers by name or a default printer. Spooler access was tested only with CUPS, but other spoolers may work that are invoked through ##lp##. Port are zero-based on Linux. ##"LPT1:"## corresponds with ##"/dev/lp0"##.
The data must be sent in the printer's language (ESC/P, HPGL, ""PostScript"", etc...). Emulation modes aren't supported yet.
""FreeBASIC"" does not support print spoolers on DOS. Printers must be accessible through ##"LPTx:"##.
The data must be sent in the printer's language (ESC/P, HPGL, ""PostScript"", etc...). Emulation modes aren't supported yet.
Deletions:
Any printer attached to the system may be opened with **Open Lpt**
##**Open Lpt** "LPT:" ...## will try to open the default printer on Windows and Linux, and "LPT1:" on DOS.
The argument EMU=TTY assumes printable ASCII or Unicode text, and applies printer driver text imaging to the input. EMU=TTY also allows the usage of CR, LF, BS, TAB, FF, etc., for virtual print-head movement...even when the printer is a GDI printer and therefore doesn't itself understand these special characters. If ",EMU=TTY" is omitted, the data must be sent in the printer's language (ESC/P, HPGL, PostScript, etc...). Other useful emulation modes aren't supported yet.
A printer spooler available through ##lp## must be installed to access printers by name or a default printer. Spooler access was tested only with CUPS, but other spoolers may work that are invoked through ##lp##. Port are zero based on linux. ##"LPT1:"## corresponds with ##"/dev/lp0"##.
The data must be sent in the printer's language (ESC/P, HPGL, PostScript, etc...). Emulation modes aren't supported yet.
FreeBASIC does not support print spoolers on DOS. Printers must be accessible through ##"LPTx:"##.
The data must be sent in the printer's language (ESC/P, HPGL, PostScript, etc...). Emulation modes aren't supported yet.


Revision [16228]

Edited on 2012-07-28 09:35:13 by CountingPine [Link to Open]
Additions:
- ##[[KeyPgOpen Open]]##


Revision [12388]

The oldest known version of this page was created on 2008-01-18 14:19:58 by JeffMarshall [Link to Open]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode