1. William Hong
  2. PowerBuilder
  3. Saturday, 11 May 2024 09:46 AM UTC

Such as printing the text control precisely at a distance of 1 inch from the top left corner in both the X and Y coordinate directions.

My goal is to ensure that every DataWindow record is printed on a separate printing paper. Due to the frequent changes in the size of the printing paper, an empty string text control will be dynamically added to the bottom of the DataWindow to ensure that after printing each record, it will automatically switch to the next printing paper. How to find the location to place the text control has become a key issue. 

René Ullrich Accepted Answer Pending Moderation
  1. Wednesday, 15 May 2024 05:37 AM UTC
  2. PowerBuilder
  3. # 1

Hi William,

An easy way to have a page brake after each row is to create a group. For a group you can set a property "New page on Group Brake".

You have to use a group defintion in a way you have only one row in a group. You could use the primary key column(s) or use GetRow() as group definition.

HTH,

René

Comment
  1. William Hong
  2. Wednesday, 15 May 2024 06:23 AM UTC
Thank you! René, this solution is perfect!
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Saturday, 11 May 2024 12:20 PM UTC
  2. PowerBuilder
  3. # 2

Hi William;

  In the DW Painter, set the DWO's "units" property to inches. Then turn on the "Rulers" property. You should now be able to pinpoint exactly where the objects are to be located visually. Programmatically now the the DWO  is in inches, any dynamic location setting should be easier as well.  HTH 

Regards... Chris 

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.