Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

OLE Automation in Delphi5

Posted on 2000-02-27
5
Medium Priority
?
573 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 200 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
Screencast - Getting to Know the Pipeline
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

972 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