This is a migrated thread and some comments may be shown as answers.

Using @media print

1 Answer 53 Views
ClientExportManager
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 21 Mar 2015, 12:01 AM
Hi.

I am printing a div with a radhtmlchart and a couple radgrids in it and it works a treat. (Looking forward to the page break feature next release though!!)

I need to be able to have a hidden image at the top and bottom of this div that only displays when I export to PDF. I've tried to put them in display:none divs and use  @media print {
            .printOnly {
                display: block;
            }
        }

But this doesn't work. I assume because the PDF export isn't actually a print operation. Is there another way I could do this?

Thanks for your help.
Chris 

1 Answer, 1 is accepted

Sort by
0
Peter Filipov
Telerik team
answered on 24 Mar 2015, 12:14 PM
Hello Chris,

During the export the following class is added to the exported area - "k-pdf-export". You could use it for your case.

Regards,
Peter Filipov
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
ClientExportManager
Asked by
Chris
Top achievements
Rank 1
Answers by
Peter Filipov
Telerik team
Share this question
or