This is a migrated thread and some comments may be shown as answers.

TOC not visible in DOCX format

3 Answers 127 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sami
Top achievements
Rank 1
Sami asked on 19 Nov 2019, 12:51 PM

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

3 Answers, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 22 Nov 2019, 11:02 AM

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
0
Sami
Top achievements
Rank 1
answered on 25 Nov 2019, 05:48 AM

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

0
Sami
Top achievements
Rank 1
answered on 25 Nov 2019, 10:32 AM

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

Tags
General Discussions
Asked by
Sami
Top achievements
Rank 1
Answers by
Neli
Telerik team
Sami
Top achievements
Rank 1
Share this question
or