[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 147
  • Last Modified:

Interface with Excel

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
mauling
Asked:
mauling
1 Solution
 
westy100697Commented:
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
 
intheCommented:
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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now