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

Set Pivot Property using SSIS Script Task

$
0
0

I have an SSIS script task using which I need to disable the pivot table drilldown option in an excel file. But this particular line throws error.

code to declare and set excel Application and then the Workbook and then the Worksheet works fine.

wsSheet1.PivotTableWizard("PivotTable1").EnableDrilldown=False
This line throws error

"COM exception was unhandled by user code.
Exception from HRESULT:0x800A03EC"

The excel file is within my local system itself. Kindly advise as to what the issue would be.

Infact trying to get or set any property throws this error
eg:
Dim intVer as Integer
intVer=wsSheet1.PivotTableWizard("PivotTable1").Version

I think something needs to be done about the intial part of the code itself.
wsSheet1.PivotTableWizard("PivotTable1")



Viewing all articles
Browse latest Browse all 24688

Trending Articles



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