I am trying to print something out on our check stubs. I have a text field created and I want to print order # and invoice # in it then return and print another one if there is one. What is the BEST practice to get a newline character in there? EXAMPLE
Order # INVOICE #
123456 7891011
234567 89101112
Currently I am going through a loop and sending this
comment = comment.append(Setquery.getString("order_id", null) + " " + Setquery.getString("external_invoiceno", " ") + "\n");
I am just not sure that the "\n" is the best way to do this for all systems, printers, and platforms..... Is there a better way to send a newline or carriage-return the "\n" or is that the best practice?
For some reason when I was testing this in my development environment, it was working fine. The I moved it over to live and this is what I got:
123456 7891011?234567 89101112?
I am pretty sure that the "?" is the newline symbol, but is there some reason that one printer/OS reads it OK and another does not?
Order # INVOICE #
123456 7891011
234567 89101112
Currently I am going through a loop and sending this
comment = comment.append(Setquery.getString("order_id", null) + " " + Setquery.getString("external_invoiceno", " ") + "\n");
I am just not sure that the "\n" is the best way to do this for all systems, printers, and platforms..... Is there a better way to send a newline or carriage-return the "\n" or is that the best practice?
For some reason when I was testing this in my development environment, it was working fine. The I moved it over to live and this is what I got:
123456 7891011?234567 89101112?
I am pretty sure that the "?" is the newline symbol, but is there some reason that one printer/OS reads it OK and another does not?