Hi!
I have to develop simple "report builder". It gets data from MS Sharepoint (SP) List and puts it into Excel 2007 file. The native SP "export to spreadsheet" feature doesn't suit for some reason (it can't make subtitles/subtotals for queries with "GROUP BY" part). Query to SP List returns RichText data as HTML-formatted string - with using div,p,br,font,color,b,i,... etc. elements and , <:, >, & etc.things. I need to insert it into spreadsheet cell as formatted text. How to do it?
Regards.
Since HTML and Open XML are different file formats, what you want to do is format converting. It's never a easy task. Meanwhile, this is not within the goal of the SDK.
I'm curious why you need to keep the HTML format? maybe you could start the report generation from templates with specific formats, which look like the formats in HTML chunk.
btw, could you tell how will the reports be used typically? send, download, archeve, present online...? and any detail information in your user scenarioI want to understand what the users doing with the SDK and what solutions are built upon it. Thanks:)
Shuangshuang (MS)
Hi Antipa,
Your reply is informative, and your requirements make sense. My knowledge tells that there's no way to do it in one step, you need firstly parse the HTML content, then generate the formats/data processing logic by your own.
Traveler:Hi Antipa, Try using Regular Expressions: you can clean the html with it.
I remember someone mentioned that Aspose.Word works well for this issue.
Currently, SDK does not support format conversion.