tdosprn usb port

Post Reply
User avatar
Richard Chidiak
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France
Contact:

tdosprn usb port

Post by Richard Chidiak »

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
Davide
Posts: 190
Joined: Tue Mar 14, 2006 1:59 am
Location: Italy

Post by Davide »

Richard,

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

Hi,
Davide
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

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
User avatar
Richard Chidiak
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France
Contact:

Post by Richard Chidiak »

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
User avatar
Richard Chidiak
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France
Contact:

Post by Richard Chidiak »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Richard,

Your printdc.c surely has Escape().
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
ralph
Posts: 63
Joined: Fri Nov 18, 2005 11:15 pm
Location: Lima - PERU

Post by ralph »

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
Davide
Posts: 190
Joined: Tue Mar 14, 2006 1:59 am
Location: Italy

Post by Davide »

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.
Post Reply