By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,009 Members | 1,767 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,009 IT Pros & Developers. It's quick & easy.

duplex settings of the default network printer

P: 2

My goal is the properties settings of the default network printer by vba ( or vb code). In my case properties duplex/simplex.
With the winspool.dll.
This works fine if there the default printer has alocal port installed.
If I want to set the duplex property of a network printer without local port installed it went wrong.
In the step:

nRet = SetPrinter(hPrinter, 2, yPInfoMemory(0), 0) If (nRet = 0) Then
MsgBox "Unable to set shared printer settings."
End If

I just want to set the duplex property to duplex,
print the document and then set the duplex property back to simplex.
Has anyone a suggestion??

Greatings Hans
Sep 25 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.