none
How to create CrossReference of Figures or Tables using C# [InsertCrossReference Function] RRS feed

  • Question

  • Hi,

    I am using office 2010,
    How to create CrossReference of Figures or Tables using C# [InsertCrossReference Function
    In InsertCrossReference function WdReferenceType type not showing Figure or Table collection

    Thanks

    Wednesday, November 16, 2016 12:12 PM

All replies

  • Hi,

    Figure and Table are in the WdCaptionLabelID enumeration:

    wdCaptionFigure        Figure.

    wdCaptionTable        Table.

    wdCaptionEquation        Equation.

     

    Please see Range.InsertCrossReference method:

    ReferenceType

    Type: System.Object

    Required Object. The type of item for which a cross-reference is to be inserted. Can be any WdReferenceType or WdCaptionLabelID constant or a user defined caption label.

    Regards,

    Celeste


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, November 17, 2016 6:41 AM
    Moderator