到目前为止,我们正在使用表格中的单个单元格来存放Spotfire仪表板的注释 . 到目前为止,第一个请求是根据可视化大小(由屏幕大小呈现)来包装文本,其中我将下面的代码放在一起 .

from System import Guid
from Spotfire.Dxp.Application.Visuals import TablePlot


cols = None
for vis in Document.ActivePageReference.Visuals:
if vis.Title == 'Commentary':
    tablePlot = vis.As[TablePlot]()
    cols = tablePlot.TableColumns
visualBounds=Document.ActivePageReference.GetVisualBounds(vis)
print cols.Count

for col in cols:
    print col.Name
    col.Width = visualBounds.Width - 20
tablePlot.WrapCellText = True
fitToWindow=Document.Pages.VisualizationAreaSize.FitToWindow

现在我需要修改代码以允许平滑的垂直滚动,因为当前滚动只是从包装版本轻弹到没有,因为我相信Spotfire认为tablevis现在已经显示了它的问题 . 我已经慢慢地创建了这段IronPython代码,但还没有进一步 . 非常感谢帮助 .

干杯 . LW