I'm currently modifying our ASP payslip page to generate a downloadable payslip rather than just an onscreen view of it. Ideally I'd like it in pdf but seem to be having trouble with that but for the moment I'm working on a word version.
The problem is that whilst this opens/downloads, MSWord always opens up in WebContent View rather than print layout.
The odd thing is that whilst I was updating this script and getting error messages, the word document opened the way I wanted it. Does anyone have any thoughts as to how I can get around this?
I have response buffer and flush set else where but the main document bits are;