Sha256: 03437e8ce4961cf4e0dcc913caadf6d45b940bbc5fce1a69fc204c4c720120e3

Contents?: true

Size: 422 Bytes

Versions: 5

Compression:

Stored size: 422 Bytes

Contents

# coding: utf-8

example :list_page_number, 'Draw page-number automatically each list' do |t|
  report = Thinreports::Report.new layout: t.layout_filename

  report.start_new_page
  report.page.item(:group_no).value('Group A')

  10.times { report.list.add_row }

  report.start_new_page
  report.page.item(:group_no).value('Group B')

  20.times { report.list.add_row }

  report.generate filename: t.output_filename
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
thinreports-0.9.1 examples/list_page_number/list_page_number.rb
thinreports-0.9.0 examples/list_page_number/list_page_number.rb
thinreports-0.8.2 examples/list_page_number/list_page_number.rb
thinreports-0.8.1 examples/list_page_number/list_page_number.rb
thinreports-0.8.0 examples/list_page_number/list_page_number.rb