[futurebasic] Dot Matrix Printing Problem

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2000 : Group Archive : Group : All Groups

From: JSMITHXX@...
Date: Thu, 1 Jun 2000 20:00:08 EDT
I am in the process of converting a QuickBASIC (QB) point of sale program
to FB-II (using PGPro). 

In the QB environment, I am able to open the cash drawer by using  LPRINT 
CHR$(7). Also, all printing is done using the LPRINT command. No problems.

In FB-II, the printer is attached to the modem port.
I open the port as follows:

gPortID = _modemPort                
OPEN "C", #gPortID , 9600, _noParity, _oneStopBit, _eightBits, 2500
HANDSHAKE  #gPortID , _dtr

There is no problem printing to the dot matrix printer with statements 
like 
 
PRINT #gPortID, "Hello"

However, when I try to use the same scheme to open the drawer

  PRINT #gPortID, CHR$(7) ;
  
nothing happens.

If anyone has experienced the same problem or has a solution, I would be very 
gratful.

Thanks

Joe