resizing webbrowser to fit content

Wayne Gunn 1 Reputation point
2022-07-30T03:18:18.853+00:00

I have an msaccess form I use to display html content in a webbrowser control. In this case, all the html content is in 1 table so the table pretty much gives me the dimensions of the report. It's a pretty simple table. For what it's worth, I set the size of the cells but not of the table, so I use the table's offsetHeight and offsetWidth to get the size of the document content. I want to adjust the size of the webbrowser control so it just fits the document, then adjust the size of the msaccess form just to fit the webbrowser control. Is it possible to get consistent scaling conversions between the units returned by offsetHeight/width and msaccess form controls like the webbrowser? If so, how is it done?

Thank you

Microsoft 365 and Office | Access | Development
Developer technologies | Visual Basic for Applications
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.