lib/write_xlsx/worksheet.rb in write_xlsx-0.83.0 vs lib/write_xlsx/worksheet.rb in write_xlsx-0.85.1
- old
+ new
@@ -1623,10 +1623,17 @@
def set_print_scale(scale = 100)
put_deprecate_message("#{self}.set_print_scale")
self::print_scale = (scale)
end
+ #
+ # Set the option to print the worksheet in black and white.
+ #
+ def print_black_and_white
+ @page_setup.black_white = true
+ end
+
#
# Display the worksheet right to left for some eastern versions of Excel.
#
# The right_to_left() method is used to change the default direction
# of the worksheet from left-to-right, with the A1 cell in the top
@@ -1691,10 +1698,9 @@
#
# worksheet.set_start_page(2)
#
def start_page=(page_start)
@page_setup.page_start = page_start
- @custom_start = 1
end
def set_start_page(page_start)
put_deprecate_message("#{self}.set_start_page")
self::start_page = page_start