Automatically Export SSRS Report into Excel Template

Anonymous
2023-01-18T15:49:32.25+00:00

We have an existing Excel template with multiple worksheets, a macro, and several formulas.

Can you automatically export an SSRS report into the template as follows:

  1. Run from SSRS menu along with other reports.
  2. Specify a date range parameter.
  3. Automatically export the report data into a specific worksheet and range in the existing template.
  4. Run the template's macro.
  5. Have the template generate a resulting XLS file, named using the date range parameter.

If not, how automated can I make this?

I know I can create a utility in .Net for this, but the we would prefer to run it from SSRS, as it is considered a report by the client. Also, we don't want the user to have to copy/paste, import, etc. They just run the report, specify the date range, and go.

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
3,061 questions
0 comments No comments
{count} votes

Accepted answer
  1. ZoeHui-MSFT 41,491 Reputation points
    2023-01-19T02:47:57.09+00:00

    Hi @Anonymous

    Unfortunately, SSRS does not have great support for templates/style.

    If you want to add the report into an existing excel, it is not possible to add sheets of report in already existing Excel. It will just overwrite on that excel and already existing sheets will be deleted of.

    If I misunderstand your issue, please incorrect me.

    Regards,

    Zoe Hui


    If the answer is helpful, please click "Accept Answer" and upvote it.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Olaf Helper 47,436 Reputation points
    2023-01-19T06:58:39.6066667+00:00

    SSRS exports a report as the report is design, it's not possible to use a kind of template with a different design.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.