+ Reply to Thread
Results 1 to 4 of 4

Displaying and Updating Image Dynamically (ActiveX Image Control?)

  1. #1
    Registered User
    Join Date
    10-26-2011
    Location
    Virginia
    MS-Off Ver
    Excel 2010
    Posts
    50

    Question Displaying and Updating Image Dynamically (ActiveX Image Control?)

    Hello thank you for looking at this thread! My workbook simply has multiple columns of data which will be summarized visually in a tag cloud (I have the tag cloud part taken care of already creating either a jpg or png, I simply have to change the extension within a batch file to change between picture formats)

    I need to have the tag cloud image display and update depending on which column the user would like to summarize (for now I have simplified the issue by only having one of the data columns in my workbook, and will worry about the user selection of the data column to be summarized later).

    My Main Question:

    Focusing on the image display and updating now, whether it be an ActiveX Image Control or any other way (open to any ideas advice). I've been playing around manually before I try and code it and I can not get either a jpg or png file to attach to the ActiveX control (both of which cause an Invalid Picture Message).

    The file name can stay the same if need be and for now I think/assume that'd be easiest (I have my Tag cloud generator just replacing the previously existing image file of the same name).

    Would ActiveX control be the way to go for this dynamically changing image? If not how would you recommend I try and tackle this. Please let me know if I've not been clear and much thanks in advance!

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Displaying and Updating Image Dynamically (ActiveX Image Control?)

    Hello VTHokie11,

    Welcome to the Forum!

    If your cloud tags are based on the column data then you can use a worksheet cell to display the tag cloud in. I have attached an example workbook I found some time ago on another web site. This may be a better solution.
    Attached Files Attached Files
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    10-26-2011
    Location
    Virginia
    MS-Off Ver
    Excel 2010
    Posts
    50

    Question Re: Displaying and Updating Image Dynamically (ActiveX Image Control?)

    Leith,

    Thank you for your response! I've seen the example you've provided and looked at it when i was working on the word cloud generation aspect of my code. Instead I went with an java -jar file IBM published based on the same tech that runs the popular wordle.net.

    I have my macro shelling a batch file that contains the java jar file, a configuration .txt file, the text to be visually summarized with the tag cloud in a .txt file, and lastly the output picture file.

    I have already written code to save the worksheet to a .txt file (grabs whole worksheet in future would rather have user be able to select which column of data they would like to summarize i.e. which column to save to the .txt file), the shell command also works creating the output picture file in the same folder as the batch file and the java jar file.

    I now want to find a way I can display this image file (I've experimented and I can change the format between jpg and png just by changing the extention in the batch if that will help displaying it at all). I was thinking maybe activeX would be the way to go but I've never used those before and wasn't even successful manually attaching either the created jpg or png. Any help would be greatly appreciated! Sorry if I was not clear before Leith!

  4. #4
    Registered User
    Join Date
    10-26-2011
    Location
    Virginia
    MS-Off Ver
    Excel 2010
    Posts
    50

    Re: Displaying and Updating Image Dynamically (ActiveX Image Control?)

    Still working on this issue if anyone has any input! Thanks a bunch!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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