Sha256: d700202d24165385fffc75114655ed4046625d8b9c94032ae7a4adb5c9618370

Contents?: true

Size: 500 Bytes

Versions: 1

Compression:

Stored size: 500 Bytes

Contents

# coding: utf-8

CaseRunner.current :list_manual_generation

ThinReports::Report.generate_file(:pdf, CaseRunner.output_file) do
  use_layout(CaseRunner.layout_file)
  
  start_new_page
  
  page.list(:list).header do |h|
    h.item(:header).value(page.no)
  end
  
  25.times do |t|
    if page.list(:list).overflow?
      start_new_page
      page.list(:list).header :header => page.no
    end
    
    page.list(:list).page_break if t == 15
    
    page.list(:list).add_row :detail => t
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
thinreports-0.7.0 test/case/list_manual_generation/list_manual_generation.rb