FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour tdosprn usb port
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
tdosprn usb port
Posted: Mon Mar 13, 2006 08:39 PM

Hello

Has anyone succeded using tdosprn on a usb port ?

I need to send ESC commands to a pos printer on a usb port, any idea ?

Thanks for the help

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 190
Joined: Tue Mar 14, 2006 01:59 AM
tdosprn usb port
Posted: Tue Mar 14, 2006 04:27 PM

Richard,

You may want to have a look at xHarbour's PrintFileRaw() function.

Hi,
Davide

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
tdosprn usb port
Posted: Tue Mar 14, 2006 05:29 PM

Richard,

I found the note below in my archives. I don't know if it will help.

If it doesn't help, perhaps you can contact Kleyber for help.

Also, there is a FW function escape() for sending escape codes to the printer.

James


Posted: 12/25/03

Evans,

Try putting this line in your main prg before open any databases.

xHd := GetPrintDefault( GetActiveWindow() )

Regards and Merry Christmas

--
Kleyber Derick Batalha Ribeiro
Diretor de Produtos
TK Informídia Ltda
email: kleyber@tkinformidia.net
Web: www.tkinformidia.net

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
tdosprn usb port
Posted: Tue Mar 14, 2006 07:58 PM
Davide wrote:Richard,

You may want to have a look at xHarbour's PrintFileRaw() function.

Hi,
Davide


Thank you i will have a look at this function. Though i use fw printing, i will check if both can work together (this is my problem)

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
tdosprn usb port
Posted: Tue Mar 14, 2006 08:03 PM
James Bott wrote:Richard,

I found the note below in my archives. I don't know if it will help.

If it doesn't help, perhaps you can contact Kleyber for help.

Also, there is a FW function escape() for sending escape codes to the printer.

James

---------------------
Posted: 12/25/03

Evans,

Try putting this line in your main prg before open any databases.

xHd := GetPrintDefault( GetActiveWindow() )

Regards and Merry Christmas

--
Kleyber Derick Batalha Ribeiro
Diretor de Produtos
TK Informídia Ltda
email: kleyber@tkinformidia.net
Web: www.tkinformidia.net


Thank you James,

I will try Escape (hopefully it is in my old fwh printdc.c), i can not use recent fwh print because of easypreview !
Hopefully we get a possibility of emailing PDf direct from fwh's preview, so I will not need easypreview anymore.

Best regards

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
tdosprn usb port
Posted: Tue Mar 14, 2006 08:06 PM

Richard,

Your printdc.c surely has Escape().

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 92
Joined: Fri Nov 18, 2005 11:15 PM
tdosprn usb port
Posted: Tue Mar 14, 2006 10:05 PM

Have a look at this example, maybe can help you.

www.solupymes.com/fwin/tdosprev.zip

This was published in the spanish forum at Feb/07

Ralph del Castillo

Lima PERU

Fwh 24.07, xHb123_10193, MySQL 8.x, BCC 7.3
Posts: 190
Joined: Tue Mar 14, 2006 01:59 AM
tdosprn usb port
Posted: Tue Mar 14, 2006 10:19 PM
Richard Chidiak wrote:

Though i use fw printing, i will check if both can work together (this is my problem)

Richard


I use them both in a FWH project of mine, so, yes, they can work together (one after the other).

Hi, Davide.

Continue the discussion