Hi,
In the code I used if I insert a citation all of the bibliography will be inserted too ,now my problem is the cursor (looks like small letter L that blinks " l " ) is next to bibliography and I have lots of sources save, so everytime I insert a text I will scroll it up again because the bibliography sould be at the end, so I want that if I insert a citation the cursor should be next to the citaiton I inserted , looks like this " bla bla bla(citaiton1)l " that small letter L next to (citation1) that blinks is that cursor,I want it like that cause like what I said above after I insert a citaiton all of the bibliography will be inserted too.
by the way here's the code I used
private void InsertCitation_Click(object sender, RibbonControlEventArgs e) { Application wordApplication = Globals.ThisAddIn.Application; wordApplication.Selection.Fields.Add(wordApplication.Selection.Range, ref paramWdFieldTypeCitation, dropDown1.SelectedItem.Label/*ref paramBiblioSourceTag*/, ref paramMissing); wordApplication.Selection.EndKey(ref paramWdUnits, ref paramWdMovementType); wordApplication.Selection.InsertBreak(WdBreakType.wdLineBreak); bool isFoundFieldBibliography = false; foreach (Field field in wordApplication.ActiveDocument.Range().Fields) { if (field.Type == WdFieldType.wdFieldBibliography) { isFoundFieldBibliography = true; field.Update(); } } if (!isFoundFieldBibliography) { wordApplication.Selection.Fields.Add(wordApplication.Selection.Range, ref paramWdFieldTypeBiblio, ref paramMissing, ref paramMissing); } }
Please Help me
Thank you in advance
More Power
God Bless you