Jump to content

Ironpython script to change pagenavigation mode is not reflection in Document properties-> General->Page navigation tab when I press run script.


Swathi -

Recommended Posts

I wrote an ironpython script to change NavigationMode to History arrows and also to reset filters. After I pressed Run script the Navigation Mode changed to History arrows and when I press ok button the page navigation in General Tab is not changed to History arrows.

when I press ok on Document properties tab my navigation mode is changing back to titled tabs.

But my filters are perfectly resetting. Can you help me why this behaviour is seen?

Note: I don't want to use any button but manually run script from document properties->scripts.

for scheme in Document.FilteringSchemes:

scheme.ResetAllFilters()

Document.ActivePageReference=Document.Pages[0]

Document.Pages.NavigationMode=Document.Pages.NavigationMode.None

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...