Hello Sanjeet, In your code the header and footer column is unmatched . Just care full about the Grid Structure as per Column name and data value. A part from that in refer http://www.web2py.com/book/default/chapter/10#Low-level-API-and-other-recipes http://www.geraldoreports.org/docs/tutorial-web2py.html http://code.google.com/p/pyfpdf/
I