from System.IO import Path, File, StreamWriter from Spotfire.Dxp.Application.Visuals import CrossTablePlot #Temp file for storing the cross table data tempFolder = Path.GetTempPath() tempFilename = Path.GetTempFileName() #Export CrossTable data to the temp file writer = StreamWriter(tempFilename) vTable.As[CrossTablePlot]().ExportText(writer) print tempFilename
Input
vTable (Visualization)
Not suitable for use over the web since the local file system is used.
Hi,
ReplyDeleteThanks for the above Script. How can we export the same file in MS EXCEL
I am getting below Error, Please let me know how to resolve? How to define vTable.
ReplyDeleteTraceback (most recent call last):
File "Spotfire.Dxp.Application.ScriptSupport", line unknown, in ExecuteForDebugging
File "", line 10, in
NameError: name 'vTable' is not defined
You need to define 'vTable' as a script parm. In the ipython window select 'Add...' and select a visualization. Name it 'vTable'.
DeleteYou need to define 'vTable' as a script parm. In the ipython window select 'Add...' and select a visualization. Name it 'vTable'.
DeleteThis doesnt work in Web App?
ReplyDeleteThanks to the authors of the post for such great information. I love your blog post, I have something to share here.
ReplyDeletewordpress
blogspot
youtube
បាការ៉ាត់អនឡាញ
Your articles are consistently excellent. You're doing a fantastic job. This will be really beneficial to many others. By the way, I'm a gamer, and I'd like to recommend a shader pack for Minecraft to you. You can get the BSL Shaders pack here, and I'm sure you'll enjoy it.
ReplyDelete