I would like the user to still have the option to change the layout in case he wants to, but the default should always stay on landscape.
As far as I know, we couldn't directly modify the Chrome default setting by html codes. The browser only support modify the print setting by using @page.
I suggest you could post this issue on the chome forum as below url:
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Member
53 Points
275 Posts
Print layout- change default settings
Feb 04, 2019 08:42 AM|qsoft_developer|LINK
Hi,
Is there a way to change default print layout to landscape in Chrome and IE browsers?
I tried using the following code:
printWindow.document.write('<style>@page { size: landscape; }</style>');
However, it makes the Layout option disappear in Chrome, and in IE it doesn't seem to work at all.
I would like the user to still have the option to change the layout in case he wants to, but the default should always stay on landscape.
Star
9831 Points
3120 Posts
Re: Print layout- change default settings
Feb 05, 2019 04:03 AM|Brando ZWZ|LINK
Hi qsoft_developer,
As far as I know, we couldn't directly modify the Chrome default setting by html codes. The browser only support modify the print setting by using @page.
I suggest you could post this issue on the chome forum as below url:
https://productforums.google.com/forum/#!forum/chrome
Besides, IE doesn't support modify the size by using landscape, I suggest you could also post this question on below forum.
https://social.msdn.microsoft.com/Forums/en-US/home?forum=iewebdevelopment
Best Regards,
Brando