Page 1 of 1
tdosprn usb port
Posted: Mon Mar 13, 2006 8:39 pm
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
Posted: Tue Mar 14, 2006 4:27 pm
by Davide
Richard,
You may want to have a look at xHarbour's PrintFileRaw() function.
Hi,
Davide
Posted: Tue Mar 14, 2006 5:29 pm
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
Posted: Tue Mar 14, 2006 7:58 pm
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
Posted: Tue Mar 14, 2006 8:03 pm
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
Posted: Tue Mar 14, 2006 8:06 pm
by Antonio Linares
Richard,
Your printdc.c surely has Escape().
Posted: Tue Mar 14, 2006 10:05 pm
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
Posted: Tue Mar 14, 2006 10:19 pm
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.