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

PrintDialog/PageOrientation BUG ?

P: n/a
Hi,

Is there a BUG in the printdialog ? When I create a PrintDialog ans set the "DefaultPageSettings.Landscape" property to "false" and then display the dialog, select "Landscape" and click OK, the value of the "DefaultPageSettings.Landscape" is still false !!??

Code Exemple :

PrintDialog PDialog = new PrintDialog();
PDialog.PrinterSettings = new System.Drawing.Printing.PrinterSettings();
PDialog.PrinterSettings.DefaultPageSettings.Landsc ape=false;
PDialog.ShowDialog();
// The dialog show "Portrait" Selected, if you select "Landscape" and click OK
// the value in the "DefaultPageSettings" is still Landscape=false !!??
MessageBox.Show(PDialog.PrinterSettings.DefaultPag eSettings.Landscape.ToString());
Any Bug in/con-firmation and solution to make it work will be appreciated

Thanks

Steph.

Nov 16 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
mmmm....No reply to a so simple question with a clear code example mean : "Yes There is a Bug in the PrintDialog"... And the workaround is : "There is no workaround... no source code so you can't correct it yourself... If you are Lucky it will maybe corrected in the next version. please buy it."



Thank-you steph for your self-reply, you can now stop to try to make it work because it's impossible. Sure, you can add a PageSetupDialog to do this, your end-users will be happy to spend their days clicking on various dialogs and to remember that, contrary to all other softwares, they can't use the Page Orientation of the common PrintDialog in your new software. And since end users are expert in computer and software they will understand and never foguet that "special feature" and you wont have thousand of calls a day to ask you "How can I print in Landscae ? I choose Landscape but it doesn't work."





Anyway, have a good day telling your boss that he have to buy the next VS .Net to HOPE to have things working correctly..



Steph.

"Steph." <st***@nomail.com> wrote in message news:uL**************@TK2MSFTNGP11.phx.gbl...
Hi,

Is there a BUG in the printdialog ? When I create a PrintDialog ans set the "DefaultPageSettings.Landscape" property to "false" and then display the dialog, select "Landscape" and click OK, the value of the "DefaultPageSettings.Landscape" is still false !!??

Code Exemple :

PrintDialog PDialog = new PrintDialog();
PDialog.PrinterSettings = new System.Drawing.Printing.PrinterSettings();
PDialog.PrinterSettings.DefaultPageSettings.Landsc ape=false;
PDialog.ShowDialog();
// The dialog show "Portrait" Selected, if you select "Landscape" and click OK
// the value in the "DefaultPageSettings" is still Landscape=false !!??
MessageBox.Show(PDialog.PrinterSettings.DefaultPag eSettings.Landscape.ToString());
Any Bug in/con-firmation and solution to make it work will be appreciated

Thanks

Steph.

Nov 16 '05 #2

P: n/a
Steph,
That's the way my test worked here with Framework 1.1. I haven't put
the new service pack in yet as some people are reporting problems with
security settings with working applications after this. The service pack
may fix it though.
I was out all day yesterday so didn't reply. You may get better
response on printing issues in microsoft.public.dotnet.framework.drawing
though.

Ron Allen
"Steph." <st***@nomail.com> wrote in message
news:u5**************@TK2MSFTNGP11.phx.gbl...
mmmm....No reply to a so simple question with a clear code example mean :
"Yes There is a Bug in the PrintDialog"... And the workaround is : "There is
no workaround... no source code so you can't correct it yourself... If you
are Lucky it will maybe corrected in the next version. please buy it."

Thank-you steph for your self-reply, you can now stop to try to make it work
because it's impossible. Sure, you can add a PageSetupDialog to do this,
your end-users will be happy to spend their days clicking on various dialogs
and to remember that, contrary to all other softwares, they can't use the
Page Orientation of the common PrintDialog in your new software. And since
end users are expert in computer and software they will understand and never
foguet that "special feature" and you wont have thousand of calls a day to
ask you "How can I print in Landscae ? I choose Landscape but it doesn't
work."
Anyway, have a good day telling your boss that he have to buy the next VS
..Net to HOPE to have things working correctly..

Steph.

"Steph." <st***@nomail.com> wrote in message
news:uL**************@TK2MSFTNGP11.phx.gbl...
Hi,
Is there a BUG in the printdialog ? When I create a PrintDialog ans
set the "DefaultPageSettings.Landscape" property to "false" and then display
the dialog, select "Landscape" and click OK, the value of the
"DefaultPageSettings.Landscape" is still false !!??
Code Exemple :
PrintDialog PDialog = new PrintDialog();
PDialog.PrinterSettings = new System.Drawing.Printing.PrinterSettings();
PDialog.PrinterSettings.DefaultPageSettings.Landsc ape=false;
PDialog.ShowDialog();
// The dialog show "Portrait" Selected, if you select "Landscape" and click
OK
// the value in the "DefaultPageSettings" is still Landscape=false !!??
MessageBox.Show(PDialog.PrinterSettings.DefaultPag eSettings.Landscape.ToString());

Any Bug in/con-firmation and solution to make it work will be appreciated

