Jump to content

show report page numbers


---
 Share

Recommended Posts

---

Hi,

i would like to make a user aware of report pages wich have to tags assigned. How can i get the page number as in the table of contents using a script?

Link to comment
Share on other sites

  • 2 weeks later...
---

Hello,

you could add a page counter in a loop:

# -*- coding: utf-8 -*-

import gom

#no_tag = []

pages = gom.app.project.reports
page_nr = 0

for i in pages:

	page_nr = page_nr + 1

	try:
		print('Page ', page_nr, 'has tag ', i.tags[0])
				
	except:
		print('No tag: page ', page_nr)
		#no_tag.append (i)
		

 

Link to comment
Share on other sites

 Share

×
×
  • Create New...