Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

How to loop in SSIS 2014 and send a SSRS paramterized report which generates PDF to user's email address using SSIS 2014 package

$
0
0
I have a user table which holds user details 

Userid name email  age  language

---------------------------------------

A12345 Mike mike@test.com  25 English

B56789 Jeff Jeff@test.com 30  French
.
.




I would like to use the user table to create ssrs pdf reports for each distinct user present in my user table .

Template of the report is simple.I have 2 versions of the report one is for english and other one is for french

Below is an example of one PDF english report template for one user and french will look very similar with translated names for Headers.


Userid name age 
-------------------

A12345 Mike mike@test.com  25



The ssrs report in english will have a name as EnglishReport and french will have a name FrenchReport.



So say I have 10 users in my user table I want to call SSRS report 10 times using a loop in a SSIS package and then deliver the report via a send mail task to the user's email address 

The report is generated based on user language .So say If I have Mike who is English user then I would like to call only English version of the report using the attribute language in my user table.


Why I do this way is becuase I dont have Enterprise edition of SSRS and my SSRS \SSIS  is standard edition.


Basically I get a file daily with user records and I process it using a SSIS 2014 package after processing I would like to create pdf's using the same SSIS package and send it to users .

The tricky part is when a user is english then send only english version of the report.

So say I have 2 Users in my cureent table 
I want a loop  using the distinct user table dataset to run in SSIS package and deliver the report to 1 english user using english version of the report and run another loop to deliver french version of the report to french user.

I have already created ssrs reports and they are hosted on SSRS 2014 report manager as EnglishReport and FrenchReport .They run fine they also a 'userid' parameter to run .

Now since I have never done looping in ssis and calling ssrs reports I m looking for help from you guys here .






Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>