Hi All,
I'm having a problem when I use more than one footer
placed at the bottom of the page.
I'm trying to create a multipage report with a
footer outputed in the first page and another one
for the next.
Both footers must be at the bottom and I've assigned
them the PlaceInBottom property to 'TRUE'.
The way I use them is with the showoutput function,
but when it prints the second footer it creates a new
blank page (with the header).
I've changed all their sizes but nothing. <img border="0" title="" alt="" src="images/smiles/icon_sad.gif" />
Any suggestion.
Thanks in advanced,
Raúl.
0
Comments
IF CurrReport.PAGENO = 1 THEN
CurrReport.SHOWOUTPUT := TRUE
ELSE
CurrReport.SHOWOUTPUT := FALSE;
John
The way that John has suggested is the way I've tryed
all this time, but I think that this could be a little
bug.
The Krishnad's one should be the logical way to
solve this problem but, I don't know how to
manipulate the section controls via C/AL code.
Does anyone know?
The way that John has suggested is the way I've tryed
all this time, but I think that this could be a little
bug.
The Krishnad's one should be the logical way to
solve this problem but, I don't know how to
manipulate the section controls via C/AL code.
Does anyone know?
The scheme that krishnad mentioned is the only way to accomplish what you want.
Take care, however, to avoid any blank space between one footer and the next, or between the footer and the bottom of the page in the design mode (in other words, "pull" the next footer against the previous one). Looks like Navision does suppres labels/textboxes when ShowOutput is false, but not the "white space" of empty lines.
Otherwise, show the code you have been using so far. Perhaps one of us can see what's wrong with it.
John
Could you teach me? :-)
Thanks.
1. On the form, right-click the object that you want to show visible/invisible etc. Select Properties.
2. Rename the control ( such as myPhoneNumber ) if the control name starts with <Control>. The default name for some of the controls are <Contro1>,<Control2> etc. This is important for unless you rename the controls you want to manipulate, they won't show up on the list of controls... No need to rename the field names.
3. Select the trigger that you want to use (such as "OnAfterGetCurrRecord()")and...
a. <F5>
b. Select currform
c. Select Controls
d. Highlight the control
e. Click on the "Right Arrow" at the bottom
f. Select "Properties"
g. Select the property that you want to manipulate.
such as:
IF "Customer No." <> '' THEN BEGIN
CurrForm."Customer Icon".VISIBLE(TRUE);
CurrForm.SalesOrderIcon.VISIBLE(TRUE);
CurrForm.InvoiceBitMap.VISIBLE(TRUE);
END ELSE BEGIN
CurrForm."Customer Icon".VISIBLE(FALSE);
CurrForm.SalesOrderIcon.VISIBLE(FALSE);
CurrForm.InvoiceBitMap.VISIBLE(FALSE);
END;
IF ( STRPOS( "Status Code", 'OEM' ) > 0 ) OR ( STRPOS( "Status Code", 'FIT' ) > 0 )THEN BEGIN
CurrForm.MarketGroups.VISIBLE(TRUE) ;
CurrForm."School Groups".VISIBLE(FALSE) ;
CurrForm.GenComments.VISIBLE(FALSE);
CurrForm.ContactsSubform.FORM.ShowComments( TRUE ) ;
END ELSE BEGIN
CurrForm.MarketGroups.VISIBLE(FALSE);
CurrForm."School Groups".VISIBLE(TRUE) ;
CurrForm.GenComments.VISIBLE(TRUE);
CurrForm.ContactsSubform.FORM.ShowComments( FALSE ) ;
END ;
thanks. <img border="0" title="" alt="" src="images/smiles/icon_smile.gif" />