I use render method to generate PDF file. But sub filename is always .aspx not .pdf. Follow is my command:
result = rs.Render("/RP1/Report3", "PDF", Nothing, _
"<DeviceInfo><HTMLFragment>True</HTMLFragment></DeviceInfo>", Parameters, _
Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing)
When I download file. I have to rename .aspx to .pdf. Then it will work correctly in Acrobat Reader. Is there any way to solve this problem. Thanks in advance.
The other question is I use another command to generate PDF file. Follow is my command:
Web page will show account and password to let me key in. How can I pass it without entering account and password. Thanks in advance.