Print Editor Content in A4 size format

8 posts, 1 answers
  1. Testing
    Testing avatar
    31 posts
    Member since:
    Nov 2013

    Posted 12 Feb 2014 Link to this post

    Hi,

     How to  print editor content (Text) in A4 format.

    thank you.
  2. Ianko
    Admin
    Ianko avatar
    1898 posts

    Posted 14 Feb 2014 Link to this post

    Hello Ganesh,

    The printing functionality comes from the browser. The RadEditor control provides only a suitable tool to invoke it. I would like to point out that this control is designed to be an XHTML editor and the functionality to print HTML document with certain paper size is not a matter that could be handled due to design matters. Note that the printing logic comes from the browser you can also investigate the native browser's print button and observe the same result.

    HTML documents are intended to be rendered (drawn or printed) on browser, where the format of the area is calculated via the screen resolution, which is not related to the paper size standards. 

    For example MS Word is a desktop rich text editor, which can process text with formatting specifically to the set paper size and such feature is a required for such product. In the web environment there is no suitable approach to limit an HTML page to a certain paper size A4 format. Note that there is no suitable size option for an HTML document that could let the user to print it without breaking its layout. This is so because the printer client makes everything possible to fit the provided content. 

    Note also that the rich text editors are capable to control Page margins, footers, headers, page breaks etc., they are also vital for the set paper size and the text formatting, although such definitions are not suitable for the HTML documents and there is no technological reason for such to exist.

    Regards,
    Ianko
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
  3. Testing
    Testing avatar
    31 posts
    Member since:
    Nov 2013

    Posted 15 Feb 2014 in reply to Ianko Link to this post

    Hello Lanko,
    Thanks for you responce.. Actually I am facing one problem, I am using editor for creating template for printing purpose and this whole operation perform by user..user don't have any knowledge of HTML, user just drag and drop some item and also use editor tool for design.
    I set editor width 100% for responsive purpose and editor will be expand or collapse depending size of monitor, now user design their template whatever size of editor.. after completing design now user click on print button of the editor but print is not generated properly..
    please check the attachment files and suggest any solution  for this problem
    thank you
  4. Testing
    Testing avatar
    31 posts
    Member since:
    Nov 2013

    Posted 15 Feb 2014 in reply to Testing Link to this post

    Hey their problem occur while upload attach file..please this attchment.
  5. Answer
    Ianko
    Admin
    Ianko avatar
    1898 posts

    Posted 17 Feb 2014 Link to this post

    Hello Ganesh,

    As mentioned, the HTML documents does not have the availability to control such matters like alignment, paper size, paper margins, footer, header etc. Due to that I am unable to provide an approach with which such matter could be handled.

    Note that if you are aware of possible solutions for how to fit an HTML document in a A4 paper size, so that it could be printed properly, you can share it, so that I could assist you on integrating it with the RadEditor control. I would also suggest you trying to use the native browser print feature and examine the results from a plain HTML document.

    Regards,
    Ianko
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
  6. Testing
    Testing avatar
    31 posts
    Member since:
    Nov 2013

    Posted 18 Feb 2014 in reply to Ianko Link to this post

    Hello Lanko,
    Thanks for this information..I want to ask one more question,
    How to change the width of IFrame tag that present in editor also I want place it in center of editor and perform whole this operation on client side.
    Please provide code for this operation.

    Thank you.
  7. Ianko
    Admin
    Ianko avatar
    1898 posts

    Posted 20 Feb 2014 Link to this post

    Hi Ganesh,

    You can get the iframe element with the get_contentAreaElement() method and apply further the desired modifications. I can only assume why you should need to resize or reposition the iframe, please let me know if there is a possible problem with the layout of the editor.

    Regards,
    Ianko
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
  8. Hitesh
    Hitesh avatar
    1 posts
    Member since:
    Aug 2017

    Posted 18 Aug 2017 Link to this post

    ઞડડજઞ
Back to Top