I want to be able to put all my print routines into a separate module so any print routine can be called from several forms in the app. I can define:
Public dlgPrinter as PrintDialog
in the module so that is no problem. However, I cannot define a PrintPreviewDialog in the module so this does not allow for print preview. How can I include print preview since I cannot define the dialog? I may have missed an imports statement. The module has all of the following:
Imports Microsoft.Office.Interop 'For creating Word documents
Alternatively, there may be a way to use a form containing the PrintPreviewControl Control but I don't know how to do this in a module. A definitive "You can't do it, so stop trying!" would be a useful, but not welcome, response. A solution or work around would be better.