Print Preview of Access Forms and Reports

Make sure that your control paints correctly when the Metafile representation of the control’s UI is requested. Insert your control on an Access form or report and Print Preview to ensure it looks correct. Again, this should be similar to inserting your control into the ActiveX Control Test Container (the tool that ships with Visual C++) in Passive Container Mode, and then choosing Edit | Draw Metafile from the menus.

Although it is a similar code path you may want to verify that actually printing the form or report with your control on it looks correct as well. Obviously, if your control is invisible at runtime, it should not be painting when the form is browsed via View | FormView, or when printed or previewed. It also should not invalidate the region on the form or report surface where it is located either. It should not be visible at all.