Com port printing in PowerBuilder 7 - TechRepublic
General discussion
October 3, 2000 at 04:56 AM
jamesa

Com port printing in PowerBuilder 7

by jamesa . Updated 24 years, 5 months ago

I have a program originally written in PowerBuilder 5.0 that uses the PrintSend command to print to an Automark tag machine. It worked fine but when we upgraded to PowerBuilder 7.0 the PrintSend command no longer worked.

I can get it to print using just a print command but I cannot get it to do a line feed. Everything keeps printing over the top of itself.

Here is the original code used in PB5:
gs_tagposition =”X111222″

PrintSend(li_tag, Char(27) + gs_tagposition[i2])
PrintSend(li_tag, ls_tempstring)
PrintClose(li_tag)

The problem is the tag machine has to have the x and y coordinates sent to it in this format “X111222” with the first three numbers being the x position and the last three the y position.

The only reason for the upgrade was because we kept getting the following message. “The instruction at 0xBFF7B30B referenced memory at 0x0000006. The memory could not be written.” When I checked the system info that memory is being used by the system board extensionsfor PnP BIOS.

If anybody can help me with either problem I would appreciate it.

This discussion is locked

All Comments