CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2001
    Posts
    44

    open Excel sheet via VC++

    hello to all of u,
    how can i open an existing Excel sheet via automation (what r the appropriate classes ?) ?

    millions thanks.


  2. #2
    Join Date
    May 2001
    Location
    South Korea
    Posts
    150

    Re: open Excel sheet via VC++

    Use CreateFileMoniker, then BindToObject.

    Alex.


  3. #3
    Join Date
    Sep 1999
    Location
    Germantown, MD, USA
    Posts
    74

    Re: open Excel sheet via VC++

    Hi!
    I have seen a lot of smart book, which describe OLE Automation. They have examples for automating Excel. Unfortunately, it does not work. I tryed do it, but... Too many bugs here. May be the examples was old and the bugs are fixed now. It was 3 years old.

    If you are interested in it yet, I can try to find one of the exaples and print here. As I remember, it is not big.


  4. #4
    Join Date
    Oct 2000
    Location
    TX, USA
    Posts
    12

    Re: open Excel sheet via VC++

    Hi yaishb,
    U need to make automation client for that. Get the guid of the excel object. using this guid make the object of the excel sheet. Then using this pointer u can access the excel sheet methods. {Read how to make automation client in VC++)
    If this help you anyway kindly rate the post.

    bye,

    Manish Chaudhari


  5. #5
    Join Date
    Aug 1999
    Location
    Canada
    Posts
    2,076

    Re: open Excel sheet via VC++


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured