Jump to content

How to Export Cross Table ( ! without value formatting ! ) to Excel in SPotfire ( IronPython Script )


Hugues Pags

Recommended Posts

Good morning,

I can extract a report in CSV format and put it in my directory with the following code underneath. The only problem is that I want to extract it without value formatting.

from System.IO import Path, File, StreamWriter

from Spotfire.Dxp.Application.Visuals import TablePlot

from System.IO import Path, File, StreamWriter

from Spotfire.Dxp.Application.Visuals import TablePlot

from Spotfire.Dxp.Data import DataPropertyClass

from Spotfire.Dxp.Data import DataType

from Spotfire.Dxp.Data.Export import DataWriterTypeIdentifiers

from Spotfire.Dxp.Data import DataPropertyClass

from Spotfire.Dxp.Data import DataType

from System.IO import File, Directory

from System.IO import Path, File, StreamWriter

from Spotfire.Dxp.Application.Visuals import CrossTablePlot

 

 

report1 = "C:\export\report1.csv"

writer = StreamWriter(report1)

 

Viz1.As[CrossTablePlot]().ExportText(writer)I would like with the option to extract without value formatting.

Thank you in advance for your help

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...