Jump to content
Software FX Community

Chart Template Export

User (Legacy)

Recommended Posts


I'm trying to export to an OLE Stream object in VB for ChartFX

Client-Server. The API Guide show it is possible

but there isn't any sample.

Please, Say anything wrong in my code and Help me.


Dim strCon As String

Dim strSQL As String

Dim objStream As Stream

Dim objCon As ADODB.Connection

tmpFile = "c:\tmp\chtmp"

strCon = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security

Info=False;Initial Catalog=iOLAP_Admin;Data Source=."

ChartFX1.Export CHART_CFXOLEFILE, objStream

strSQL = "INSERT INTO chttemp(template) VALUES('" & objStream & "')"

Set objCon = New ADODB.Connection

objCon.Open strCon

objCon.Execute strSQL


Set objCon = Nothing

Set objStream = Nothing

Link to comment
Share on other sites


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

  • Create New...