1. Arcady Abramov
  2. PowerBuilder
  3. Tuesday, 23 June 2020 12:27 PM UTC

Hello, support

I need to know how to set up a page size for DW, which is being printed on a continuous sheet. 

We are talking about a cash register app, which is printing long receipts. I need to avoid page breaks even if there are 200 rows in the grid.

How do I do it?

Thank you

Arcady

mike S Accepted Answer Pending Moderation
  1. Tuesday, 23 June 2020 13:23 PM UTC
  2. PowerBuilder
  3. # 1

write to the printer port instead of dw.print()

 

 

 

 

Comment
  1. Arcady Abramov
  2. Tuesday, 23 June 2020 13:28 PM UTC
Do you have an example of that?

There has to be an easier way
  1. Helpful
  1. mike S
  2. Tuesday, 23 June 2020 13:52 PM UTC
if the dw.print doesn't give you enough control, then writing to a port is the only option.



also, the printer may have options for some things too, you would have to read up on that.



writing to a port is the exact same as writing to a file:



https://community.appeon.com/index.php/qna/q-a/read-data-from-a-port



https://groups.google.com/forum/#!topic/sybase.public.powerbuilder.general/1Dq1yImSHcQ

  1. Helpful
  1. Arcady Abramov
  2. Wednesday, 24 June 2020 04:21 AM UTC
I do not think this would work so easily on a Terminal server.

The printer is not physically connected to the machine, which is running the code

  1. Helpful
There are no comments made yet.
Sivaprakash BKR Accepted Answer Pending Moderation
  1. Monday, 29 June 2020 06:09 AM UTC
  2. PowerBuilder
  3. # 2

Try writing to a text file, using FileOpen, FileWrite & FileClose and then print that file.  

HTH

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.