-
1. Re: Printing content of a modal Panel
nbelaevski Feb 16, 2009 3:49 PM (in response to shadukan)Hello,
You can try this code snippet:<style type="text/css"> @media print { body > * { display: none; } body > .rich-modalpanel { display: block; } .rich-mpnl_panel, .rich-mpnl_panel > div { position: static !important; } .rich-mpnl-mask-div, .rich-mpnl-shadow { display: none !important; } } </style>
Note: it won't work in IE6. -
2. Re: Printing content of a modal Panel
shadukan Feb 17, 2009 4:14 AM (in response to shadukan)Hi,
thanks for the reply,i have already done what you suggested..i was lacking the position : static.Still the problem remains now because the content inside the modal is more than one page long...so when i print it seems that it can't
understand that there are more than 1 page to print..i tried inserting page breaks but still have no luck with it.
Thanks in advance for any suggestion
regards
Nick -
3. Re: Printing content of a modal Panel
nbelaevski Feb 17, 2009 10:29 AM (in response to shadukan)<style type="text/css"> @media print { body > * { display: none; } body > .rich-modalpanel { display: block; } .rich-mpnl_panel, .rich-mpnl_panel > div { position: static !important; } .rich-mpnl-mask-div, .rich-mpnl-shadow { display: none !important; } .rich-mp-content { overflow: visible !important; width: auto !important; height: auto !important; } } </style>
-
4. Re: Printing content of a modal Panel
shadukan Feb 18, 2009 2:44 AM (in response to shadukan)Thanks for the reply.Problem solved.What i was missing was the last css
class definition you gave me.The rest i have already tried.I must inform the
rest of the community that it also works for IE7.Haven't tried in Opera or Safari.
best regards
Nick -
5. Re: Printing content of a modal Panel
nbelaevski Feb 18, 2009 8:56 AM (in response to shadukan)"shadukan" wrote:
Thanks for the reply.Problem solved.What i was missing was the last css
class definition you gave me.The rest i have already tried.I must inform the
rest of the community that it also works for IE7.Haven't tried in Opera or Safari.
best regards
Nick
IE7 supports these selectors in standards-compliant mode only, so if this doesn't work please make sure you've added proper doctype to the page. -
6. Re: Printing content of a modal Panel
sebekk23 Mar 16, 2009 4:41 AM (in response to shadukan)THX for solution ;)
-
7. Re: Printing content of a modal Panel
v.bannur Oct 4, 2011 6:55 AM (in response to nbelaevski)Hi Nick,
I have created sample page with popup for print functionality. As per your above post I have added @Media print css. Still the pop right hand side is chopped off
As shown in an attached print preview. I also attached whole code and screen shot. Please let me know what I have missed out.
-
PrintScreenShotPage.JPG 95.0 KB
-
test.xhtml.zip 811 bytes
-
printPreview.JPG 77.5 KB
-