Export to PDF by URL or RS.exe

By the way, here is one method of doing it.

Deploy the report first and then use this to export by URL:
http://LocalHost/ReportServer/Pages/ReportViewer.aspx?%2FReport+Project1%2FReport1&rs:Command=Render&rs:Format=PDF

I guess this would work. Still would like how to use the RS.exe method.