For Programmers: Free Programming Magazines  


Home > Archive > Clarion > September 2004 > OLE to excel multiple ole clients setting target









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author OLE to excel multiple ole clients setting target
john nairn

2004-09-28, 3:55 am

Hi,

In an ole application I need to be able to specify which of several
copy of excel running on a computer is the target for ole data being
output to a new excel spreadsheet. Before each line is output I would
like to use a handle to point the application to just one copy of
excel.

I have an application that dumps data to excel spreadsheets. It uses
prop:createole to make a object then prop:create to make a new excel
spreadsheet. The application is souce code with now window or report
layout. It uses higly hand coded interface objects to get the required
data from sql, so I do not want to use any of the standard excel
report tools if I can help it.

It works fine unless the user opens another Excel spredsheet. Once a
second copy of Excel is opened on the desktop all the OLE data dumps
into the second spreadsheet. Open a third copy of excel and data
starts flowing to the third copy. As uses change the focus the top
copy of excel starts getting the rest of the data. I need the data to
flow to the copy of excel opened by the application, not one opened by
the user.

Thanks for your help.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com