Merge and printer commands (AREV Specific)
At 13 MAR 2002 04:19:16PM Rod Morris wrote:
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
At 14 MAR 2002 11:59AM [url=http://www.sprezzatura.com" onMouseOver=window.status=Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote:
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
At 14 MAR 2002 01:31PM Rod Morris wrote:
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.
At 14 MAR 2002 02:01PM [url=http://www.sprezzatura.com" onMouseOver=window.status=Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote:
Try adding a Char(27) : Char(64) to the end and see if that makes any difference.
World Leaders in all things RevSoft
At 14 MAR 2002 06:08PM Rod Morris wrote:
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.
At 14 MAR 2002 07:46PM Mark Watford wrote:
Are you using CHAR(27):"(s0B" at the place in the code to turn off the Bold command.
At 15 MAR 2002 03:50AM Rod Morris wrote:
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().
At 18 MAR 2002 04:52PM Victor Engel wrote:
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.