Excel programming not using COM

J

Julia

Hi

As part of a larger application I have a VB program that is passed a
reference to an instance of an Excel application and I simply copy a
chart to the clipboard:

Dim oExcelApp As Object
' oExcel set in call to third party DLL
oExcelApp.ActiveSheet.ChartObjects(1).CopyPicture

I need to be able to do this exact same thing using 4D (a procedural
database programming language) and want to know if Excel allows you to
do this with a call to a function and not though object references.

Many thanks.
Julia.
 
J

Jens Thiel

Julia said:
As part of a larger application I have a VB program that is passed a
reference to an instance of an Excel application and I simply copy a
chart to the clipboard:

Dim oExcelApp As Object
' oExcel set in call to third party DLL
oExcelApp.ActiveSheet.ChartObjects(1).CopyPicture

I need to be able to do this exact same thing using 4D (a procedural
database programming language) and want to know if Excel allows you to
do this with a call to a function and not though object references.


Julia,

you can wrap the necessary code in a "classic" DLL and export it as a single
function (assuming that 4D can use external DLLs). Instead of the object
reference you can pass a "Moniker", or lookup the Excel instance from the
ROT.

Jens.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top