Sha256: 3c7982c74f05a6a400a0adb7d6e7403bd0c871248a5fd64b3ba0d05006292352

Contents?: true

Size: 425 Bytes

Versions: 2

Compression:

Stored size: 425 Bytes

Contents

# coding: utf-8

CaseRunner.current :list_manual_generation

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
thinreports-0.7.6 test/case/list_manual_generation/list_manual_generation.rb
thinreports-0.7.5 test/case/list_manual_generation/list_manual_generation.rb