Solved

Interface with Excel

Posted on 2000-04-27
2
137 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
2 Comments
 

Expert Comment

by:westy100697
Comment Utility
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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

744 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

17 Experts available now in Live!

Get 1:1 Help Now