Sha256: a50113ffc96c572fc9505deddc6300534a436ed87e24c30ecca946224fe4144f

Contents?: true

Size: 436 Bytes

Versions: 3

Compression:

Stored size: 436 Bytes

Contents

# frozen_string_literal: true

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

3 entries across 3 versions & 1 rubygems

Version Path
thinreports-0.10.2 examples/list_page_number/list_page_number.rb
thinreports-0.10.1 examples/list_page_number/list_page_number.rb
thinreports-0.10.0 examples/list_page_number/list_page_number.rb