Kalpana <nkalpana <at> gmail.com> writes:

> 
> Hi,
> 
> I tried manually adding a chart part to a document, by creating the package 
> part for the chart and drawing, and manually setting up the XML content.
> 
> IN this case, Excel does not crash when I open the output file, instead I 
get 
> the "Excel found unreadable content in the file", and when I get past it, it 
> says it removed the drawing part.
> When I examined the package contents, i see the XML in perfect condition.
> 
> Something is going wrong internally, or I am missing sometihng. Anyone else 
in 
> the same situation/knows whats missing?
> 



I figured out what the problem was.
I was missing some nodes like Body properties, ListStyle, under Rich().
Also paragraph properties, and setting the language of the text run is very 
important.

When I added these missing nodes to the CTTile object, it worked.

The xml structure is very important. 
Also, we have to save the 
ChartSpaceDocument.getChartSpace().save(OutputStream, xmlOptions);



If anyone needs more info on this write 
to me at [email protected]

Regards,
Kalpana




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to