Search code examples
asp.nethtmlactivexobject

printing from client side client side landscape (ie only)


Can someone please help with the following: I am trying to force an asp.net page to go in landscape mode and remove all headers and footers.... N.b all clients only uses ie browser. therefore an activex control may work but i have not found any thus far.. thanks


Solution

  • If you are IE specific you can use CSS to rotate content 90 degrees. Documentation

    filter: progid:DXImageTransform.Microsoft.BasicImage(Rotation=3);
    

    I don't believe there is a JS solution to altering browser settings as this would be a security issue. ActiveX or some other binary should have access but then you will have installation issues.