By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,507 Members | 1,200 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,507 IT Pros & Developers. It's quick & easy.

setting up print page a in ASP.NET

P: n/a
I was wondering if anyone knows how to set a web page that has a ContentType
of "application/msword" to load with a page orientation of "landscape"
instead of the default of "portrait".

Thanks.
Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Are you dynamically generating the file? Or are you loading a pre-exisitng
Word doc into the browser??

If it's a dynamic file, that gets messy. You could (if this is intranet)
write an ActiveX control that does some sendkeys commands and sends
keystrokes that will accomplish what you want. I would suggest using print
templates - but I'm not sure if they apply once a subordinate object is
loaded in the container?

"Joel Denowski" <de*******@ecg-inc.com> wrote in message
news:up**************@TK2MSFTNGP12.phx.gbl...
I was wondering if anyone knows how to set a web page that has a ContentType of "application/msword" to load with a page orientation of "landscape"
instead of the default of "portrait".

Thanks.

Nov 17 '05 #2

P: n/a
Thanks for your reply Frank. Actually, it IS being dynamically generated and
using an Active X control is not an option (unfortunately). Does anyone know
of any way to deal with this other than the ActiveX control route?

"Frank Drebin" <no*****@imsickofspam.com> wrote in message
news:e3**********************@newssvr28.news.prodi gy.com...
Are you dynamically generating the file? Or are you loading a pre-exisitng
Word doc into the browser??

If it's a dynamic file, that gets messy. You could (if this is intranet)
write an ActiveX control that does some sendkeys commands and sends
keystrokes that will accomplish what you want. I would suggest using print
templates - but I'm not sure if they apply once a subordinate object is
loaded in the container?

"Joel Denowski" <de*******@ecg-inc.com> wrote in message
news:up**************@TK2MSFTNGP12.phx.gbl...
I was wondering if anyone knows how to set a web page that has a

ContentType
of "application/msword" to load with a page orientation of "landscape"
instead of the default of "portrait".

Thanks.


Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.