Render method

Last Post 04 Jun 2004 07:15 PM by oldtang. 0 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
oldtang
New Member
New Member

--
04 Jun 2004 07:15 PM
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)
Response.BinaryWrite(result)

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:
Response.Redirect("http://tedtang/reportserver?%2fRP1%...Format=PDF", False)

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.
You are not authorized to post a reply.

Acceptable Use Policy