コミュニティ

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

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.

 

この記事は役に立ちましたか?

0人中0人がこの記事が役に立ったと言っています

コメント

3件のコメント

  • Avatar
    Permanently deleted user

    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);

    0
  • Avatar
    Permanently deleted user

     

    Hi Ekaterina,

    I read your answer for the above discussion. 

    For instance, If I have multi-page document which contains N number of invoices. (Please note templates are same.)

    I want to split the invoice based on Footer Keyword [SUBTOTAL].. Of course, ABBYY tool will read from Bottom to Top. This way it would find Last document's Footer Keyword. I believe, If I use the below code, I could get the Header of my Last Document , from there I can get the Page Number to split the document?

    If the given element was matched [For Example, if I set "SUBTOTAL" as my Footer Keyword ]– the document ends on the next page:

    if IsFound then SetPagesCount(PagesCount + 1);

    And, May I know where do I need to write this code and How do I get the page number if element was matched ?? Do i need to use any variable here or any other options to get ?

    Looking forward your help !

     

    0
  • Avatar
    Permanently deleted user

      

    Hi Ekaterina,

    I read your answer from the above discussion. 

    For instance, If I have multi-page document which contains N number of invoices. (Please note templates are same.)

    I want to split the invoice based on Footer Keyword [SUBTOTAL].. Of course, ABBYY tool will read from Bottom to Top. This way it would find Last document's Footer Keyword. I believe, If I use the below code, I could get the Header of my Last Document , from there I can get the Page Number to split the document?

    If the given element was matched [For Example, if I set "SUBTOTAL" as my Footer Keyword ]– the document ends on the next page:

    if IsFound then SetPagesCount(PagesCount + 1);

    And, May I know where do I need to write this code and How do I get the page number if element was matched ?? Do i need to use any variable here or any other options to get ?

    Looking forward your help !

     

    0

サインインしてコメントを残してください。