A
Al
I had this working in Access 2000 prior to my PC crashing. Now it errors
when it tries to declare objPrinter as printer (User-defined type not
defined). When I change the declaration to a String or to nothing, it passes
by the declaration and errors on the ActivePrinter part of "objPrinter =
ActivePrinter" (variable not defined)... Am I missing a Reference or what is
happening here?
Dim objPrinter As printer
Dim pdfDist As PdfDistiller
Const PDFENGINE_DISTILLER = 2
Set pdfDist = New PdfDistiller
objPrinter = ActivePrinter
Thanks in advance,
Al
when it tries to declare objPrinter as printer (User-defined type not
defined). When I change the declaration to a String or to nothing, it passes
by the declaration and errors on the ActivePrinter part of "objPrinter =
ActivePrinter" (variable not defined)... Am I missing a Reference or what is
happening here?
Dim objPrinter As printer
Dim pdfDist As PdfDistiller
Const PDFENGINE_DISTILLER = 2
Set pdfDist = New PdfDistiller
objPrinter = ActivePrinter
Thanks in advance,
Al