Solved

Interface with Excel

Posted on 2000-04-27
2
142 Views
Last Modified: 2010-04-04
Where could I get the correct sintaxe to use Excel or MsOffice.

For example, the below command could not be use directly in Delphi.
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Preview:=True, Collate:= _

Thanks

0
Comment
Question by:mauling
[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
2 Comments
 

Expert Comment

by:westy100697
ID: 2757281
Hi,
   I have done a fair bit of this stuff in Excel with D3. I used a couple of things the first was the help in Excel as it shows the Visual Basic Help for Excel and the format is almost identical to Delphi. The other way is to import the type libraries and have a look the the functions in there. I tended to use the Visual Basic Help file as it displayed examples as well.

Regards,
 
 WESTY :)
0
 
LVL 17

Accepted Solution

by:
inthe earned 50 total points
ID: 2757740
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 loads of stuff here:
http://www.djpate.freeserve.co.uk/Automation.htm
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

726 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