December 9, 2010 at 11:48 am
I am able render report using reportviewer in vb asp.net.
But I want it to be opened directly in pdf
How do I do that?
December 9, 2010 at 12:35 pm
I don't know if it will do that. It might not.
- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
Property of The Thread
"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
December 9, 2010 at 2:40 pm
If you are calling the report with a URL you should be able to build it into the querystring. Something like this:
http://hostname/ReportServer?/foldername/report&rs:command=Render&rs:Format=render.pdf
I may not have the syntax exactly right, but you can call a report and programatically define a number of render format and output options.
December 10, 2010 at 8:05 am
Thank you For your response. I will try that
December 10, 2010 at 10:25 pm
December 12, 2010 at 2:36 pm
I also found other way to display report in PDF
Dim ReportDisp As Byte()
ReportDisp= ReportViewer1.ServerReport.Render("PDF", Nothing, Nothing, Nothing, "Pdf", Nothing, Nothing)
Works really nice it displays directly in PDF and user doesnot even see the url.
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply