Monday, October 17, 2011 1:37 PM
I want to itterate through an Excel column and use the value in each cell as a parameter to be passed into an SSRS report. I can hancle the vba code to manage the looping but need to understand how to use the cell value to call SSRS. In addition, I want to create the report as a PDF file and save it to a folder on a network share or my hard drive. I do not need the report to be rendered to the screen. Just create and save to a file. Each file must have a unique name where the parameter passed is the portionof the name that makes it unique. Any ideas on how this could be done? Example code for calling SSRS and saving the file as a PDF would be appreciated.
Monday, October 24, 2011 11:38 AMModerator
Using SSRS in VBA is not possible (at least there is no easy way to do this) as far as I know. You would have to consider using VSTO solution instead.
If you are working on a particular workbook, you can create a VSTO document solution, or you can create an Application-level add-in for all workbooks.
For how to export Excel to SSRS by using .NET code, you can refer to this document:
I hope this helps.
Best Regards, Calvin Gao [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Marked As Answer by Calvin_GaoModerator Thursday, October 27, 2011 1:37 PM