I am trying to print a Razor view in landscape mode but if I try to use
CSS
/* @page {size:landscape} */
@media print {
@page {size: A4 landscape;max-height:100%; max-width:100%}
}the eroor is that @page can be only used once. What other alternative I have?


Sachin SinghRank #66 · 26.2K reputationPosted Aug 29, 2021, 6:10 AM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Aug 29, 2021, 5:11 AM EDT
Marius VasileRank #785 · 2.9K reputationPosted Aug 29, 2021, 5:18 AM EDT
Marius VasileRank #785 · 2.9K reputationPosted Aug 29, 2021, 6:16 AM EDT