Skip to content

Commit

Permalink
Set print range and page orientation on yearly bike report
Browse files Browse the repository at this point in the history
Closes #238
  • Loading branch information
marioba committed Feb 3, 2022
1 parent 2c989d6 commit 4f912fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Binary file modified comptages/report/template_yearly_bike.xlsx
Binary file not shown.
6 changes: 6 additions & 0 deletions comptages/report/yearly_report_bike.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,12 @@ def run(self):
)
row += 1

ws = workbook['AN_GR']
ws.print_area = 'A1:Z62'

ws = workbook['CAT']
ws.print_area = 'A1:Z62'

# Save the file
output = os.path.join(
self.file_path, '{}_{}_r.xlsx'.format(self.section_id, self.year))
Expand Down

0 comments on commit 4f912fa

Please sign in to comment.