Sign In  Sign Up Live-Chat

Dynamic ComboBox

Last post 05-21-2008, 6:28 PM by lukeyoyo. 16 replies.
Page 2 of 2 (17 items)   < Previous 1 2
Sort Posts: Previous Next
  •  05-21-2008, 10:20 AM 128063 in reply to 127394

    Re: Dynamic ComboBox

    Adding items to an empty combo seems to be working. Adding export values is kind of working, but there's a small issue. The AddListItem method describes the second parameter as:

    exportName: A string array denoting a new list item with Export Value, i.e. (Item Label, Export Value).

    This would seem to indicate that item label should be be the first item item in the array and the export value should be second. However, the result is reversed.

    Dim MyEditor As New FormEditor("..\SourceFile1.pdf", "..\Output.pdf")

    Dim NewItem() As String = {"Item1", "Export1"}

    MyEditor.AddListItem("cboDistofService", NewItem)

    MyEditor.Save()

    When I execute the above code, the text "Export1" is displayed in the dropdown list, and the text "Item1" is set as the export value. I assume this is backwards.

    Thanks

     

     
  •  05-21-2008, 6:28 PM 128145 in reply to 128063

    Re: Dynamic ComboBox

    Dear Todd2,

    Yes, you are right. Sorry for the mistake and thanks for your reminding. Definitely, the first element should be the "export value", and the second "item label".

    Thanks.


    Luke Fu
    Product Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
Page 2 of 2 (17 items)   < Previous 1 2
View as RSS news feed in XML