+1 800 256 3608 (toll-free in North America) or +49 7531 90 60 10| service@combit.com

LlGetPrinterFromPrinterFile


(Guest) #1

Wenn ich versuche mittels LlGetPrinterFromPrinterFile den in der *.lsp Datei gespeicherten Drucker auszulesen, dann bekomme ich zwar den Rückgabewert 0, aber der Drucker wird nicht angezeigt:

Private Type DEVMODEA
dmDeviceName As String * 32
dmSpecVersion As Integer
dmDriverVersion As Integer
dmSize As Integer
dmDriverExtra As Integer
dmFields As Long
dmOrientation As Integer
dmPaperSize As Integer
dmPaperLength As Integer
dmPaperWidth As Integer
dmScale As Integer
dmCopies As Integer
dmDefaultSource As Integer
dmPrintQuality As Integer
dmColor As Integer
dmDuplex As Integer
dmYResolution As Integer
dmTTOption As Integer
dmCollate As Integer
dmFormName As String * 32
dmUnusedPadding As Integer
dmBitsPerPel As Long ’ Basic Win32 definition had an error here!
dmPelsWidth As Long
dmPelsHeight As Long
dmDisplayFlags As Long
dmDisplayFrequency As Long
End Type

Dim RetWe As Long
Dim DruNa As String * 32 'Druckername
Dim DevMo As DEVMODEA

mHwnd = LlJobOpen(CMBTLANG_DEFAULT)

RetWe = LlGetPrinterFromPrinterFile(mHwnd, LL_PROJECT_LIST, FiNam, 0, DruNa, 0, DevMo, 0)

Debug.Print RetWe
Debug.Print DruNa

LlJobClose mHwnd


(Guest) #2

Hat niemand eine Lösung für das Problem?