Declined
Last Updated: 16 Aug 2019 15:22 by ADMIN
Stephen
Created on: 12 Aug 2019 07:48
Category: RichTextEditor
Type: Feature Request
0
RichTextEditor in Flow Layout with Header

Dear Sir/Madam,

 

I have a docx document and want to display it in flow layoutmode. It works normally except it cannot show header at the beginning of the document and footer at the end of the document. Please help.

My code is similar as follows (Rte is the RadRichTextEditor control):

 

DocumentFormatProviderBase provider = new DocxFormatProvider();

Rte.SuspendLayout();

Rte.Document = provider.Import([Docx in byte array]);

Rte.RichTextBoxElement.BackColor = Color.White;

Telerik.WinControls.RichTextEditor.UI.DocumentWebLayoutPresenter presenter = (Telerik.WinControls.RichTextEditor.UI.DocumentWebLayoutPresenter)rte.RichTextBoxElement.ActiveEditorPresenter;

presenter.BackColor = Color.White;

presenter.Margin = new Padding(20);

Rte.ResumeLayout();

Rte.PerformLayout(); 

5 comments
ADMIN
Martin
Posted on: 16 Aug 2019 15:22
Hi Stephen,

We have already replied there. Please, note that each support thread has a response time assigned depending on the license it has been used when submitting it. Don't hesitate to write back to us if any additional questions arise.

Regards,
Martin
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Stephen
Posted on: 15 Aug 2019 01:24

Dear Martin,

 

As you saw my ticket (Ticket ID 1425008) there, please let me know if you have any progress there.

I have received no response for 3 days.

 

Thanks. 

ADMIN
Martin
Posted on: 14 Aug 2019 13:20
Hi Stephen,

As the portal is for features and bug reports and the case you are writing about is not still clear, I saw your message in the ticket portal and I suggest to continue the communication there.

Regards,
Martin
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Stephen
Posted on: 14 Aug 2019 06:25

Dear Martin,

 

I think I can accept the second option: insert a section before/after the main content of the document keeping the desired content.

 

In addition to header and footer, my document also has a table in the content.

The table is fit to the page width (each column is in x% of the width of the table and the sum of all columns is 100%).

However, if it is in Flow LayoutMode, it does not fit into the whole width of the control.

However, if I view the document in MS Word, it can do so.

 

Please help. The code is same as the original post.

ADMIN
Martin
Posted on: 14 Aug 2019 04:57
Hello Stephen,

In Flow layout mode, the document content is not divided into pages. Instead, the whole content is displayed as in RadRichTextEditor. Thus, this layout mode doesn't support header and footer preview by design. For more information about layout modes, you can check the Layout Modes help topic.

What I can suggest if you need to use headers and footers is to change the LayoutMode to Paged. Another option is to insert a section before/after the main content of the document keeping the desired content.

Regards,
Martin
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.