+ Reply to Thread
Results 1 to 8 of 8

Excel 2007 : Insert BMP problem with Excel 2007

  1. #1
    Registered User
    Join Date
    03-18-2008
    Posts
    11

    Insert BMP problem with Excel 2007

    Hi Everybody,

    From my application I use Excel to generate some reports.

    With Excel 97, 2002, 2003 I simply select the cell and insert the BMP.
    Please Login or Register  to view this content.
    With Excel 2007 all the images seem to be inserted in one place, not where I am selecting.

    Does anyone know why this would happen or what can be done to solve this issue?

    Thanks in advance,
    Jeff
    Last edited by royUK; 05-10-2008 at 12:20 PM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Jeff please read the Forum Rules & use Code tags in future.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,419
    This will position the picture using the range references.

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    03-18-2008
    Posts
    11
    Hi Andy, Thanks for the reply.

    It's not that the BMP is not in the right position in the cell, it's actually not going into the correct cell.

    I have about 10 BMP files that should be going into 10 different cells. What is happening in 2007 is that all the images are being placed on top of one another (overlaid).

    It works perfectly fine in older versions of excel, just not 2007.


    Thanks,
    Jeff

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,419
    Yes the insert on pictures in 2007 appears to act differently to previous versions. The image appears in a program decided location rather than relative to the active cell.

    So in answer to your question "what can be done to solve this issue" I provided you code that will place the picture realtive to the cell you specify.

  6. #6
    Registered User
    Join Date
    03-18-2008
    Posts
    11
    Thanks Andy.

    Now I need to see if I can convert this to my programming lang.

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Quote Originally Posted by Jeff B
    Thanks Andy.

    Now I need to see if I can convert this to my programming lang.
    What programming lang, are'nt you using VBA?

  8. #8
    Registered User
    Join Date
    03-18-2008
    Posts
    11
    I use xHarbour and Fivewin.

    The code is similar but a few adjustments had to be made.

    For example, the suggested code from Andy was:
    Please Login or Register  to view this content.
    Where I needed to use:

    Please Login or Register  to view this content.
    I have it working now. Andy's solution was exactly what I was looking for.

    Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1