I need to export my report to a .pdf file.

I need to do this without using the buttons on the reportViewer. I need a code to call the action of the reportViewer --> Save --> .pdf, button. How do I do this?