Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
224
How to Navigate back to TOC Home Page to begin further Navigation!!!!!!!!!!!!!!
posted

 

            I have used  Infragistics.Documents.Report.TOC.ITOC to add Table of Contents(TOC) in my custom document report for Navigation to any page while the document has more number of pages.

         yeah its working fine and while navigation to the destined page that we look for,after that i need to go back to the Home Page where we navigated from.

         This is the problem,How can i navigate back to the page where we from.(i.e)Go Back to the Home Page of TOC Content,for this I need a Home link in every page header of section pages.When i click,that ll navigate back to TOC Home page.

            Any Immediate Solution will have Special Appreciations!!!!!!!!!

 

Parents
No Data
Reply
  • 37774
    Verified Answer
    posted

    You could do this through the Hyperlink class, which you apply to an IText element in the header.  The first thing that you would need to do is add a target for the link in the table of contents area.  For example, if you have the text "Table of Contents" for your TOC area, you would have:

    Infragistics.Documents.Report.Text.IText text = section.AddText();
    text.AddContent("Table of Contents");
    text.AddTarget("TOC");

    Now you need to add a hyperlink that will actually bring the user back to this area:

    Infragistics.Documents.Report.Section.ISectionHeader header = section.AddHeader();
    header.Height = 50;
    header.Repeat = true;
    text = header.AddText(10, 20);

    Infragistics.Documents.Report.Text.Hyperlink link = new Infragistics.Documents.Report.Text.Hyperlink("#TOC");
    text.AddContent("Table of Contents", link);

    -Matt

Children
No Data