Click here to Skip to main content
15,912,932 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: What is Mock Version? Pin
Abhinav S19-Oct-10 22:17
Abhinav S19-Oct-10 22:17 
AnswerRe: What is Mock Version? Pin
T M Gray21-Oct-10 4:39
T M Gray21-Oct-10 4:39 
QuestionProgramming Problem Pin
rksreadero19-Oct-10 17:11
rksreadero19-Oct-10 17:11 
AnswerRe: Programming Problem Pin
Abhinav S19-Oct-10 22:20
Abhinav S19-Oct-10 22:20 
AnswerRe: Programming Problem Pin
DaveyM6919-Oct-10 22:20
professionalDaveyM6919-Oct-10 22:20 
AnswerRe: Programming Problem Pin
Pete O'Hanlon19-Oct-10 23:43
mvePete O'Hanlon19-Oct-10 23:43 
QuestionRSS reader code problem. Pin
rksreadero19-Oct-10 16:38
rksreadero19-Oct-10 16:38 
QuestionWord c# interop bookmark issue(s) Pin
jboyd11119-Oct-10 9:53
jboyd11119-Oct-10 9:53 
I have a winform app that writes a word document template to a database. I'd like to read this back in and insert text at cartain points in the document.

I've been reading the web and it looks like using bookmarks is the way to go. I'm stuck on setting bookmarks, however. My code is below:

object oNull = System.Reflection.Missing.Value;

           Word.Range start = para.Range;
           object oRng = start;

           string newText = "Bookmark1";
           Word_doc.Bookmarks.Add(newText, ref oRng);


when I run it the traceback shows:

"...Bad bookmark name."

This is at the line: "Word_doc.Bookmarks.Add(newText, ref oRng);"

2 questions then are:
1) How do I properly set a bookmark in a word doc using interop (automation)?
2) Is there another/better way to be able to insert a table at a certing location in a word doc?

Thanks in advance.

Jboyd
AnswerRe: Word c# interop bookmark issue(s) Pin
Maciej Los19-Oct-10 10:30
mveMaciej Los19-Oct-10 10:30 
QuestionLearning Entity Framework [modified] Pin
Luca Leonardo Scorcia18-Oct-10 9:30
professionalLuca Leonardo Scorcia18-Oct-10 9:30 
QuestionWill GetStream method always return same stream ? [modified] Pin
rahul.kulshreshtha15-Oct-10 21:25
rahul.kulshreshtha15-Oct-10 21:25 
AnswerRe: Will GetStream method always return same stream ? Pin
rahul.kulshreshtha16-Oct-10 0:57
rahul.kulshreshtha16-Oct-10 0:57 
QuestionTyped DataSet Grid View Pin
ganesh_IT14-Oct-10 23:10
ganesh_IT14-Oct-10 23:10 
AnswerRe: Typed DataSet Grid View Pin
Abhinav S15-Oct-10 3:24
Abhinav S15-Oct-10 3:24 
QuestionAdd New Row dynamically to Gridview Pin
SatyaKeerthi1514-Oct-10 22:51
SatyaKeerthi1514-Oct-10 22:51 
AnswerRe: Add New Row dynamically to Gridview Pin
Ravi Mori14-Oct-10 23:00
Ravi Mori14-Oct-10 23:00 
GeneralRe: Add New Row dynamically to Gridview Pin
SatyaKeerthi1515-Oct-10 0:07
SatyaKeerthi1515-Oct-10 0:07 
GeneralRe: Add New Row dynamically to Gridview Pin
Ravi Mori15-Oct-10 0:27
Ravi Mori15-Oct-10 0:27 
QuestionRetrive Data from Data Source Pin
ganesh_IT14-Oct-10 20:07
ganesh_IT14-Oct-10 20:07 
AnswerRe: Retrive Data from Data Source Pin
Ravi Mori14-Oct-10 20:54
Ravi Mori14-Oct-10 20:54 
Question.NET Framework Spell Checker Pin
MWRivera14-Oct-10 9:45
MWRivera14-Oct-10 9:45 
AnswerRe: .NET Framework Spell Checker Pin
Luc Pattyn14-Oct-10 10:04
sitebuilderLuc Pattyn14-Oct-10 10:04 
GeneralRe: .NET Framework Spell Checker Pin
MWRivera14-Oct-10 10:13
MWRivera14-Oct-10 10:13 
GeneralRe: .NET Framework Spell Checker Pin
Luc Pattyn14-Oct-10 10:31
sitebuilderLuc Pattyn14-Oct-10 10:31 
GeneralRe: .NET Framework Spell Checker Pin
MWRivera14-Oct-10 10:33
MWRivera14-Oct-10 10:33 

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.