TOC not visible in DOCX format

4 posts, 0 answers
  1. Sami
    Sami avatar
    3 posts
    Member since:
    Oct 2018

    Posted 19 Nov 2019 Link to this post

    Hello,

    I'm using Telerik.Reporting (13.2.19.1030) to programmably create a report book consisting of couple of reports. One of the reports contains toc and is set as TocReportSource and that report contains Toc section. I'm exporting the report book to pdf and docx. When exporting to docx the toc is not visible but when to pdf it is visible.

    There's no mention about not supporting toc here: https://docs.telerik.com/reporting/designing-reports-considerations-word

    Am I doing something wrong here?

                var contentsReport = new ContentsPageReport();
                contentsReport.DataSource = data;
                var contentsReportSource = new InstanceReportSource();
                contentsReportSource.ReportDocument = contentsReport;
                reportBook.TocReportSource = contentsReportSource;
                reportBook.TocPosition = ReportBookTocPosition.BeforeContent;

    .NET Framework 4.7.1

    DocumentFormat.OpenXml 2.9.1

    Telerik.Reporting 13.2.19.1030

     

     

    Br,

    Sami

  2. Neli
    Admin
    Neli avatar
    255 posts

    Posted 22 Nov 2019 Link to this post

    Hi Sami,

    We haven't experienced such issue so far. I made some tests but I was unable to replicate such outcome.

    For that reason, I will need the problematic application, in order to reproduce the behavior and give you further details. 

     

    Regards,


    Neli
    Progress Telerik

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Sami
    Sami avatar
    3 posts
    Member since:
    Oct 2018

    Posted 24 Nov 2019 in reply to Neli Link to this post

    Thanks for your reply, Neli.

    I'll try to figure out what am I doing wrong, if this is the case that it should work.

    I'll get back to you if I cant get it to work.

    Regards,

    Sami

  4. Sami
    Sami avatar
    3 posts
    Member since:
    Oct 2018

    Posted 25 Nov 2019 Link to this post

    Hello Neli,

    Still cant get it to work. I created a simpe test application that shows you the problem. When exporting to PDF the Toc is visible but when to DOCX it isn't visible. I sent you the test app from your support site.

    Regards,
    Sami

Back to Top