"Printer-friendly" control

Posted by Community Admin on 03-Aug-2018 09:33

"Printer-friendly" control

All Replies

Posted by Community Admin on 06-Apr-2011 00:00

Hi,

I'm trying to find a simple way to code a "Print this page" button.
Functionally, it would display a version of a given page without tne template, only the content.
I have two questions about this :

1 - How do i access to the page content (without template) programmatically?
2 - Is it too much to create a control for that? Would there be a simpler "client side" way of doing this?

Thank you,
F.

Posted by Community Admin on 06-Apr-2011 00:00

Hello F,

You can try using jquery print plugin.

plugins.jquery.com/.../printElement

The page is represented and build by controls. Each control is a presentation layer.

Another option is using WebClient to get byte array and return the current page HTML.

Regards,
Ivan Dimitrov
the Telerik team


Posted by Community Admin on 07-Apr-2011 00:00

Dear Ivan

Maybe this could be an idea for a user control

Drag a 'print this page' widget to the page, specify an img url and/or text) and pick which parts of the page should be printed. This sure would make the live of many of us easy - And sure would be a nice feature to see in Q2.

If you like the idea PITS-it and we can vote :-)

Markus

Posted by Community Admin on 08-Apr-2011 00:00

Hi Markus,

I logged your feature request and we are going to review it on our next planning meeting. Thanks for your suggestions.

Best wishes,
Ivan Dimitrov
the Telerik team


Posted by Community Admin on 06-Jul-2011 00:00

Something I did in 3.7 was create an alternate theme called "Print" and changed over to that theme whenever I used the query string "print".  I did this using a custom page class inheriting from the Sitefinity page class.  However, I can't figure out how to do something similar in this version.

Posted by Community Admin on 07-Jul-2011 00:00

Hello Ryan ,

In Sitefinity 4.1 SP2 you can add a code behind to each page ( which was not possible in 3.x edition) from page properties. You can create a base class that inherits from System.Web.UI.Page and implement your logic there.

Regards,
Ivan Dimitrov
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed