FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC bluetooth print follow
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
bluetooth print follow
Posted: Mon Feb 26, 2007 01: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
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
bluetooth print follow
Posted: Mon Feb 26, 2007 01: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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
bluetooth print follow
Posted: Mon Feb 26, 2007 02:01 PM

Enrico,

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
bluetooth print follow
Posted: Thu Mar 01, 2007 07:49 AM
Richard,

Maybe we have missed something obvious, that the expected value has to be signed. Please try it this way:
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
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
bluetooth print follow
Posted: Thu Mar 01, 2007 07:53 AM

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

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
bluetooth print follow
Posted: Thu Mar 01, 2007 08: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
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
bluetooth print follow
Posted: Thu Mar 01, 2007 09:43 AM

Did you try using AnsiToWide()?

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
bluetooth print follow
Posted: 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
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
bluetooth print follow
Posted: Wed Mar 07, 2007 09: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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
bluetooth print follow
Posted: Wed Mar 07, 2007 10:57 AM

Richard,

Ok, thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion