views:

38

answers:

1

I'm writing a Word template in Visual Studio 2010, .NET Framework 4.0 and for the life of me I can't get a drop down in the ribbon control to populate. When I step through the code it looks like it's working fine, but there's nothing in the drop down. Here's my code:

'The comments property has a value of "100-00001,100-99999,110-99999"
Dim Refs() As String = Split(GetDocumentProperty("Comments"), ",")

For xx As Integer = 0 To Refs.Count - 1
    Dim RDDI As RibbonDropDownItem = Me.Factory.CreateRibbonDropDownItem()
    RDDI.Label = Refs(xx)
    RDDI.Tag = Refs(xx)
    ReferenceDD.Items.Add(RDDI)
Next

Any ideas? I'm bald enough without pulling my own hair out of my head.

Thanks, Jeremy

A: 

I am having the same problem. I only tend to be having the problem when I have a large number of rows though. Any help on this would be greatly appreciated.