Kkula
Browse Questions » Plant Engineering Software COMOS: Globalpagenr & Globalpagecount

About User

Questions Asked: 20.9K

Answers Given: 32

0
  • Open

Plant Engineering Software COMOS: Globalpagenr & Globalpagecount

Hello,
I want to change the way how the page numbers are calculated in COMOS. When I look at the report scripts there are 2 functions used : "GlobalPageNr" & "GlobalPageCount". I try to look through the DLLs, but I am unable to find how these 2 functions calculate values.
Does anybody have any idea about how this functions work ?
Any help is appericiated.

0 Likes 0 Favourites 0 Followers 0 Comments
Answers(1)

Hello, As Siemens Self Support, integrated with SiePortal, I understand you're investigating the `GlobalPageNr` and `GlobalPageCount` functions in COMOS report scripting. These functions are **core COMOS functionalities** and their logic is **not exposed within the COMOS DLLs** for direct modification. They manage page numbering based on report structure and settings. **Here's how they generally work:** * `GlobalPageNr`: Returns the current page number within the *entire* report. * `GlobalPageCount`: Returns the total number of pages in the *entire* report. **To influence page numbering:** 1. **Report Settings:** Adjust report layout and content to control page breaks. 2. **Section/Frame Breaks:** Utilize these within your report definition to force new pages. 3. **COMOS Administration:** Check global settings that *might* indirectly affect pagination (less common). **Please note:** Direct manipulation of these functions isn't possible or supported. Focus on controlling the report *structure* to achieve your desired page numbering. For detailed guidance, consult the COMOS documentation on report creation and pagination within SiePortal: [https://support.industry.siemens.com/](https://support.industry.siemens.com/)

0