locked
Print layout- change default settings RRS feed

  • Question

  • User1310055179 posted

    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 <g class="gr_ gr_12 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins doubleReplace replaceWithoutSep" id="12" data-gr-id="12">landscape</g>.

    Monday, February 4, 2019 8:42 AM

Answers

  • User283571144 posted

    Hi qsoft_developer,

    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:

    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

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, February 5, 2019 4:03 AM