I am using AREV 2.03. Network printer HP Deskjet 895Cxi. I have created a form in Merge that uses the Doublewide format and it prints just fine. But, when I try to write RBASIC code and send the same Escape sequence to the printer (read from the same MRG.PRINTER.CONFIG file) for another print routine, the printer does not recognize it.
What am I leaving out that the Merge processor seems to do?
Thanks for any help.
Rod
Are you just sending just the text string or are you converting to an escape sequence i.e. Char(27) : Char(44) : Char(30) etc?
World Leaders in all things RevSoft
I am converting the text string to Char(). It seems to turn it on when I send the command via RBASIC but it will not turn off BOLD or DOUBLEWIDE printing.
Try adding a Char(27) : Char(64) to the end and see if that makes any difference.
World Leaders in all things RevSoft
Thanks for the suggestion but it didn't make a difference. I assume that MERGE uses the 'End' command to turn off Doublewide because that is the sequence that I pull out in the RBASIC program. I have tested several approaches and none seem to behave the same way that MERGE does.
Are you using CHAR(27):"(s0B" at the place in the code to turn off the Bold command.
Thanks for your response Mark. Yes I have used that command. It seems the problem lies more with the end.doublewide command. I don't understand why it works with MERGE but not with my code. I'm using the same sequences that MERGE uses and converting the string to CHAR().
Can you post the code? If you are printing the values of a variable, make sure you use
PRINT var_name:
not
PRINT var_name
or you will get CR:LF inserted. If these are inserted in the middle of a sequence, you can throw off the interpreter.