QtExcel/QXlsx

Page orientation

Opened this issue · 3 comments

How can I set the page orientation of a sheet to landscape?

You can try to use my modification. How can I send you the modified files?

   xlsx->currentWorksheet()->setPrintPaperSize(9);
   xlsx->currentWorksheet()->setPrintOrientation(QXlsx::Worksheet::Portrait);
   xlsx->currentWorksheet()->setPrintFitToWidth(1);
   xlsx->currentWorksheet()->setPrintFitToHeight(1);

You can download Qxlsx with addons https://github.com/NikkiKurashov/QXlsx