i want to code ST elem. to search in the between page and this page+1 where other field was found?

  • 49 Views
  • Last Post 08 February 2019
Turan posted this 26 January 2019

Hi everyone !

How want (in FlexiLayout) to code Static Text element  to search in the page, where other Static Text element was found.

FlexiLayout uses its' own special code language. Can you write the sample code, if it possible?

i want in FlexiLayout  to  code Static Text element to search in the between page and this page+1 where other field was found?

For examle Element A in the page 2, i want FC to find Element B in page 2-3

Thanks in advance.

 

Ekaterina posted this 08 February 2019

Hello,

Please try to use Void SetPagesCount( Int pagesCount ) function (see the "FlexiLayout language > Global functions" article) This function must be invoked from the Header or Footer elements or their sub-elements. The function applies to documents that do not have the end-of-document indicator (the footer is either missing or optional).

The code sample:

If the given element was matched – the document ends on the next page:

if IsFound then SetPagesCount(PagesCount + 1);

The number of pages in the document can be seen in the PageNum field:

if PageNum.IsFound and IsInt(PageNum.Value) then SetPagesCount: StrToInt(PageNum.Value);

Close