Resizing Document Imaging view control on Access form

B

Bruce Rusk

Does anyone have experience using the MODI (Microsoft Office Document
Imaging) controls? I'm trying to create an Access form that uses the
document viewer (MiDocView) control to display a TIFF image, and it
works fine in most circumstances. The problem is that I would like to
resize the control on the fly when the user resizes the form, so that it
takes up the available space.

I have done this successfully in the past with other controls, and the
code I have (setting the Width and Height properties of the control
based on the size of the window) works here, except for one problem: the
control does not redraw properly. The image is redrawn correctly, but
the scrollbars and page-up and page-down buttons (up- and down-pointing
double chevrons) that are part of the control do not get redrawn in the
correct position. Enlarging the control sometimes causes there to be
scroll bars in the *middle* of the image (these aren't just visual
artifacts, they are functional and move the image).

Any suggestions on how to prevent or fix this? I've tried redrawing the
control, requerying and redrawing the whole form, but nothing helps. It
is likely a bug in the control itself. The only "fix" I can think of is
to duplicate the control and draw a new one on the form but that seems
like a bunch of unnecessary coding and a likely performance hit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top