I'm trying the below script to make a header but its not working and this is very urgent if anyone could help me.
\documentclass[conference,letterpaper]{IEEEtran}
\usepackage{fancyhdr}
\setlength{\paperwidth}{215.9mm}
\setlength{\hoffset}{-9.7mm}
\setlength{\oddsidemargin}{0mm}
\setlength{\textwidth}{184.3mm}
\setlength{\columnsep}{6.3mm}
\setlength{\marginparsep}{0mm}
\setlength{\marginparwidth}{0mm}
\setlength{\paperheight}{279.4mm}
\setlength{\voffset}{-7.4mm}
\setlength{\topmargin}{0mm}
\setlength{\headheight}{0mm}
\setlength{\headsep}{0mm}
\setlength{\topskip}{0mm}
\setlength{\textheight}{235.2mm}
\setlength{\footskip}{12.4mm}
\setlength{\parindent}{1pc}
\hyphenation{op-tical net-works semi-conduc-tor}
\usepackage{cite}
\usepackage{tabularx,booktabs}
\usepackage{graphicx}
\usepackage{float}
\floatstyle{plaintop}
\restylefloat{table}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{caption}
%\usepackage{subcaption}
\usepackage{longtable}
\usepackage{comment}
\usepackage{tabularx}
\usepackage[table]{xcolor}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{caption}
%\usepackage{subcaption}
\usepackage{longtable}
\usepackage{comment}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{gensymb}
\usepackage{adjustbox}
\usepackage{subfig}
\usepackage{tikz}
\usepackage{afterpage}
\usetikzlibrary{calc}
\tikzset{
mynode/.style={anchor=south west,inner sep=0,outer sep=0pt}}
\usepackage{fancyhdr}
\pagestyle{fancy}
\chead{NOT FOR DISTRIBUTION}
\renewcommand{\headrulewidth}{0.4pt}


\setlengthin my code). As the image in my answer shows, my code works. Saying simply "not working" is useless. Please edit your question with a simple document like the one in my answer and illustrating that the proposed solution is not working. – Gonzalo Medina Jun 13 '13 at 03:51