Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

SSRS automatically run report & save pdf output to c: Expand / Collapse
Author
Message
Posted Tuesday, December 1, 2009 7:07 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Wednesday, February 20, 2013 7:37 AM
Points: 57, Visits: 127
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
Post #826642
Posted Tuesday, December 1, 2009 9:17 PM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Wednesday, May 9, 2012 10:59 PM
Points: 229, Visits: 870
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



-----------------------------------------------------------------------------------------------------------------------------------------------------------
Please feel free to let me know if you are not clear or I’ve misunderstood anything.

Thanks,
Arunkumar S P

Post #827182
Posted Wednesday, December 2, 2009 1:35 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Wednesday, February 20, 2013 7:37 AM
Points: 57, Visits: 127
Thank You - very confusing

is there not an easir option!
Post #827245
Posted Thursday, December 3, 2009 9:49 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Friday, September 19, 2014 2:42 AM
Points: 1,167, Visits: 2,652
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.

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.




--
Nigel
Useful Links:
How to post data/code on a forum to get the best help
The "Numbers" or "Tally" Table - Jeff Moden

Post #828318
Posted Thursday, December 3, 2009 11:48 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Wednesday, February 20, 2013 7:37 AM
Points: 57, Visits: 127
Thank You - i will be asking the users to save & upload the fiel.

Regards
Post #828654
Posted Friday, December 4, 2009 1:47 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Friday, September 19, 2014 2:42 AM
Points: 1,167, Visits: 2,652
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.



--
Nigel
Useful Links:
How to post data/code on a forum to get the best help
The "Numbers" or "Tally" Table - Jeff Moden

Post #828684
Posted Friday, December 4, 2009 1:52 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Tuesday, September 9, 2014 2:06 AM
Points: 1,768, Visits: 8,318
I have a CLR routine that mails reports on my blog here
http://sqlblogcasts.com/blogs/sqlandthelike/archive/2009/08/27/direct-emailing-of-ssrs-reports-via-sqlclr.aspx

It should be fairly simple to modify that.





Clear Sky SQL
My Blog
Kent user group
Post #828685
Posted Friday, December 4, 2009 2:08 AM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Wednesday, May 9, 2012 10:59 PM
Points: 229, Visits: 870
Good article Dave.

-----------------------------------------------------------------------------------------------------------------------------------------------------------
Please feel free to let me know if you are not clear or I’ve misunderstood anything.

Thanks,
Arunkumar S P

Post #828690
Posted Friday, December 4, 2009 2:35 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Wednesday, February 20, 2013 7:37 AM
Points: 57, Visits: 127
Thank You All, i can't create the project in VS.



No other method
Post #828701
Posted Friday, December 4, 2009 2:41 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Friday, September 19, 2014 2:42 AM
Points: 1,167, Visits: 2,652
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.


--
Nigel
Useful Links:
How to post data/code on a forum to get the best help
The "Numbers" or "Tally" Table - Jeff Moden

Post #828704
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse