Sha256: 1cbdd604f62a7a25e38daee6d253d8593939e1fc364ec9fc205ab218ee6864af

Contents?: true

Size: 691 Bytes

Versions: 1

Compression:

Stored size: 691 Bytes

Contents

# frozen_string_literal: true

require_relative './xlsx_func_testcase'

class TestPageSetup < XlsxWriterTestCase
  test 'page_view01' do |wb|
    ws = wb.add_worksheet
    ws.set_page_view
    ws.write_string(0, 'A', 'Foo', nil)
    ws.paper = 9
    ws.vertical_dpi = 200
  end

  test 'landscape01' do |wb|
    ws = wb.add_worksheet
    ws.write_string(0, 'A', 'Foo', nil)
    ws.set_landscape
    ws.paper = 9
    ws.vertical_dpi = 200
  end

  test 'print_across01' do |wb, t|
    t.ignore_elements = { 'xl/worksheets/sheet1.xml' => ['<pageMargins'] }
    ws = wb.add_worksheet
    ws.print_across
    ws.paper = 9
    ws.vertical_dpi = 200
    ws.write_string 0, 0, 'Foo', nil
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xlsxwriter-0.2.2 test/test_page_setup.rb