Thanks

Steph.
Nov 16 '05 #3

P: n/a
Steph,
I forgot to do the obvious test on mine as I didn't set the object I
passed back. On framework 1.1 looking at the
PDialog.PrinterSettings.DefaultPageSettings.Landsc ape.ToString()) on
framework 1.1 shows true after I change the settings if I don't set
Landscape to false ahead of time. It shows False if I set the value before
calling the PrintDialog.

Ron Allen

"Steph." <st***@nomail.com> wrote in message
news:u5**************@TK2MSFTNGP11.phx.gbl...
mmmm....No reply to a so simple question with a clear code example mean :
"Yes There is a Bug in the PrintDialog"... And the workaround is : "There is
no workaround... no source code so you can't correct it yourself... If you
are Lucky it will maybe corrected in the next version. please buy it."

Thank-you steph for your self-reply, you can now stop to try to make it work
because it's impossible. Sure, you can add a PageSetupDialog to do this,
your end-users will be happy to spend their days clicking on various dialogs
and to remember that, contrary to all other softwares, they can't use the
Page Orientation of the common PrintDialog in your new software. And since
end users are expert in computer and software they will understand and never
foguet that "special feature" and you wont have thousand of calls a day to
ask you "How can I print in Landscae ? I choose Landscape but it doesn't
work."
Anyway, have a good day telling your boss that he have to buy the next VS
..Net to HOPE to have things working correctly..

Steph.

"Steph." <st***@nomail.com> wrote in message
news:uL**************@TK2MSFTNGP11.phx.gbl...
Hi,
Is there a BUG in the printdialog ? When I create a PrintDialog ans
set the "DefaultPageSettings.Landscape" property to "false" and then display
the dialog, select "Landscape" and click OK, the value of the
"DefaultPageSettings.Landscape" is still false !!??
Code Exemple :
PrintDialog PDialog = new PrintDialog();
PDialog.PrinterSettings = new System.Drawing.Printing.PrinterSettings();
PDialog.PrinterSettings.DefaultPageSettings.Landsc ape=false;
PDialog.ShowDialog();
// The dialog show "Portrait" Selected, if you select "Landscape" and click
OK
// the value in the "DefaultPageSettings" is still Landscape=false !!??
MessageBox.Show(PDialog.PrinterSettings.DefaultPag eSettings.Landscape.ToString());

Any Bug in/con-firmation and solution to make it work will be appreciated

Thanks

Steph.
Nov 16 '05 #4

P: n/a
I get the same on 1.1 SP1

Regards

Richard Blewett - DevelopMentor
http://staff.develop.com/richardb/weblog

nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<OI**************@TK2MSFTNGP10.phx.gbl>

Steph,
That's the way my test worked here with Framework 1.1. I haven't put
the new service pack in yet as some people are reporting problems with
security settings with working applications after this. The service pack
may fix it though.
I was out all day yesterday so didn't reply. You may get better
response on printing issues in microsoft.public.dotnet.framework.drawing
though.

Ron Allen
"Steph." <st***@nomail.com> wrote in message
news:u5**************@TK2MSFTNGP11.phx.gbl...
mmmm....No reply to a so simple question with a clear code example mean :
"Yes There is a Bug in the PrintDialog"... And the workaround is : "There is
no workaround... no source code so you can't correct it yourself... If you
are Lucky it will maybe corrected in the next version. please buy it."

Thank-you steph for your self-reply, you can now stop to try to make it work
because it's impossible. Sure, you can add a PageSetupDialog to do this,
your end-users will be happy to spend their days clicking on various dialogs
and to remember that, contrary to all other softwares, they can't use the
Page Orientation of the common PrintDialog in your new software. And since
end users are expert in computer and software they will understand and never
foguet that "special feature" and you wont have thousand of calls a day to
ask you "How can I print in Landscae ? I choose Landscape but it doesn't
work."
Anyway, have a good day telling your boss that he have to buy the next VS
.Net to HOPE to have things working correctly..

Steph.

"Steph." <st***@nomail.com> wrote in message
news:uL**************@TK2MSFTNGP11.phx.gbl...
Hi,
Is there a BUG in the printdialog ? When I create a PrintDialog ans
set the "DefaultPageSettings.Landscape" property to "false" and then display
the dialog, select "Landscape" and click OK, the value of the
"DefaultPageSettings.Landscape" is still false !!??
Code Exemple :
PrintDialog PDialog = new PrintDialog();
PDialog.PrinterSettings = new System.Drawing.Printing.PrinterSettings();
PDialog.PrinterSettings.DefaultPageSettings.Landsc ape=false;
PDialog.ShowDialog();
// The dialog show "Portrait" Selected, if you select "Landscape" and click
OK
// the value in the "DefaultPageSettings" is still Landscape=false !!??
MessageBox.Show(PDialog.PrinterSettings.DefaultPag eSettings.Landscape.ToString());

Any Bug in/con-firmation and solution to make it work will be appreciated

Thanks

Steph.

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004

[microsoft.public.dotnet.languages.csharp]
Nov 16 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.