I am writing a proposal, and trying to decorate my header and footer by a line. The problem that I face with is the line under footer and header only appear on from the second page to the end, while there is no line in the first page. Here is the code that I used:
\documentclass{arp}
\usepackage{setspace}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{flushend}
\usepackage{subfigure}
\usepackage{parskip}
\parskip=3pt
\usepackage{fancyhdr}
\pagestyle{fancyplain}
\fancyhf{}
\rhead{\bf{XXXXXXXX}}
\lhead{\bf{YYYYYYYYYYYY}}
\lfoot{\bf{ZZZZZZZZZ}}
\rfoot{\bf{\thepage}}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0.5pt}