tdosprn usb port

tdosprn usb port

Postby Richard Chidiak » Mon Mar 13, 2006 8: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
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Postby Davide » Tue Mar 14, 2006 4:27 pm

Richard,

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

Hi,
Davide
Davide
 
Posts: 190
Joined: Tue Mar 14, 2006 1:59 am
Location: Italy

Postby James Bott » Tue Mar 14, 2006 5: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby Richard Chidiak » Tue Mar 14, 2006 7: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
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Postby Richard Chidiak » Tue Mar 14, 2006 8: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
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Postby Antonio Linares » Tue Mar 14, 2006 8:06 pm

Richard,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby ralph » 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
User avatar
ralph
 
Posts: 79
Joined: Fri Nov 18, 2005 11:15 pm
Location: Lima - PERU

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 73 guests