Don't know about the Parameters error, but if the first two parameter values are defaulted within the report, you may not want to specify them in script at all.

As far as switching from Excel to PDF, replace your corresponding statements with the following:

Code:
Dim format as string = "PDF"
Dim mimeType as string = "application/pdf"
Hope this helps.