2011-05-31 127 views

回答

3
void MoveToParagraph(Microsoft.Office.Interop.Word.Document d, int number) 
{ 
    Microsoft.Office.Interop.Word.Range r = d.Paragraphs[number].Range; 
    object dir = Microsoft.Office.Interop.Word.WdCollapseDirection.wdCollapseStart; 

    r.Collapse(ref dir); 
    r.Select(); 
} 
+0

非常感謝:它工作出色... – Saravanan 2011-05-31 12:42:56

相關問題