API version 4

- ‐

RW

integer

pageRows

1ページの表示行数を指定します。

1ページの表示行数を指定します。0の場合は、表示できるPrintRecordの数に合わされます。 (pageRowsを指定した場合でも、表示可能なPrintRecord数がそれより少ない場合は、表示可能なPrintRecord数で改ページされます)

初期値は0です。



使用例 CRSダウンロード

Form formPrintRegion_pageRows {
   x = 0; y = 0; width = 800; height = 600;
   PrintForm printform1 {
           x = 10; y = 72; width = 256; height = 362;
           TextField textfield1 {
                   x = 16; y = 8; width = 224; height = 16;
                   value="pageRows=3";
           }
           PrintRegion printregion1 {
                   x = 24; y = 24; width = 216; height = 120;
                   pageRows = 3;
                   PrintHeader printheader1 {
                           height = 16;
                           HeaderField header[3] { width = 70; }
                   }
                   PrintRecord rec[] {
                           height = 16;
                           TextField item[3];
                   }
           }
           TextField textfield2 {
                   x = 16; y = 176; width = 224; height = 16;
                   value="pageRows=0";
           }
           PrintRegion printregion2 {
                   x = 24; y = 192; width = 216; height = 120;
                   pageRows = 0;
                   PrintHeader printheader1 {
                           height = 16;
                           HeaderField header[3] { width = 70; }
                   }
                   PrintRecord rec[] {
                           height = 16;
                           TextField item[3];
                   }
           }
           var c = CSV(Item1,Item2,Item3) {
AAA,XXX,111
AAA,YYY,111
AAA,ZZZ,111
BBB,ZZZ,"222
aaa"
BBB,ZZZ,"333
bbb"
BBB,ZZZ,"444
ccc"
CCC,XXX,555
CCC,YYY,666
CCC,ZZZ,777
           };
           printregion1.rec << c;
           printregion1.rec[3].height = 32;
           printregion1.rec[4].height = 32;
           printregion1.rec[5].height = 32;

           printregion2.rec << c;
           printregion2.rec[3].height = 32;
           printregion2.rec[4].height = 32;
           printregion2.rec[5].height = 32;
   }

   Button buttonPrint {
           x = 8; y = 8; width = 56; height = 24; title = "印刷";
           function onTouch(e) {
                   ^.printpreview1.clearPages();
                   ^.printpreview1.document = ^.printform1.printDocument();
           }
   }
   PrintPreview printpreview1 {
           x = 272; y = 8; width = 488; height = 472;
   }
}