none
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. RRS feed

  • Question

  • 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.

      


    • Edited by pld_32 Thursday, January 7, 2016 5:39 PM Add more information
    Thursday, January 7, 2016 4:47 PM

Answers

  • 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.

    • Marked as answer by pld_32 Thursday, January 7, 2016 9:04 PM
    Thursday, January 7, 2016 9:04 PM