I have developed a vb document generator that creates MSWord RTF documents based on certain rules, user inputs and text passages also held in MSWord RTF format. The system selects passages from the text passages and build the output MSWord RTF document.
This has worked perfectly well under MSWord 2000 and MSWord 2003 but when upgraded to MSWord 2007 I have a problem with the page orientation. A copied in MSWord text passage contains a couple of section breaks the first of which changes the orientation from Portrait to Landscape and the last of which changes it back again. When I view the resultant document in the MSWord 2007 version there is no reorientation whatsoever with the total document being in Portrait.
I am at a loss. Any help will be gratefully accepted.