December 1, 2009 at 7:07 am
Good day, I need help.
I normally run a report via url and add the &rs:Format=PDF to open file directly in PDF format.
But i now need to automatically run the report onclick of an html button & save pdf to c:
Is this possible?
Regards
December 1, 2009 at 9:17 pm
Hi,
Yes it is possible. Use webservice.
Hope the below url will help you.
http://msdn.microsoft.com/en-us/library/aa258532(SQL.80).aspx
December 2, 2009 at 1:35 am
Thank You - very confusing
is there not an easir option!
December 3, 2009 at 9:49 am
You need to realise that you can't save a file to the C: drive from within a web browser without user intervention because of security issues.
You will *always* get the dialog box up asking what you want to do with the file, 'Open it' or 'Save it'.
Can you imagine the havoc that could be caused if this could be circumvented. :w00t:
You can either use the URL method you have been using, in which case you get the dialog to Save or Open the file, or use the Web Service method as previously mentioned. Although, if you use this method you will need to write a windows app to enable you to write to the users local disk. Using ASP.NET will only allow you to render the file on the server then serve it back to the user in the browser whereupon you will get the 'Open/Save' dialog again. Back to square one.
December 3, 2009 at 11:48 pm
Thank You - i will be asking the users to save & upload the fiel.
Regards
December 4, 2009 at 1:47 am
I did have some more ideas:
1. Write an ActiveX control. But if you thought the code example for the web service was complicated then I don't think this is the solution for you.
2. Using ASP.NET and the SSRS Web Service you could create a page that would render and save the report to a network share.
Hope you get your problem solved.
December 4, 2009 at 1:52 am
I have a CLR routine that mails reports on my blog here
It should be fairly simple to modify that.
December 4, 2009 at 2:08 am
December 4, 2009 at 2:35 am
Thank You All, i can't create the project in VS.
🙁
No other method
December 4, 2009 at 2:41 am
ismail casper (12/4/2009)
Thank You All, i can't create the project in VS.
What do you mean by "can't"?
- You don't have visual Studio?
- You get an error when you try?
- Or something else?
Please give details.
December 4, 2009 at 2:47 am
Dave Ballantyne (12/4/2009)
I have a CLR routine that mails reports on my blog here
Dave,
I like that, good use of CLR. Now all I need to do is convert it to C# 🙂
December 4, 2009 at 2:52 am
nigel. (12/4/2009)
I like that, good use of CLR. Now all I need to do is convert it to C# 🙂
Thanks, first (and so far last ) useful CLR routine.
@Ismail , would it not be simpler to set up a subscription to email you the report in PDF format ?
December 4, 2009 at 2:55 am
Hi,
I strted the prject but don't knw how to add the reference never mind getting the code working.
All new to me... 🙁
December 4, 2009 at 3:04 am
I thought of creating a subscription.
problems:
1. I need to execute the subscription on click of a vbscript button
2. I don't have access to the SSRS server - i guess i can ask the admin to help
???
August 27, 2012 at 3:07 pm
ismail casper (12/1/2009)
Good day, I need help.I normally run a report via url and add the &rs:Format=PDF to open file directly in PDF format.
But i now need to automatically run the report onclick of an html button & save pdf to c:
Is this possible?
Regards
Can you let me know the steps how to add &rs:format=PDF ?
Viewing 15 posts - 1 through 14 (of 14 total)
You must be logged in to reply to this topic. Login to reply