Customer Banners (Ads) - SpiceUp. AX and SpotfireX Disclaimer



If you find this site useful and you want to support, buy me a coffee   to keep this site alive and without ads.

Exporting to Excel (Web Player)

# INPUT PARAMETERS
# vizTable : Visualization
# FileLocation: String (c:\temp\file.xls)


import System
from System.IO import FileStream, FileMode
from Spotfire.Dxp.Application.Visuals import TablePlot
from Spotfire.Dxp.Data.Export import DataWriterTypeIdentifiers

# Export Table data to the file
try:
 stream = FileStream(FileLocation, FileMode.Create)
 vizTable.As[TablePlot]().ExportData(DataWriterTypeIdentifiers.ExcelXlsxDataWriter, stream)
finally:
 stream.Dispose()








5 comments:

Anonymous said...

This tries to save on the server and doesn't stream to the web user. Is there a solution that streams to the webuser instead?

Unknown said...

Even I am facing same issue.
1) We can export to our local machine through client, however we can export through webplayer.

Iris said...

Hi I work for a health center in NY and would like to connect with you. Is there a way to contact you via email?

Iris said...

Hi I work for a health center in NY and use Spotfire. Is there a way to contact you via email?

Jose Leviaguirre said...

Hello Iris, my contact info is at the bottom of the page. You can contact me via yahoo, gmail. My username is jleviaguirre.