Export to PDF/Exel via .Net

Hi,
There is there an example to export to PDFor Excel via .Net?
Thanks for help

Hi,
here is export to pdf sample.
export to excel will differ only by referenced libraries and used converter(PDFWriter - ExcelWriter)
Grid2Pdf.zip (756 KB)

Thank you very much, it works fine, but if I have a User table in a database SqlServer and I would display its contents in a grid and then exporte my grid to PDF/Exel how I could do that with. Net?
There is there an example?
Thank you and sorry for the inconvenience.

PS: The User table contains two columns:
Name and first name.

You may use dhtmlxGrid connector,
http://www.dhtmlx.com/x/download/regular/dhtmlxConnector_net_dvl.zip
package contains the samples(there is no sample for export really, you will need to include dhtmlxgrid_export.js on the page),
or you may render table data manually - create a handler which will return xml data of the following format http://docs.dhtmlx.com/doku.php?id=dhtmlxgrid:syntax_templates#default_xml_format