Re: [fpc-pascal] raw printing throught USB port / WINDOWS

2015-01-13 Thread Chriss Kalogeropoulos
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

Re: [fpc-pascal] raw printing throught USB port / WINDOWS

2015-01-13 Thread Virgo Pärna
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

Re: [fpc-pascal] raw printing throught USB port / WINDOWS

2015-01-13 Thread Philippe
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

Re: [fpc-pascal] raw printing throught USB port / WINDOWS

2014-12-16 Thread Philippe
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

Re: [fpc-pascal] raw printing throught USB port / WINDOWS

2014-12-16 Thread LacaK
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

Re: [fpc-pascal] raw printing throught USB port / WINDOWS

2014-12-16 Thread Philippe
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

Re: [fpc-pascal] raw printing throught USB port / WINDOWS

2014-12-16 Thread LacaK
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

[fpc-pascal] raw printing throught USB port / WINDOWS

2014-12-16 Thread Philippe
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