This is a migrated thread and some comments may be shown as answers.
Print Editor Content in A4 size format
7 Answers 54 Views
This is a migrated thread and some comments may be shown as answers.
Testing
Top achievements
Rank 1
Testing asked on 12 Feb 2014, 12:50 PM
Hi,

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

thank you.

7 Answers, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 14 Feb 2014, 03:25 PM
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.
0
Testing
Top achievements
Rank 1
answered on 16 Feb 2014, 04:29 AM
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
0
Testing
Top achievements
Rank 1
answered on 16 Feb 2014, 04:41 AM
Hey their problem occur while upload attach file..please this attchment.
0
Accepted
Ianko
Telerik team
answered on 18 Feb 2014, 05:06 AM
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.
0
Testing
Top achievements
Rank 1
answered on 18 Feb 2014, 06:46 AM
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.
0
Ianko
Telerik team
answered on 20 Feb 2014, 09:36 AM
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.
0
Hitesh
Top achievements
Rank 1
answered on 19 Aug 2017, 02:27 AM
ઞડડજઞ
Asked by
Testing
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Testing
Top achievements
Rank 1
Hitesh
Top achievements
Rank 1
Share this question
or