tfussell / xlnt

:bar_chart: Cross-platform user-friendly xlsx library for C++11+
Other
1.47k stars 409 forks source link

Strange behavior with paper_size #614

Open EinRainerZufall opened 2 years ago

EinRainerZufall commented 2 years ago

If i use page_setup::orientation the size of the paper ist always Letter regardless i try to set it to A4

if i use that the paper size is Letter

xlnt::page_setup setup;
setup.orientation_.set(xlnt::orientation::landscape);
setup.paper_size(xlnt::paper_size::a4);
ws.page_setup(setup);

i dont now if im doing something wrong or this is a bug?