Solved

OLE Automation in Delphi5

Posted on 2000-02-27
5
563 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

734 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