Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

We have a rather bizarre issue here, and I was wondering if anyone had any ideas:

 

The Windows API exposes the call IExtractImage, which, among other things, can extract a bitmap from a URL link. It works quite nicely, except that it doesn't work in XP. The call is still there, but apparently doesn't supported extracting images from URLs in XP.

 

Now, XP does create thumbnails from html in Windows Explorer, so I know the functionality is there. The question is: where is it? Where did they hide it? I've seen one product (html2jpg) that basically does this, but nobody seems to have noticed that this functionality is not available in XP. The reason that this is an issue is that if a server is updated from 2000 to XP, we would lose the ability to create thumbnails on the fly for clients.

 

Any help would be greatly appreciated

Posted

this converts html to an image?

 

I'm not sure we're on the same page. Basically, I need to convert html (google's home page, for instance) to an image. I have no image resource to download. I'm looking at System.Net.WebClient, and I don't see any mention of taking a URL and converting into a jpg/bmp/whatever...unless this DownloadData() method is more powerful than it looks. Is there something I'm missing there?

 

Thanks

mike

Posted

Unfortunately, that uses the IExtractImage call from the Win API. It works perfectly in all versions other than XP. :(

 

It pulls an image perfectly on my 2000 box, but just leaves a blank on the XP machine.

 

Somehow, XP is doing this for Windows Explorer, but has hidden the call (or made it unavailable). I have no idea why they did so or where it might be now.

 

 

mike

  • 8 months later...
  • 1 year later...
Posted

Looking for a solution to this as well

 

Hey, is it possible to use the old shell32.dll file? Before service pack 1 or 2 it did work, so, shouldn't it be possible to register the old dll under another name and use it?

 

BTW, you can check this out as well:

 

http://www.nbrandt.com/html-preview-xp-thumbnails.html

 

it talks about how to revert the setting change. It isn't actully a change in the shell32.dll file itself.

 

Let me know if you find a solution, and I will do the same.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...