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

page breaks within the radeditor

5 Answers 129 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
diane
Top achievements
Rank 1
diane asked on 02 Nov 2016, 02:44 PM

In an web form 2010 application that I am currently working with, the radeditor is being used. Right now I have one letter being generated at a time. However I want to place 2 to 3 letters within the same varchar(max) column within a sql server database. I would like each letter to print on separate pages.

I have tried html like the following:

<html><body><p>test1</p><p style="page-break-after:always;"></p><p>test2</p><p style="page-break-after:always;"></p><p>test3</p><p style="page-break-after:always;"></p></body></html>

and found everything still prints on the same page.

Thus is there anything within the radeditor that will make the page breaks actually work?

5 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 02 Nov 2016, 03:37 PM
Hi,

I tested the page-break-after: always style setting in the default editor's demo and verified that it works as expected with the Print command. For your convenience I have attached the produced file.


Regards,
Rumen
Telerik by Progress
Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
0
diane
Top achievements
Rank 1
answered on 02 Nov 2016, 03:57 PM

Thanks!

0
Rumen
Telerik team
answered on 02 Nov 2016, 04:49 PM
You are welcome!

I just wanted to attach the mentioned file in my earlier reply.

Regards,
Rumen
Telerik by Progress
Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
0
diane
Top achievements
Rank 1
answered on 02 Nov 2016, 06:15 PM

The file you have is test.oxps after it as been extracted from the test.zip file. I converted the test,oxps file to a pdf file and I see that separate pages were generated.

Question: The html that you used, was it what I placed on the original question? If not, would you show me the html you used so I can see if your html is somehow different than mine.

I did not use the following:

@media print {
    footer {page-break-after: always;}
}

and I thought you might have.

0
Accepted
Rumen
Telerik team
answered on 04 Nov 2016, 02:58 PM
Hi,

Here is a video demo of what I tried: http://screencast.com/t/cACPNjKc.

Best regards,
Rumen
Telerik by Progress
Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
Tags
General Discussions
Asked by
diane
Top achievements
Rank 1
Answers by
Rumen
Telerik team
diane
Top achievements
Rank 1
Share this question
or