PB資料視窗每頁列印固定行

來源:互聯網
上載者:User

資料視窗每頁列印固定行 
  
  第一步:增加一個計算資料行,此計算資料行必須放在Detail段,Expression中輸入:
 
ceiling(getrow()/10)  每頁列印10行
 

  第二步:定義分組,選擇菜單Rows->Create Group...

 

  按計算資料行欄位分組,並一定將check box-->New Page On Group Break選中。

 

  第三步:將此計算資料行設為不可視。

 
  另外,如果需要最後一頁不足補空行。也很簡單,如下:
 
  long ll_pagerow = 10 //每頁列印行數
 
  long ll_count, ll_row
 
  ll_count = dw_report.retrieve(...) //取得現有報表的總行數
 
  ll_count = ll_pagerow - mod(ll_count, ll_pagerow)
 
  If ll_count < ll_pagerow Then
 
   for ll_row = 1 to ll_count
 
    dw_print.insertrow(0) //補足空行
 
   next
 
  end If 
  

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.