471,120 Members | 1,382 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,120 software developers and data experts.

Changing print properties programmatically

Hello, I currently have an ASP.NET application that is displaying various reports. Some of the reports need to be printed in Portrait orientation and others in Landscape. Does anyone know a method for doing this. My code-behind is in C#. A javascript or css solution would be great as well. This will need to be supported in IE6.
Nov 18 '05 #1
1 1617
The paged media portion of CSS2 supports the option to specify a landscape
layout, but I don't know of any implementations so far. With IE, most people
are resorting to ActiveX, which has the ability to get at the printer
settings since it is client-side executable code running outside of the
sandbox.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Kenny" <an*******@discussions.microsoft.com> wrote in message
news:8D**********************************@microsof t.com...
Hello, I currently have an ASP.NET application that is displaying various
reports. Some of the reports need to be printed in Portrait orientation
and others in Landscape. Does anyone know a method for doing this. My
code-behind is in C#. A javascript or css solution would be great as well.
This will need to be supported in IE6.

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Fred Chen | last post: by
2 posts views Thread by ColinWard | last post: by
1 post views Thread by J-Rod | last post: by
3 posts views Thread by olivelovelive | last post: by
3 posts views Thread by Panos | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.