Hello all,

IS this a bug or what am I doing wrong;

I make a print Dialog
ContractPrintDialog = new PrintDialog();

I set the property's of my PrinterSettings;

ContractPrintDialog.PrinterSettings.Duplex =
System.Drawing.Printing.Duplex.Horizontal;

I show my dialog.

myPrint = ContractPrintDialog.ShowDialog();

And when I go looking in the dialog to see if the duplex attribute is set,
it is always off, no mather if I set it to Horizontal, .Vertikal, Simplex or
what ever.

If I do not change the checkbox in the dialog the printer does what it has
to do on behave of my settings, evenso, if I look at my
.PrinterSettings.Duplex after colsing the dialog my pre-setting is still
there and if I change the checkbox the new setting is in the setting.

I'm using the Multilaguage-duch version of XP all patches loaded and VS-2005
Dev Team Edition Microsoft Visual Studio 2005 :
Version 8.0.50727.42 (RTM.050727-4200)
Microsoft .NET Framework
Version 2.0.50727

Installed Edition: Enterprise

Someone has a suggestion or a work arround?

Jean Paul

www.on7ami.be

RE: PrintDialog problem by v-lliu

v-lliu
Tue May 09 07:14:24 CDT 2006

Hi Jean,

Thank you for posting.

This is a quick note to let you know that I am performing research on this
issue and will get back to you as soon as possible. I appreciate your
patience.



Sincerely,
Linda Liu
Microsoft Online Community Support

====================================================
When responding to posts,please "Reply to Group" via
your newsreader so that others may learn and benefit
from your issue.
====================================================


RE: PrintDialog problem by v-lliu

v-lliu
Wed May 10 04:27:10 CDT 2006

Hi Jean,

Setting the PrinterSettings property of a PrintDialog by the following
sentence will affect the preferences of the default printer on your
machine.

this.printDialog1.PrinterSettings.Duplex = Duplex.Vertical;

After setting the PrinterSettings peroperty of a PrintDialog and showing
the dialog, you could see whether the duplex attribute has been set in the
dialog by selecting the default printer in the Select Printer groupbox and
clicking the Preferences button. A Printing Preferences window will appear.
Select the Finishing tab in the Printing Preference window. There's a Print
On Both Sides checkbox in the Document Options groupbox. If you have set
the PrinterSettings.Duplex to Duplex.Vertical or Duplex.Horizontal, the
checkbox should be checked.

I have had several tests on several printers in my office, which I set as
my default printer each time. I found that the problem of the Print On Both
Sides checkbox not being checked existed on some printers and didn't exist
on others. It seems that the problem is caused by the printer I use. You
could have a try using another printer as your default printer and see
whether the duplex attibute is set in the PrintDialog.

Hope this is helpful to you.
If you have any other concerns or need anything else, please don't hesitate
to tell me.



Sincerely,
Linda Liu
Microsoft Online Community Support

====================================================
When responding to posts,please "Reply to Group" via
your newsreader so that others may learn and benefit
from your issue.
====================================================


Re: PrintDialog problem by Jean

Jean
Wed May 10 06:53:55 CDT 2006

Hey Linda,

Indeed, when I use the HP Color Laserjet 2600n the checkbox stays selected
and when i use the HP Laserjet 1320n, wha has a dual side hardware facility,
the checkbox dous not stay chequed.

When I do not open the tabpage where the document option are the printer
prints dual sided but when open the tabpage, the checkbox is unchecked and
the page is printed single side.

So perhaps it's a bug in the printerdriver of HP, who knows?

Greets,

Jean Paul


"Linda Liu [MSFT]" <v-lliu@online.microsoft.com> schreef in bericht
news:I4w40PBdGHA.3724@TK2MSFTNGXA01.phx.gbl...
> Hi Jean,
>
> Setting the PrinterSettings property of a PrintDialog by the following
> sentence will affect the preferences of the default printer on your
> machine.
>
> this.printDialog1.PrinterSettings.Duplex = Duplex.Vertical;
>
> After setting the PrinterSettings peroperty of a PrintDialog and showing
> the dialog, you could see whether the duplex attribute has been set in the
> dialog by selecting the default printer in the Select Printer groupbox and
> clicking the Preferences button. A Printing Preferences window will
> appear.
> Select the Finishing tab in the Printing Preference window. There's a
> Print
> On Both Sides checkbox in the Document Options groupbox. If you have set
> the PrinterSettings.Duplex to Duplex.Vertical or Duplex.Horizontal, the
> checkbox should be checked.
>
> I have had several tests on several printers in my office, which I set as
> my default printer each time. I found that the problem of the Print On
> Both
> Sides checkbox not being checked existed on some printers and didn't exist
> on others. It seems that the problem is caused by the printer I use. You
> could have a try using another printer as your default printer and see
> whether the duplex attibute is set in the PrintDialog.
>
> Hope this is helpful to you.
> If you have any other concerns or need anything else, please don't
> hesitate
> to tell me.
>
>
>
> Sincerely,
> Linda Liu
> Microsoft Online Community Support
>
> ====================================================
> When responding to posts,please "Reply to Group" via
> your newsreader so that others may learn and benefit
> from your issue.
> ====================================================
>



Re: PrintDialog problem by v-lliu

v-lliu
Wed May 10 21:52:11 CDT 2006

Hi Jean,

Thank you for you reply and your detailed feedback on this issue. Yes, it
seems it's a problem in the printer driver of HP.

If you have any other questions or concerns, please do not hesitate to
contact us. It is always our pleasure to be of assistance.


Sincerely,
Linda Liu
Microsoft Online Community Support

====================================================
When responding to posts,please "Reply to Group" via
your newsreader so that others may learn and benefit
from your issue.
====================================================