How can images be inserted in Excel?

Discussion in 'AutoCAD' started by PG, Mar 20, 2005.

  1. PG

    PG Guest

    I would insert a bmp file in the active cell of an Excel sheet.

    I am new to vlax- functions and all I have discovered is
    (vlax-invoke-method ActiveSheet "Pictures" "Insert" bmpFile)
    but i receive an automation error.

    Anyone can help me?

    Thanks in advance

    Peter
     
    PG, Mar 20, 2005
    #1
  2. PG

    ECCAD Guest

    I think you can insert the .bmp, but you need
    to review 'ActiveCell' - a particular Cell object.
    Obtain that object, then try inserting the .bmp.

    Bob
     
    ECCAD, Mar 20, 2005
    #2
  3. PG

    PG Guest

    Thanks Bob,

    I can activate the cell where I vant to insert the image, but what I need
    is an explanation about the method.
    I think I am not passing the right arguments to the vlax-invoke-method
    function or even I am using the wrong function.

    I know only plain lisp, not VB, and have no experience on using methods.

    Peter
     
    PG, Mar 20, 2005
    #3
  4. PG

    Nirmal Guest

    I have not tried much in EXCEL but you can check what methods and which properties you can change. For this use
    (vlax-dump-object <vla-object> t)

    this will provide what methods you can do and you can also find how many arguments you require for that.

    Nirmal
     
    Nirmal, Mar 21, 2005
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.