Solved

Interface with Excel

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi 10 Seattle Dataset Actions 5 79
Making delphi communicate with a c# service 16 88
Dev Express grid collapse 2 39
Need Help Delphi 2010 CheckBox1 Stored value in memo 13 57
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

911 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

20 Experts available now in Live!

Get 1:1 Help Now