Hi,
map the USB Port to a Virtual Serial Port and open the Port as File using
CreateFile using name "\\.\COMxxx"
Then write to the port with the usual API file commands
Even better wrap this to a Stream (or FileStream) descendant and use
Stream.Write commands
Read and Seek should do nothing
I h
On Tue, 13 Jan 2015 10:41:55 -0200, Philippe wrote:
>
> First: could anyone tell me I have the possibility to access USB
> printer in raw mode with the "basic" FPC package (not using Lazarus
> packages/components)?
>
If you have USB printer installed , then winunits-base package has winspoo
Em 16.12.2014 10:35, LacaK escreveu:
Is the printer already known to Windows (can you print to that printer
from others windows applications) ?
If yes, then you can use:
Printer.SetPrinter('Printer name');
-Laco.
Em 16.12.2014 09:27, LacaK escreveu:
You can use:
Printer.RawMode := True;
Prin
good! ... I'll try that ... simple!!!
thank you!
Em 16.12.2014
10:35, LacaK escreveu:
> Is the printer already known to Windows (can
you print to that printer from others windows applications) ?
> If yes,
then you can use:
> Printer.SetPrinter('Printer name');
> -Laco.
>
>>
Em 16.12.2014
Is the printer already known to Windows (can you print to that printer
from others windows applications) ?
If yes, then you can use:
Printer.SetPrinter('Printer name');
-Laco.
Em 16.12.2014 09:27, LacaK escreveu:
You can use:
Printer.RawMode := True;
Printer.BeginDoc;
Pr
Em 16.12.2014 09:27, LacaK escreveu:
> You can use:
>
Printer.RawMode := True;
> Printer.BeginDoc;
>
> Printer.EndDoc;
>
-Laco.
> Thank you, but that the part I already knew (saw it searching
in Google).
The question is how to select the USB port and create
Printer ( win32/win64 ).
Li
You can use:
Printer.RawMode := True;
Printer.BeginDoc;
Printer.EndDoc;
-Laco.
I need a solution (unit?) to access printer (matricial like LX80,
LX300 and so on) in raw mode throught USB port directly from FPC
program build in mode win32 or win64.
apreciate any ideia
thanks
I need a solution (unit?) to access printer (matricial like LX80,
LX300 and so on) in raw mode throught USB port directly from FPC program
build in mode win32 or win64.
apreciate any ideia
thanks
Philippe ___
fpc-pascal maillist - fpc-pascal@li