Method: Worksheet#setup_page_record

Defined in:
lib/surpass/worksheet.rb

#setup_page_recordObject



446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
# File 'lib/surpass/worksheet.rb', line 446

def setup_page_record
  setup_page_options =  (@print_in_rows & 0x01) << 0
  setup_page_options |=  (@portrait & 0x01) << 1
  setup_page_options |=  (0x00 & 0x01) << 2
  setup_page_options |=  (@print_not_colour & 0x01) << 3
  setup_page_options |=  (@print_draft & 0x01) << 4
  setup_page_options |=  (@print_notes & 0x01) << 5
  setup_page_options |=  (0x00 & 0x01) << 6
  setup_page_options |=  (0x01 & 0x01) << 7
  setup_page_options |=  (@print_notes_at_end & 0x01) << 9
  setup_page_options |=  (@print_omit_errors & 0x03) << 10

  args = [
    @paper_size_code,
    @print_scaling,
    @start_page_number,
    @fit_width_to_pages,
    @fit_height_to_pages,
    setup_page_options,
    @print_hres,
    @print_vres,
    @header_margin,
    @footer_margin,
    @copies_num
  ]
  SetupPageRecord.new(*args).to_biff
end