Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8644

Re: Excel as a Target using Data Services 4.2

$
0
0

HI Gerardo,

 

As Dirk mentioned DS cannot generate an XLS or XLSX file but we can use the scripting technique to generate an excel file on the drive

 

/***Declare a Global Variable for the Location of Xcel file

$G_PROCESSED_LOCATION ='\\\XYZ_Location\ Excel_Location';


exec('cscript','[$G_PROCESSED_LOCATION]\Excel_create.vbs', 8);


The script for Excel_create.vbs should be something like below:


strFileName = "c:\test.xls"

Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = True

Set objWorkbook = objExcel.Workbooks.Add()
objWorkbook.SaveAs(strFileName)

objExcel.
Quit


Regards

Arun Sasi


Viewing all articles
Browse latest Browse all 8644

Trending Articles



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