Jump to content
Software FX Community

Can dataType settings be exported to an XML file?


User (Legacy)

Recommended Posts

Hi,

we are trying to use exported charts in the XML format as templates.

Hereby we would need to get dataType settings done programmatically with

the following snippet:

chart.setDataType(0, DataType.XVALUE);

chart.setDataType(1, DataType.VALUE);

exported to the XML template.

When the chart is exported with the command

chart.exportChart(FileFormat.XML, XML_FILENAME);

these settings are not reflected in the XML file.

Hence a subsequent import of the XML file resets the chart to the

default settings (all series are of type value).

Is there a way to get the export right? We've been trying to use the

FileMask() without success.

Any help appreciated,

Kurt

Link to comment
Share on other sites

Hi,

we are trying to use exported charts in the XML format as templates.

Hereby we would need to get dataType settings done programmatically with

the following snippet:

chart.setDataType(0, DataType.XVALUE);

chart.setDataType(1, DataType.VALUE);

exported to the XML template.

When the chart is exported with the command

chart.exportChart(FileFormat.XML, XML_FILENAME);

these settings are not reflected in the XML file.

Hence a subsequent import of the XML file resets the chart to the

default settings (all series are of type value).

Is there a way to get the export right? We've been trying to use the

FileMask() without success.

Any help appreciated,

Kurt

Link to comment
Share on other sites

No, The XML includes only formatting attributes, it does not include 

anything related to the data of the chart.

Regards,

GA

"DI Kurt Edegger" <news_tmp1@edegger.com> wrote in message

news:4SGGAX2HHHA.476@webserver3.softwarefx.com...

> Hi,

>

> we are trying to use exported charts in the XML format as templates.

> Hereby we would need to get dataType settings done programmatically with

> the following snippet:

>

> chart.setDataType(0, DataType.XVALUE);

> chart.setDataType(1, DataType.VALUE);

>

> exported to the XML template.

>

> When the chart is exported with the command

> chart.exportChart(FileFormat.XML, XML_FILENAME);

>

> these settings are not reflected in the XML file.

> Hence a subsequent import of the XML file resets the chart to the default

> settings (all series are of type value).

>

> Is there a way to get the export right? We've been trying to use the

> FileMask() without success.

>

> Any help appreciated,

>

> Kurt

Link to comment
Share on other sites

No, The XML includes only formatting attributes, it does not include 

anything related to the data of the chart.

Regards,

GA

"DI Kurt Edegger" <news_tmp1@edegger.com> wrote in message

news:4SGGAX2HHHA.476@webserver3.softwarefx.com...

> Hi,

>

> we are trying to use exported charts in the XML format as templates.

> Hereby we would need to get dataType settings done programmatically with

> the following snippet:

>

> chart.setDataType(0, DataType.XVALUE);

> chart.setDataType(1, DataType.VALUE);

>

> exported to the XML template.

>

> When the chart is exported with the command

> chart.exportChart(FileFormat.XML, XML_FILENAME);

>

> these settings are not reflected in the XML file.

> Hence a subsequent import of the XML file resets the chart to the default

> settings (all series are of type value).

>

> Is there a way to get the export right? We've been trying to use the

> FileMask() without success.

>

> Any help appreciated,

>

> Kurt

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...