SSRS automatically run report & save pdf output to c:

  • 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

  • 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

  • Thank You - very confusing

    is there not an easir option!

  • 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.

  • Thank You - i will be asking the users to save & upload the fiel.

    Regards

  • 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.

  • 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[/url]

  • Good article Dave.

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

    Thanks,
    Arunkumar S P

  • Thank You All, i can't create the project in VS.

    🙁

    No other method

  • 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.

  • 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# 🙂

  • 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 ?



    Clear Sky SQL
    My Blog[/url]

  • Hi,

    I strted the prject but don't knw how to add the reference never mind getting the code working.

    All new to me... 🙁

  • 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

    ???

  • 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