Click here to Skip to main content
16,006,709 members
Home / Discussions / C#
   

C#

 
AnswerRe: Matrix Addition Pin
Keshav V. Kamat22-Mar-07 19:58
Keshav V. Kamat22-Mar-07 19:58 
GeneralRe: Matrix Addition Pin
chitra4sat22-Mar-07 20:44
chitra4sat22-Mar-07 20:44 
GeneralRe: Matrix Addition Pin
Keshav V. Kamat22-Mar-07 20:54
Keshav V. Kamat22-Mar-07 20:54 
GeneralRe: Matrix Addition Pin
chitra4sat22-Mar-07 21:01
chitra4sat22-Mar-07 21:01 
GeneralRe: Matrix Addition Pin
Keshav V. Kamat22-Mar-07 21:04
Keshav V. Kamat22-Mar-07 21:04 
QuestionPartial image loading Pin
simon.hearne22-Mar-07 13:37
simon.hearne22-Mar-07 13:37 
AnswerRe: Partial image loading Pin
Guffa22-Mar-07 14:57
Guffa22-Mar-07 14:57 
QuestionWord Interop Codeblock. Working with Bookmarks/templates Pin
joon vh.22-Mar-07 12:31
joon vh.22-Mar-07 12:31 
I'm experimenting with opening a word document from a template and then changing some values. Have found some CP articles and other sources, but most of them are outdated (using interop 9 or 10 instead of 11). The problem lies here:

            ApplicationClass oWordApp = new ApplicationClass();<br />
<br />
            object missing = System.Reflection.Missing.Value;<br />
            object oTemplate = "RappelTemplate.dot";<br />
            Document oWordDoc = oWordApp.Documents.Add(<br />
                ref oTemplate,<br />
                ref missing, <br />
                ref missing, <br />
                ref missing);<br />
<br />
            object oBookMark = "bedrag";<br />
            oWordDoc.Bookmarks[ref oBookMark].Range.Text = "100";<br />
<br />
            oWordDoc.Activate();<br />
            oWordApp.Visible = true;


this line gives compile errors, because ref is an invalid expression term, and instead of oBookMark, "]" is expected. Nevertheless this is the only solution I can think of. It has to be ref, and it has to be oBookMark...

Any hints?



Visual Studio can't evaluate this, can you?
public object moo<br />
        {<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}

QuestionCapturing URL from Browser Pin
Mike Hankey22-Mar-07 12:05
mveMike Hankey22-Mar-07 12:05 
AnswerRe: Capturing URL from Browser Pin
N a v a n e e t h22-Mar-07 18:33
N a v a n e e t h22-Mar-07 18:33 
GeneralRe: Capturing URL from Browser Pin
Mike Hankey22-Mar-07 19:09
mveMike Hankey22-Mar-07 19:09 
QuestionApplication disappearing randomly Pin
Emad Attia22-Mar-07 10:55
Emad Attia22-Mar-07 10:55 
AnswerRe: Application disappearing randomly Pin
Mark Greenwood22-Mar-07 13:50
Mark Greenwood22-Mar-07 13:50 
GeneralRe: Application disappearing randomly Pin
Emad Attia23-Mar-07 4:39
Emad Attia23-Mar-07 4:39 
QuestionWeb Refrence Question? Pin
Khoramdin22-Mar-07 10:21
Khoramdin22-Mar-07 10:21 
AnswerRe: Web Refrence Question? Pin
Christian Graus22-Mar-07 10:38
protectorChristian Graus22-Mar-07 10:38 
QuestionDistributed Processing Pin
shatterstar645722-Mar-07 10:03
shatterstar645722-Mar-07 10:03 
AnswerRe: Distributed Processing Pin
Christian Graus22-Mar-07 10:38
protectorChristian Graus22-Mar-07 10:38 
AnswerRe: Distributed Processing Pin
sherifffruitfly22-Mar-07 17:07
sherifffruitfly22-Mar-07 17:07 
AnswerRe: Distributed Processing Pin
pbraun22-Mar-07 17:19
pbraun22-Mar-07 17:19 
QuestionHow to get the Login User Name Pin
Nkuttynasi22-Mar-07 8:37
Nkuttynasi22-Mar-07 8:37 
AnswerRe: How to get the Login User Name Pin
Ravi Bhavnani22-Mar-07 9:13
professionalRavi Bhavnani22-Mar-07 9:13 
GeneralRe: How to get the Login User Name Pin
Nkuttynasi23-Mar-07 5:46
Nkuttynasi23-Mar-07 5:46 
QuestionSource Control / Collaboration Pin
nicsys22-Mar-07 8:19
nicsys22-Mar-07 8:19 
AnswerRe: Source Control / Collaboration Pin
Jimmanuel22-Mar-07 9:55
Jimmanuel22-Mar-07 9:55 

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.