Hi,
I try to change some printer settings using the win32 api
OpenPrinter,
GetPrinter and SetPrinter in VB.Net application.I copied
most of the code from this or
related newsgroups. However, OpenPrinter, GetPrinter and
ClosePrinter
works so far but I cannot change the printer settings.
SetPrinter
returns the error code ACCESS DENIED. I know I have to deal
with the
desired access mask in the _DEFAULT_PRINTER structure when
calling
OpenPrinter. Unfortunaltely the declaration of the
DEFAULT_PRINTER
structure or class I found on the internet doesn't work with
the
OpenPrinter function.
Public Structure DEVMODE
Public
dmDeviceName As String
Dim dmSpecVersion
As Short
Dim
dmDriverVersion As Shor ...
Go to the complete details ...