Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
955
Printing WebHtmlEditor Content
posted

Hello,

I am using 2018.1 CLR 4.5 WebHtmlEditor with IE 11. Does anyone know a way to print just the contents of the HTMLEditor control without printing the entire webpage?

I have a WebHtmlEditor within a WebSplitterPaine. The content of the editor is loaded dynamically from a database field. When using the print from the menu bar the entire web page is printing displaying the WebSplitter and all.

Any advice or suggesting are greatly appreciated. 

Parents
  • 10685
    Verified Answer
    Offline posted

    Hello, 

    Thank you for posting in our community! 

    In general, the browser knows how to render correctly the HTML Editor content. If you obtain the content prior to rendering in the browser, it will differ from what you would expect as an end result. Printing will require for the browser to render the HTML Editor first. If it is an option for you, it is possible to render the HTMLEditor only in a “print preview” page (separate popup browser window) and let your users print directly from there using the standard browser printing capabilities, so when printing a webpage only the required data will be printed.

    For example a quick illustration, navigate to one of our online samples like this one, enter some content in the editor and click the “Preview In Browser” button from the HTMLEditor’s Toolbar. A Print preview window will appear, with the HTMLEditor’s only content. You can access the browser's print options as well as more detailed print preview from the context menu after a right click on the page.

Reply Children