page breaks within the radeditor

6 posts, 1 answers
  1. diane
    diane avatar
    18 posts
    Member since:
    Aug 2014

    Posted 02 Nov Link to this post

    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?

  2. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 02 Nov Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. diane
    diane avatar
    18 posts
    Member since:
    Aug 2014

    Posted 02 Nov in reply to Rumen Link to this post

    Thanks!

  5. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 02 Nov Link to this post

    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.
  6. diane
    diane avatar
    18 posts
    Member since:
    Aug 2014

    Posted 02 Nov in reply to Rumen Link to this post

    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.

  7. Answer
    Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 04 Nov Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017