printer settings

  • Thread starter Thread starter Brett R. Wesoloski
  • Start date Start date
B

Brett R. Wesoloski

I am having some problems with the PrinterSettings.

I am trying to figure out why I can't get duplex printing to work.

In doing so I have a problem where when I set the
PrinterSettings.PrinterName equal to the printer I get "Function evaluation
disabled because a previous function evaluation timed out. You must continue
execution to reenable function evaluation." for all the printer settings. I
know the printer is the correct name because if I run the code through it
will print the document just not in duplex mode.

What I have for code for duplex is

printerSettings.Duplex = System.Drawing.Printing.Duplex.Vertical;

which comes after me setting the printerName.


Now when I set the PrinterSettings.PrinterName equal to what I will call a
dumb printer, doesn't have duplex, stapeling or anything like that the
printer settings come back and I can look at them.


Any idea's on this?

TIA,
Brett
 
I am having some problems with the PrinterSettings.

I am trying to figure out why I can't get duplex printing to work.

In doing so I have a problem where when I set the
PrinterSettings.PrinterName equal to the printer I get "Function
evaluation
disabled because a previous function evaluation timed out. You must
continue
execution to reenable function evaluation." for all the printer settings.

That's not a run-time error. That's a debugger error, and you'll only see
it when you try to access something from within the debugger, rather than
in your code.

In other words, it's not at all relevant to the issue here, unless you
only try to get duplex printing to work by manipulating your data using
the debugger (and if that's the case, I don't think the question is all
that interesting :) ).
I know the printer is the correct name because if I run the code through
it will print the document just not in duplex mode.

Are you absolutely sure that duplex mode is supported? Are you sure that
the code you're using to set duplex mode is correct?

You need to post a concise-but-complete example of code that reliably
reproduces the problem. You should also post the exact make and model of
the printer you're using and the version of the printer driver you have
installed.

The unfortunate truth is that even with that information, the likelihood
of someone being able to easily reproduce the problem you're seeing is
relatively low. But without that information, there's just no hope at
all. And there's at least a small possibility that there's some obvious
mistake in the code you've written that can be detected by someone reading
your question. But only if you actually post the code.

Please be sure to observe: both parts of "concise-but-complete" are
important.

Pete
 
Back
Top