I was able to create the page header and page footer in the subreport using the technique mentioned .
However when i create a new details section and put the sub report there what happens is that it pushes itselef in between all the details record,i.e., 1 line of order detail and then 1 page of sub report and so on.
One thing i wanted to mention is that of the 2 details sections i have suppress formula define on the scond one,i.e. for the order details as
if onlastrecord then
false
else
true
I have done this to make the subtotal and tax information visible only after the order details has been printed.