Simple printing problem 
Author Message
 Simple printing problem

I am trying to print duplex on a printer but it will not work properly.

To select the printer defined by the user I use the following code:

blnPrinterFound = False
'Find the user defined printer
For Each prnCheck In Printers
    If UCase$(prnCheck.DeviceName) =
Trim$(UCase$(aDocument(lngDocumentInfo).pddPrinter_Id)) Then
        Set Printer = prnCheck
        blnPrinterFound = True
        Exit For
    End If

'If not found then set the default printer
If Not blnPrinterFound Then
    For Each prnCheck In Printers
        If strDefaultPrinterName = prnCheck.DeviceName Then
            Set Printer = prnCheck
            Exit For
        End If
End If

The printer I use is a HP4000T with duplex option.
When I do not use the above code and the default printer is the HP4000T then
I can set the duplex property to 3 (or so).
When I set the printer with the lower part of the code to the standard, ie.
it is the same HP4000T,  then changing the duplex mode will return error 380
invalid property value.

Why does it do this???

Fri, 28 Oct 2005 18:06:41 GMT  
 [ 1 post ] 

 Relevant Pages 

1. simple printing problem?

2. Simple Newbie Print Problem

3. Simple print listbox to disk problem!

4. Help with simple VB Printing Problem

5. Simple (?!) printing problem

6. Simple (?!) printing problem

7. Simple Problem....Want to print files as if from Windows Explorer

8. A simple Mail problem in search for a equally simple answer

9. Simple Question: Printing

10. Simple printing with VB.NET?

11. Simple Printing Question

12. Simple question: - Printing to Text Box


Powered by phpBB® Forum Software