I have build a Property Get Function in one of my DLL (Biblio.DLL) where a
set the Printer object to a printer with API functions as follows:

Public Property Get PrinterObject() As Object
Set PrinterObject = Printer
End Property

If I use that Property Get Procedure in my EXE:

Set Printer = Bibliothek.PrinterObject

I always get the following Error:

Runtime Error '13':
Type mismatch

also if I test if the Objecttype is a Printer object

If TypeOf gpdbbiblio.PrinterObject Is Printer Then
Set Printer = gpdbbiblio.PrinterObject
Else
MsgBox "Kein Printer"
End If

Whats going wrong ?

regards Robert