ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Tough one - image and embedded html document (https://www.excelbanter.com/excel-programming/428957-tough-one-image-embedded-html-document.html)

XP

Tough one - image and embedded html document
 
In a hidden Excel sheet I have embedded an HTML document which I then launch
when a button is clicked. This html document is custom help for the program
contained in the file. It all works very nicely.

What I would like to be able to do is incorporate a screen shot or two in
the html help file, the problem is, you would normally reference images to
appear in html using an anchor such as <a href="MyPath\to\MyFile.jpg".

Since I want all of the help to be self-contained or on-board in the program
file itself, does anyone know how I can paste image(s) into a spread sheet
and then reference it in my html document to make it appear in the help file
when opened?

Thanks for your help!


XP

Tough one - image and embedded html document
 

Sorry, I was thinking Image but wrote code for hyperlink.

The code to insert an image in html is <img src="MyPath\to\MyImage.jpg"

But, my original question still stands...any ideas?

"xp" wrote:

In a hidden Excel sheet I have embedded an HTML document which I then launch
when a button is clicked. This html document is custom help for the program
contained in the file. It all works very nicely.

What I would like to be able to do is incorporate a screen shot or two in
the html help file, the problem is, you would normally reference images to
appear in html using an anchor such as <a href="MyPath\to\MyFile.jpg".

Since I want all of the help to be self-contained or on-board in the program
file itself, does anyone know how I can paste image(s) into a spread sheet
and then reference it in my html document to make it appear in the help file
when opened?

Thanks for your help!


joel

Tough one - image and embedded html document
 
If you activate (obj.activate) the imbedded file will launch an ie
application. You can get the tag (img) using the following

Set myimage = IE.Document.getElementsByTagName("img")



"xp" wrote:


Sorry, I was thinking Image but wrote code for hyperlink.

The code to insert an image in html is <img src="MyPath\to\MyImage.jpg"

But, my original question still stands...any ideas?

"xp" wrote:

In a hidden Excel sheet I have embedded an HTML document which I then launch
when a button is clicked. This html document is custom help for the program
contained in the file. It all works very nicely.

What I would like to be able to do is incorporate a screen shot or two in
the html help file, the problem is, you would normally reference images to
appear in html using an anchor such as <a href="MyPath\to\MyFile.jpg".

Since I want all of the help to be self-contained or on-board in the program
file itself, does anyone know how I can paste image(s) into a spread sheet
and then reference it in my html document to make it appear in the help file
when opened?

Thanks for your help!


Tim Williams[_2_]

Tough one - image and embedded html document
 
Windows only ? If so, you could maybe try an MHT file (contains the images,
encoded in Base64 [?])

You could do this by saving your HTML file (with local images loaded) as
*.mht and then embedding that instead of a plain html file.

Tim

"xp" wrote in message
...

Sorry, I was thinking Image but wrote code for hyperlink.

The code to insert an image in html is <img src="MyPath\to\MyImage.jpg"

But, my original question still stands...any ideas?

"xp" wrote:

In a hidden Excel sheet I have embedded an HTML document which I then
launch
when a button is clicked. This html document is custom help for the
program
contained in the file. It all works very nicely.

What I would like to be able to do is incorporate a screen shot or two in
the html help file, the problem is, you would normally reference images
to
appear in html using an anchor such as <a href="MyPath\to\MyFile.jpg".

Since I want all of the help to be self-contained or on-board in the
program
file itself, does anyone know how I can paste image(s) into a spread
sheet
and then reference it in my html document to make it appear in the help
file
when opened?

Thanks for your help!





All times are GMT +1. The time now is 07:58 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com