Click here to Skip to main content
15,913,587 members
Home / Discussions / C#
   

C#

 
GeneralRe: Custom Control and GUI Designer Pin
Heath Stewart7-Sep-04 7:48
protectorHeath Stewart7-Sep-04 7:48 
AnswerRe: How does one access the AutoIncrementCurrent Value Pin
Jo Develper7-Sep-04 5:01
Jo Develper7-Sep-04 5:01 
QuestionAllowing access to an internal ArrayList through IEnumerator? Pin
matthias s.7-Sep-04 4:30
matthias s.7-Sep-04 4:30 
AnswerRe: Allowing access to an internal ArrayList through IEnumerator? Pin
sreejith ss nair7-Sep-04 5:09
sreejith ss nair7-Sep-04 5:09 
QuestionHow does one access the AutoIncrementCurrent Value Pin
Anonymous7-Sep-04 4:26
Anonymous7-Sep-04 4:26 
GeneralHi! I need help on custom user control Pin
Member 13210317-Sep-04 4:25
Member 13210317-Sep-04 4:25 
GeneralRe: Hi! I need help on custom user control Pin
Heath Stewart7-Sep-04 7:42
protectorHeath Stewart7-Sep-04 7:42 
GeneralWord 2002 interop Pin
rommie27-Sep-04 4:03
rommie27-Sep-04 4:03 
I need some help with updating bookmarks in a Word 2002 document using a C# app. I'm new to all of this so if I haven't provided you enough info just let me know.


private void BookMarkReplaceRange(string bookmarkName, string newText)

{
object missingValue = Type.Missing;
object oBookmarkName = bookmarkName;
Word.Range rng = oDoc.Bookmarks.get_Item (refBookmarkName).Range;
rng.Text = newText;
object oRng = rng;
oDoc.Bookmarks.Add(bookmarkName, ref oRng);
}


//calling it with:

BookMarkReplaceRange("ptname","txtLName");

The code builds fine and when I run it it will run fine until it starts running the range code. When the document is displayed it has "bookmark not defined" in place of where the bookmark text should be. I'm getting an error at
Word.Range rng = oDoc.Bookmarks.get_Item(refoBookmarkName).Range;
object reference not set to an instance of object.
GeneralRe: Word 2002 interop Pin
mav.northwind7-Sep-04 4:25
mav.northwind7-Sep-04 4:25 
GeneralRe: Word 2002 interop Pin
rommie28-Sep-04 4:45
rommie28-Sep-04 4:45 
Questionhow to use mask in c# Pin
sssa20007-Sep-04 3:59
sssa20007-Sep-04 3:59 
AnswerRe: how to use mask in c# Pin
Christian Graus7-Sep-04 12:15
protectorChristian Graus7-Sep-04 12:15 
GeneralRe: how to use mask in c# Pin
sssa20007-Sep-04 20:03
sssa20007-Sep-04 20:03 
GeneralCalendar/ Grid suggestions Pin
Michael P Butler7-Sep-04 3:52
Michael P Butler7-Sep-04 3:52 
GeneralSaving Stream object Pin
Den2Fly7-Sep-04 3:42
Den2Fly7-Sep-04 3:42 
GeneralRe: Saving Stream object Pin
matthias s.7-Sep-04 4:35
matthias s.7-Sep-04 4:35 
GeneralRe: Saving Stream object Pin
Heath Stewart7-Sep-04 7:08
protectorHeath Stewart7-Sep-04 7:08 
QuestionHow to Zip/UnZip files thru C# code Pin
nacp7-Sep-04 2:02
nacp7-Sep-04 2:02 
AnswerRe: How to Zip/UnZip files thru C# code Pin
Philip Fitzsimons7-Sep-04 2:36
Philip Fitzsimons7-Sep-04 2:36 
GeneralRe: How to Zip/UnZip files thru C# code Pin
nacp7-Sep-04 21:49
nacp7-Sep-04 21:49 
GeneralRe: How to Zip/UnZip files thru C# code Pin
nacp7-Sep-04 21:51
nacp7-Sep-04 21:51 
AnswerRe: How to Zip/UnZip files thru C# code Pin
Steve Maier7-Sep-04 4:18
professionalSteve Maier7-Sep-04 4:18 
GeneralClickety Pin
Heath Stewart7-Sep-04 7:03
protectorHeath Stewart7-Sep-04 7:03 
GeneralRe: Clickety Pin
Steve Maier7-Sep-04 7:10
professionalSteve Maier7-Sep-04 7:10 
GeneralDMX protocol Pin
Alicia Visser7-Sep-04 1:51
Alicia Visser7-Sep-04 1:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.