Jump to content
Software FX Community

Export properties


User (Legacy)

Recommended Posts

Hi,

I am using ChartFX Client Server in a VB 6 project and I need to save the

chart properties (no data) WITHOUT creating a file.

The best thing would be having an XML string as the output format for the

properties. But the XML Data Provider seems a read-only way to handle

properties.

Also, I read in the docs that passing an empty string to the Export method

should copy the properties to the clipboard, but inspecting the clipboard

itself after exporting shows no data!

Is there any way to have the property values without writing them on disk?

Thanks in advance,

Luca

Link to comment
Share on other sites

1) Exporting properties to an XML is not supported in this version of the

product. This is supported in the new 6.0 version (for .NET). The only way

to export the chart properties is to a Binary stream.

2) Exporting to the clipboard works for the following formats:

- Bitmap

- Metafile

- Text

- Chart File (Binary)

--

FP

Software FX, Inc.

Link to comment
Share on other sites

This is the full source code of my test program

Private Sub Command1_Click()

Text1.Text = "Export returned: " & c.Export(CHART_CFXTEMPLATE)

Text1.Text = Text1.Text & vbCrLf & "Clipboard contents: " & vbCrLf &

Clipboard.GetText(vbCFText)

End Sub

Private Sub Command2_Click()

Text1.Text = "Import returned: " & c.Import(CHART_CFXTEMPLATE)

c.RecalcScale

End Sub

Where is the result of the export method? Everytime I run the program the

clipboard is empty.

Actually, the import method does not always work correctly. Sometimes it

works, some others doesn't.

It' important for me to save the properties, but I can't think of saving

them one by one.

Thanks

"SoftwareFX Support" <support@softwarefx.com> wrote in message

news:3hY6m5zBCHA.1448@webserver1.softwarefx.com...

> 1) Exporting properties to an XML is not supported in this version of the

> product. This is supported in the new 6.0 version (for .NET). The only way

> to export the chart properties is to a Binary stream.

>

> 2) Exporting to the clipboard works for the following formats:

>

> - Bitmap

> - Metafile

> - Text

> - Chart File (Binary)

>

> --

> FP

> Software FX, Inc.

>

>

Link to comment
Share on other sites

Exporting to the clipboard in a binary format is intended only for the OLE

Control to be used (inside a desktop application such as Word, Excel, etc.)

it is not intended to transfer data between charts.

Can you please explain what you are trying to do, why do you want to use the

clipboard ? are you transferring setting between two different apps ? if you

are transferring setting within the same app, you should not use the

clipboard but instead a memory stream or a temporary file.

--

FP

Software FX, Inc.

post-2107-13922394484912_thumb.png

Link to comment
Share on other sites

I am trying to develop a plugin for an application using your ChartFX.

The problem is, the host application passes a reference to an XML object

using an interface. I am supposed to merge the properties of your chart

(along with my plugin-specific data) into the XML document. So, I need to

access all of the chart properties at once, turn them into XML and merge

them into the doc.

So I do not need to save them on disk.

What do you mean by "memory stream"?

Thanks,

Luca

"SoftwareFX Support" <support@softwarefx.com> wrote in message

news:cQt8Iu9BCHA.1324@webserver1.softwarefx.com...

> Exporting to the clipboard in a binary format is intended only for the OLE

> Control to be used (inside a desktop application such as Word, Excel,

etc.)

> it is not intended to transfer data between charts.

>

> Can you please explain what you are trying to do, why do you want to use

the

> clipboard ? are you transferring setting between two different apps ? if

you

> are transferring setting within the same app, you should not use the

> clipboard but instead a memory stream or a temporary file.

>

> --

> FP

> Software FX, Inc.

>

>

Link to comment
Share on other sites

A Memory Stream can be created using CreateStreamOnHGlobal (Windows API).

This is a regular stream as far as a client is concerned but it resides in

memory (no need to create a file).

I still don't understand how you are going to generate the XML ? are you

going to UUCODE the binary data ? as I said in my previous post, Chart FX

5.x dos not support exporting to an XML.

--

FP

Software FX, Inc.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...