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