![]() |
|
|
|
#1
|
|||
|
|||
|
We have a PowerBuilder-application that opens document in Word.
With Office 2007 the following works for example: Activedocument.ActiveWindow.ActivePane.View.Zoom.P ercentage = WORD_ZOOM_PERCENTAGE .ActiveDocument.unProtect() I am now testing Office 2016 and receive errors. I have looked at the Object Model and I don't see that anything has changed. Any ideas? |
|
#2
|
||||
|
||||
|
Does this help?
http://stackoverflow.com/questions/3...of-application
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
#3
|
|||
|
|||
|
I'm not testing 2007 but 2016.
2007 runs ok. |
|
#4
|
|||
|
|||
|
I remember having a similar problem a while ago, not sure what it was that fixed it, but try adding this code before the 'Unprotect'
Quote:
|
|
#5
|
|||
|
|||
|
Thanks a lot! This helps!
Activedocument.ActiveWindow.ActivePane.View.Type = wdPrintView Activedocument.ActiveWindow.View.Type = wdPrintView |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Onenote 2016 is not syncing - Error code: 0x2 | clumps19 | OneNote | 0 | 08-15-2016 05:09 PM |
| Unprotect Cells | Cardinal2 | Excel Programming | 2 | 01-06-2015 05:15 PM |
| ADD in That can unprotect the documents. | aligahk06 | Word | 0 | 07-12-2010 04:55 AM |
| Unprotect header in Word | Fran | Word | 0 | 12-23-2008 03:42 AM |