How about instantiating TExcelApplication embedded in a form, as is usually 
done with TForm (setting parent property to the host form, hiding border, 
etc.)? I don't know enough about TExcelApplication to know if this is feasible 
or not... Or maybe you can check the source code for TOleContainer out and see 
how it instantiates the apps as hosted forms?

Dave 

--- On Wed, 8/19/09, justusjan <[email protected]> wrote:

From: justusjan <[email protected]>
Subject: [delphi-en] Embedding MS Excel and Word documents in a Delphi 
application
To: [email protected]
Date: Wednesday, August 19, 2009, 8:47 AM






 




    
                  Hi all,



this has been covered before, though I can't find any usefull links to 
examples. I would like to embed an existing MS Office (Excel or Word) document 
into a Delphi application, and control it programmatically while loaded (and 
visible) as part of my app - NOT in a separate window:



- I've tried TOleContainer - which works for displaying many sorts of ActiveX 
content, but then I can't seem to control it (set Zoom factor, show/hide 
tabcontrol, read/write data etc.)



- Also, I've tried TExcelApplication and TExcelWorkbook - these allow me to 
control/manipulate the file but it will be launched in a new window or stay 
hidden, depending on the Visible property.



Most (all?) references I found so far cover either the first OR the latter, 
whereas most documentation is found on the latter anyway (Deborah Pate's, 
Expert-Exchange, Delphi newsgroups and many others). Delphi Built-in Help 
doesn't provide me with any example neither.



What I'm looking for, is these to features combined. Obviously I prefer the 
TxxxApplication approach, as it uses early binding.



Using TurboDelphi / BDS2006



Thanks for any insights,

  Justus Janssen




 

      

    
    
        
         
        
        








        


        
        


      

[Non-text portions of this message have been removed]

Reply via email to