问题
I have a Selection and would like to use it to insert a citation. Currently, I insert an index mark using
Selection sel;
:
string cmd = "Lincoln, Abraham";
document.Indexes.MarkEntry(sel.Range, Entry: cmd);
I'm thinking that inserting a citation would be similar, but am not seeing the equivalent of Document.InsertCitation()
or Document.Bibliography.InsertCitation()
?
回答1:
Try TableOfAuthorities ?? That works in VBA
Document.TablesOfAuthorities.MarkCitation _
Range:=Selection.Range, ShortCitation:=Selection.Range.Text, _
LongCitation:="Michaels v. McVinney", Category:=1
来源:https://stackoverflow.com/questions/51845932/word-interop-how-to-insert-a-citation-field