setting up print page a in ASP.NET

  • Thread starter Thread starter Joel Denowski
  • Start date Start date
J

Joel Denowski

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.
 
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?
 
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?
 
Back
Top