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

Could the author be wrong?

P: n/a
I found the following in a book:

With PageSetupdialog1
.PageSettings=PD1.DefaultPageSettings
if .ShowDialog() = DialogResultOK then _
PD1.DefaultPageSettings= .PageSettings
end with

Seems to me that PageSetupDialog1.PageSettings
and PD1.DefaultPageSettings reference the same object
so the statement
PD1.DefaultPageSettings = .PageSettings
is not needed.

No big deal here except it may point to a misunderstanding on my part.

Can you confirm that it is not needed or tell me why it is?

Thank
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
" Just Me" <gr****@a-znet.com> schrieb:
With PageSetupdialog1
.PageSettings=PD1.DefaultPageSettings
if .ShowDialog() = DialogResultOK then _
PD1.DefaultPageSettings= .PageSettings
end with

Seems to me that PageSetupDialog1.PageSettings
and PD1.DefaultPageSettings reference the same object
so the statement
PD1.DefaultPageSettings = .PageSettings
is not needed.


'DefaultPageSettings' gets or sets page settings that are used as defaults
for all pages to be printed. These settings can be changed in
'PageSetupdialog1'. If the page setup dialog doesn't create a new
'PageSettings' object it's not necessary to assign it to the document's
'DefaultPageSettings' property.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2

P: n/a
>
'DefaultPageSettings' gets or sets page settings that are used as defaults
for all pages to be printed.
Thanks,
That is what PD.DefaultPageSettings is used for.

I haven't been able, by reading Help, to determine what
PD.PrinterSettings.DefaultPageSettings

is used for!

Thanks again

These settings can be changed in 'PageSetupdialog1'. If the page setup
dialog doesn't create a new 'PageSettings' object it's not necessary to
assign it to the document's 'DefaultPageSettings' property.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.