开发者

Easy creation/updating of Office Open XML Charts (PowerPoint preferred)

开发者 https://www.devze.com 2022-12-30 19:57 出处:网络
Does anybody know Office-independent .NET components supporting creation/updating full-fledged office open xml charts from different types of documents (PowerPoint preferred) in a couple of lines of c

Does anybody know Office-independent .NET components supporting creation/updating full-fledged office open xml charts from different types of documents (PowerPoint preferred) in a couple of lines of code.

An example from MSDN How to: Insert a Chart into a Spreadsheet Document does it in a difficult way (as far as I can understand I need to create all those child objects like axes explicitly), though many components reading/writing Excel 2007 charts allow creation of charts in a few lines of code, implicity creating child objects (axes, labels, tick marks, etc).

Aspose.Slides.Pptx doesn't seem to provide a deep-chart edition as well (like changing chart type, etc)

Though PowerPoint is preferred, solutions and ideas开发者_JS百科 for other Office documents (like Word and Excel) which could be ported to PowerPoint are welcomed as well.


Nixie, personally I'd stick with the OpenXML SDK v2
see http://www.microsoft.com/downloads/en/details.aspx?FamilyId=C6E744E5-36E9-45F5-8D8C-331DF206E0D0&displaylang=en

There is a bit of a learning curve, but once you get through that, I feel you'll have more control. You'll also need some good xml skills.

Tip: Use the Document Reflector (part of the SDK). It is extremely useful.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号