Senin, 08 April 2019

Re: [MS_AccessPros] Fitting image to webbrowser window

 

hi Peter,

If you were using HTML to render the picture, you could specify image size. Since you are just giving it the image file without the befit of instructions that can be in HTML, perhaps you need to size the images yourself.

You can batch change sizes with Irfanview or WIA (Windows Image Acquisition). Here is example VBA and reference information for both methods:

VBA > Image > Resize Image Irfanview
https://msaccessgurus.com/VBA/Code/Irfanview_ResizeImage.htm

VBA > Image > Resize Image WIA
http://msaccessgurus.com/VBA/Code/WIA_ResizeImage_GG.htm


have an awesome day,
crystal

free code you can use in your projects
https://msaccessgurus.com/code.htm

On 4/7/2019 10:59 AM, Peter Randl??v?? [MS_Access_Professionals] wrote:
Dear friends
My "online" DB with 30,000 stereo images is now working except one little detail:
The images do not zoom up/down to fit the webbrowser window.
The code used is:
With Me.Webbrowser20
?????????? .ControlSource = "=" & """" & billedURL & """"
?????? End With

I have tried to add
.ResizeToFit
but get a message like "Only available in design mode".
For the time being I have added the option to click on the image, and it is show full screen.
An alternative would be to size the window and all the images to e.g. 1500 pixels, but I would by far prefer that the image automatically fits into the window.
Any suggestions?
Best regards
Peter

__._,_.___

Posted by: crystal 8 <strive4peace2008@yahoo.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (2)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


SPONSORED LINKS
.

__,_._,___

Tidak ada komentar:

Posting Komentar