Необходимо написать скрипты по обработке строковых данных для заполнения таблиц html
Ищу кто бы помог за деньги.
скайп asu-analitika
email vlad@dbits.lt
пример скрипта :
from System.IO import Path, StreamWriter
from Spotfire.Dxp.Application.Visuals import CrossTablePlot
from Spotfire.Dxp.Application.Visuals import HtmlTextArea
#Temp file for storing the cross table data
tempFolder = Path.GetTempPath()
tempFilename = Path.GetTempFileName()
#Export CrossTable data to the temp file
writer = StreamWriter(tempFilename)
cTable.As().ExportText(writer)
f = open(tempFilename)
htmlReport = ‘<table id=“example” class=“display” cellspacing=“0” width=“100%”>n’
htmlReport += “<thead><TR><TH>”
colHeader = “</TH><TH>”.join(f.readline( ).split(“t”))
htmlReport += colHeader.strip()
htmlReport += “</TH></TR></thead>”
f = open(tempFilename)
htmlReport += “<tfoot><TR><TH>”
colHeader = “</TH><TH>”.join(f.readline( ).split(“t”))
htmlReport += colHeader.strip()
htmlReport += “</TH></TR></tfoot><tbod y>n”
for line in f:
htmlReport += “<TR><TD>”
htmlReport += “</TD><TD>”.join(line.split( “t”)).strip()
htmlReport += “</TD></TR>n”
f.close()
htmlReport += “</tbody></TABLE>n”
textArea.As().HtmlContent = htmlReport.decode( “utf-8” )