Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1725
Grid export as XML
posted

I have a requirement to save grid results in an Excel XML compatable format. Since the default UltraGridExcelExporter does not support this I'm looking to build my own.  

 

First, has anyone done this and have something that the would like to share?

Assuming not, I'm thnking that the "clean" way would be to build a class derived from UltraGridExcelExporter and instead of writing a binary workbook write the XML equivalent instead.  I guess I'm looking for "design" advice to see if this sounds like a reasonable approach. The reason I was going there was to use the existing "event" model to trigger writing my results but I also don't want to write the standard stuff so this may be more work than benefit.

I'll also submit a "feature" request.

Thanks 

Parents
No Data
Reply
  • 19308
    Verified Answer
    posted

    You really want it to be Excel XML? Big Smile

    The grid actually renders out as XML, but requires an XSL transform to turn it into HTML.  You may be able to leverage that aspect and simply transform the grid's XML into XML that Excel likes.  The other idea would be to leverage VSTO and re-save an excel binary (xls) into an excel XML file. Not sure this is possible though, but it's an idea. 

    I don't think there's anything wrong with your idea, in fact I like it - but I'm not sure how much work it will be as I'm not sure about the particulars of Excel XML

    -Tony

Children