It is because you call StartPage/EndPage only once.