Solved

OLE Automation in Delphi5

Posted on 2000-02-27
5
555 Views
Last Modified: 2008-02-26
hi

do you have any examples of OLE Automation using the new ExcelOleObject, ExcelApplication, ExcelWorkSheet and ExcelWorkBook components
in Delphi5. i've managed to connect them up and create workbooks and worksheets but am unsure if I've done so correctly.  Help
is scant on these objects so i've had to rely on some degree of intuition.
Also I cannot insert an excel spreadsheet created through the above components into an OLE container at run time.

I NEED TO KNOW HOW TO DO THE ABOVE WITH NEW D5 COMPONENTS

Any help would be much appreciated..


0
Comment
Question by:ekramur
  • 3
5 Comments
 
LVL 17

Expert Comment

by:inthe
ID: 2563444
these may help:

there are tutorial (with code) about automating excel here:

http://hometown.aol.com/charliecal/TechPapers/DelphiWord.htm 

also a tutorial from borland:(see examples.zip for code)
http://www.inprise.nl/delphi/papers/microexcel/me3.html 

and another demo project here for putting data into excel using dde:
http://inthe.future.easyspace.com/delphi/files/exceldde.zip 
0
 

Author Comment

by:ekramur
ID: 2564270
Edited text of question.
0
 

Author Comment

by:ekramur
ID: 2564277
Thanks for the urls but I've already checked these out. the problem is that none of the urls use the new Excel components that ship with Delphi5.
I would like to use these components because in theory at least the automation process should be a lot simpler as they are excel wrappers.
I cannot attach an Excel spreadsheet to a OLE Container if it is created via one of the new components


0
 

Accepted Solution

by:
ellessar earned 100 total points
ID: 2564707
Visit Deborah Pate's web site. She is a member of TeamB from Inprise and will answer any questions you have regarding oleautomation.

You can get the Delphi 5 and Excel stuff here:

http://www.djpate.freeserve.co.uk/AutoExcl.htm

and her home page where she discusses general oleautomation stuff can be found here:

http://www.djpate.freeserve.co.uk/Automation.htm


0
 

Author Comment

by:ekramur
ID: 2646035
thanx for the help.  after much digging around the answer is that OLe Automation with d5 components and an OLe container can't be done !!
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now