bluetooth print follow

Postby Richard Chidiak » Mon Feb 26, 2007 1:23 pm

Antonio

The printer is HP DESKJET 460 BT

I am gonna check the docs at the customer's place to see if i can find something.

Still puzzled ! Why File explorer does not need to set a default font ??

Thanks for the help
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 Enrico Maria Giordano » Mon Feb 26, 2007 1:42 pm

Richard Chidiak wrote:Still puzzled ! Why File explorer does not need to set a default font ??


Following my previous message, if the printer really receives code 223 then it has to be a printer setting. Perhaps File explorer sends additive control codes?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Antonio Linares » Mon Feb 26, 2007 2:01 pm

Enrico,

Yes, I fully agree with you. It has to be that way
regards, saludos

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

Postby Antonio Linares » Thu Mar 01, 2007 7:49 am

Richard,

Maybe we have missed something obvious, that the expected value has to be signed. Please try it this way:
Code: Select all  Expand view
HB_FUNC( WRITE233 ) // hComm --> lOk
{
   DWORD cBytes;
   char ch = 233;
   
   hb_retl( ( BOOL ) WriteFile( ( void * ) hb_parnl( 1 ), &ch, 1, &cBytes, NULL ) );
}
regards, saludos

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

Postby Enrico Maria Giordano » Thu Mar 01, 2007 7:53 am

Don't think so. It is more likely that the printer requires wide chars instead of simple chars.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Antonio Linares » Thu Mar 01, 2007 8:06 am

Enrico,

We have already tested with wide chars, unless we may be missing a signed test also
regards, saludos

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

Postby Enrico Maria Giordano » Thu Mar 01, 2007 9:43 am

Did you try using AnsiToWide()?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Antonio Linares » Thu Mar 01, 2007 10:07 am

Enrico,

No, we didn't. Yes, you are right, we should try it also
regards, saludos

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

Postby Richard Chidiak » Wed Mar 07, 2007 9:22 am

Antonio

I do not have the printer available at the moment. It was delivered to the customer.

I will have a new one within the next 2 days (we have purchased one).

I will continue testing when i will have it available,

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 » Wed Mar 07, 2007 10:57 am

Richard,

Ok, thanks
regards, saludos

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

Previous

Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 13 guests