Word 2010: Copying header from one document and pasting into another document. That works fine. Problem is when I programmatically view document it is in draft mode.
Category: word for developers
pld_32 on Thu, 07 Jan 2016 16:47:22
Copying header from one document and pasting into another document. That works fine. Problem is when I programmatically view document it displays in draft mode view and not normal print layout view in Word.
This only happens when I change the header. If I change anything in the body I have no issue.
If I open the document outside of the application it opens in print layout view which is right.
My Word settings
This is being done in Visual Foxpro 7 on a windows 10 64 bit
Word 2010 Options are not set to display in Draft mode.
pld_32 on Thu, 07 Jan 2016 21:04:32
I solved my problem so posted for future reference.
After I changed the header section, which did make word go into default view. I saw this via debug. Any how I added this statement before I saved. loword.ActiveDocument.ActiveWindow.View= 3 && wdPrintView.