My app has migrated over the years from Foxbase to VFP8. We still use a lot of the old code so I still have a challenge with POS features on Win Computers. I would appreciate any suggestions or solutions.
Example of code used after adding generic printer named POS. The routine works only if I remark out the "set printer to name" line in which case it goes to the default printer, which I am trying to avoid. I would like to
send to a com port or usb port when necessary as clients all have different scenarios to deal with.
********************************
*Select the POS printer / drawer
SET DEVICE TO print
SET PRINTER TO NAME "POS"
??? CHR(7) && Send Bell for Cash Drawer
@PROW(),5 say "12345" && Receipt Details
SET DEVICE TO screen
* Reselect Default Printer
SET PRINTER TO DEFAULT
* Continue
********************************
Example of code used after adding generic printer named POS. The routine works only if I remark out the "set printer to name" line in which case it goes to the default printer, which I am trying to avoid. I would like to
send to a com port or usb port when necessary as clients all have different scenarios to deal with.
********************************
*Select the POS printer / drawer
SET DEVICE TO print
SET PRINTER TO NAME "POS"
??? CHR(7) && Send Bell for Cash Drawer
@PROW(),5 say "12345" && Receipt Details
SET DEVICE TO screen
* Reselect Default Printer
SET PRINTER TO DEFAULT
* Continue
********************************