473,511 Members | 15,364 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Could the author be wrong?

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
2 871
" 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
>
'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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
6906
by: Jane Doe | last post by:
Hi I took a quick look in the archives, but didn't find an answer to this one. I'd like to display a list of HTML files in a directory, showing the author's name between brackets after the...
64
3211
by: Chris Rodriguez | last post by:
after creating a couple of mediocre sites and talking too much about them, i've been overwhelmed w/ requests for new sites & site make-overs. i have a full-time job and i don't have the time or...
12
7143
by: Shawn Lindsay | last post by:
Hi. I'm trying to write a plugin for some blogging software (blosxom), and I wanted to make use of the <au> aka <author> tag. Apparently that element is in html 3.x, but not in the specs for...
6
1843
by: Stan Brown | last post by:
I want these to be in monospace, but monospace fonts are typically bigger looking than proportional fonts so I want to reduce the font size a bit. This leads me as an author to write kbd, samp {...
3
1580
by: MarcJessome | last post by:
Hi, I was wondering if someone could help me through learning C++. I've tried learning before, but I find I would work better if I had someone that could help explain a few things to me. Im using...
1
4450
by: Sanju | last post by:
Hi.. I have working on Windows XP Operating System.Installed J2sdk 1.4.07 and installed IBM DB2 UDB version 8.1 Then i got the following error.. The procedure entry point SQLPrepareW@12...
3
3314
by: tom | last post by:
I'm trying to read in image data using the filesystemobject. I am able to read the comments field for all file types it seems, except the ones I want, .gif .jpg and .bmp. Is it possible to do...
2
2929
by: moi | last post by:
Hello, i have a Asp.net V2 login page with a password to enter. In some case, a user could forget and tell IE to save its password : How to prevent it ? Is there a way to disable it ? to block...
3
1152
by: segue | last post by:
I'm getting this error when trying to access an aspx/asp.net page from my laptop. I've used IIS and asp.NET many times. Could this be related to working from a wireless connection. I can see...
3
2524
by: news.microsoft.com | last post by:
Who knows what it means when a Windows XP Pro SP2 produces a transient error window from aspnet_state.exe saying "instruction at reference to memory at . memory could not be read." every time it...
0
7242
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7353
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7075
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7508
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5063
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3222
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
781
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
446
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.