473,386 Members | 1,803 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Word C# accessor methods (get_*, set_*)

Is anyone able to give me a high level overview of when to expect and
use accessor methods in the Word object model?

I am trying to set, for example, the "Different Odd & Even Page
Header" property in a Word doc.

I am trying ...
ActiveDocument.PageSetup.OddAndEvenPagesHeaderFoot er = 1;

.... but get error msg
System.ArgumentException: The parameter is incorrect,
at Microsoft.Office.Interop.Word.PageSetup.set_OddAnd EvenPagesHeaderFooter
(Int32 prop) at <...goes on to provide code location...>

Should I be using an accessor method in this code, or am I just
missing something ... if so, is there an example available?

Thanks for any assistance,
Rob
Nov 15 '05 #1
0 1131

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Moshe Plotkin | last post by:
B"H Sometimes when I import a COM Object written in VB with public Variables it requires me to use the get_ set_ functions instead of alowing me to use them ans Propeties. An suggestions? ...
0
by: Moshe Plotkin | last post by:
B"H Sometimes when I import a COM Object written in VB with public Variables it requires me to use the get_ set_ functions instead of alowing me to use them ans Propeties. An suggestions? ...
0
by: Moshe Plotkin | last post by:
B"H Sometimes when I import a COM Object written in VB with public Variables it requires me to use the get_ set_ functions instead of alowing me to use them ans Propeties. An suggestions? ...
0
by: Moshe Plotkin | last post by:
B"H Sometimes when I import a COM Object written in VB with public Variables it requires me to use the get_ set_ functions instead of alowing me to use them ans Propeties. An suggestions? ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.