Alaska Software Inc. - Andrep Report Tool
Username: Password:
AuthorTopic: Andrep Report Tool
eldhose parakattuAndrep Report Tool
on Mon, 07 May 2012 12:07:40 +0200
hi,

  Is there any way to know the page number from Andrep in Printng function which 
  we called for prinintg?
  I want to print some brand only in second and third page. 
  I tried [Iif([Page]>1,o:print("brand"),"")]// Giving error in macro
  
Thanks
eldhoseparakattu
Claudio Driussi Re: Andrep Report Tool
on Tue, 08 May 2012 09:02:31 +0200
Il 07/05/2012 12:07, eldhose parakattu wrote:
> hi,
>
>    Is there any way to know the page number from Andrep in Printng function which
>    we called for prinintg?
>    I want to print some brand only in second and third page.
>    I tried [Iif([Page]>1,o:print("brand"),"")]// Giving error in macro

No, you have to understand that AndRep have tho steps,
the first step in on Xbase++ side and the formulas are
evaluated here except for [page] which is a special case
evaluated by the second step by ANDRep.EXE. This is the
reason why you get the evaluation error.

In the Xbase++ side you send bands and other commands
to the reporting tool but you don't know when and where
the pages ended. Your only option is to set the first
header different from the following using the band "title"
and to set the last footer different form the previous ones
with the band "lastfooter"

A way to do what you need is to force a page break with
o:pagebreak() command and send you "brand" band just after
that.

Best regards
Claudio