Printing Header and Footer once in HTML and on all pages in RTF and PDF using one RDF

Hi,
I am using a single RDF to generate reports in HTML,PDF and RTF.
For printing the header only on the first page I used the
following trigger
begin
srw.get_page_num (page_num);
IF upper(:P_FORMAT) = 'HTML' THEN
if page_num = 1 then
return(true);
else
return (FALSE);
end if;
ELSE
return (TRUE);
END IF;
end;
I alo require to print the footer once on the last page in case
of HTML and on all pages for RTF and PDF.Is there any way I can
get the total number of pages or is there any other way to
acheive this. ???
Any help would be appreaciated .
Thanks,
Alka

Generally, one template can not create nice output in all formats. In your case, you would need a format parameter to suppress headers/footers if it's value is 'EXCEL'. The problem is (I wish someone would correct me on this) that we can not refer the standard parameter already there and have to create another, user-defined parameter.

Similar Messages

Maybe you are looking for

  • Mac 10.6.8's video calls not working! Please help!

    Reposting the text below because there was no reply to the last message. Ack! Please help. Skype, is there a solution yet? Or even just an explanation and a time frame so we know when we can expect video calls to work again? Thanks! ---------------I

  • Urgent Help to fit the image on any mobile.......

    i write an application in which i obtained the image fron the unternet and i want to fit that that to the display screen of any mobile forn how can i write the code?how can i get the height an dwidth of mobile display screen where the image is displa

  • Itunes freezes up a lot

    My Itunes seems to freeze up a lot. I have done a safe reboot and repaired permissions and none of that has worked. Is there some sort of Plist file i should trash in my user library? i did that when my finder kept freezing up and that seemed to work

  • Old timer

    I was certified a long time ago. What exactly do I have to do to get on certview? I may have tried to upgrade a few years ago but gave up.

  • The request to the Federation Service failed

    hey everyone my domain using ADFS architecture with another domain this zone is work over 6-7 years very well in the recent days i got this error msg on adfs server Event ID 384  "The request to the Federation Service failed" help will short my time