{"id":35,"date":"2011-08-26T19:56:15","date_gmt":"2011-08-27T00:56:15","guid":{"rendered":"http:\/\/wichitasao.wordpress.com\/?p=35"},"modified":"2022-03-09T00:40:34","modified_gmt":"2022-03-09T05:40:34","slug":"2010-calendars-wont-print-in-ie7","status":"publish","type":"post","link":"https:\/\/www.shiftedthought.com\/?p=35","title":{"rendered":"2010 Calendars won&#8217;t print in IE7"},"content":{"rendered":"<p>So your SharePoint site is using the new v4 UI, everything looks slick and pretty.\u00a0 But wait, you work in an environment where you have to support IE7 and your calendars won&#8217;t print properly.\u00a0 Given the popularity of SharePoint, especially among all of the large companies and the public sector, it shouldn&#8217;t be surprising that not everyone can just upgrade IE just because the calendar is broken as suggested here:<\/p>\n<p>http:\/\/social.msdn.microsoft.com\/Forums\/en-US\/sharepoint2010general\/thread\/1d2555fe-f0aa-467b-8d2b-6732b5da52a4\/<\/p>\n<p>I find myself in that very situation and I&#8217;m hoping that I can offer a fix (or a start to one as its not the prettiest).\u00a0 The end of the technet posting suggests that the issue lies with calendarv4.css found in the hive.\u00a0 I decided to devote a few hours to digging in with the IE developer tools (both IE7 and IE9).<\/p>\n<p>I assumed that this was probably one of the usual IE7 bugs with\u00a0 haslayout and all the above so I started there.\u00a0 I tried everything from zoom to height, to changing the display to no avail.\u00a0 So lets assume that the calendar items are on the printout (but off the page).\u00a0 A little absolute positioning some and I could get it to show up, but not on the calendar grid.\u00a0 Slowly I tweaked it and saw the items disappear behind.\u00a0 Maybe z-index, nope, maybe if I float it, nope.\u00a0 Finally I decided to toss the style-sheet into the w3 validation tool.\u00a0 Hey, there&#8217;s an error with overflow-x&#8230;overflow could cause the items to clip improperly and there are overflows all over calendar v4.\u00a0 Why not mess with that.<\/p>\n<p>Finally I was able to find something that would work.\u00a0 I started out throwing the anvil at it<\/p>\n<pre>body *\n{\noverflow:visible !important;\n}<\/pre>\n<p>Hey it worked, but I don&#8217;t want to have it affect anything outside the calendar. After a little more digging I settled on:<\/p>\n<pre>&lt;style type=\"text\/css\"&gt;\n@media Print\n{\n  .ms-acal-rootdiv * {\n    *OVERFLOW: visible !important\n  }\n  .ms-acal-item {\n    *OVERFLOW: hidden !important\n  }\n}\n&lt;\/style&gt;<\/pre>\n<p>Toss that in however you prefer (content editor web part, additionalpagehead UserControl or what have you) and voila, you can print 2010 v4 calendars in IE7.<\/p>\n<p>I pretty much stopped as soon as I had something that worked and was isolated to the calendar blocks, so this could be tuned more to find the actual style that breaks in IE7, but that&#8217;s more time than I want to devote to this.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So your SharePoint site is using the new v4 UI, everything looks slick and pretty.\u00a0 But wait, you work in an environment where you have to support IE7 and your calendars won&#8217;t print properly.\u00a0 Given the popularity of SharePoint, especially among all of the large companies and the public sector, it shouldn&#8217;t be surprising that &hellip; <a href=\"https:\/\/www.shiftedthought.com\/?p=35\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">2010 Calendars won&#8217;t print in IE7<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[20,3],"tags":[],"class_list":["post-35","post","type-post","status-publish","format-standard","hentry","category-archive","category-sharepoint"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p28JZm-z","_links":{"self":[{"href":"https:\/\/www.shiftedthought.com\/index.php?rest_route=\/wp\/v2\/posts\/35","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shiftedthought.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shiftedthought.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shiftedthought.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shiftedthought.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=35"}],"version-history":[{"count":1,"href":"https:\/\/www.shiftedthought.com\/index.php?rest_route=\/wp\/v2\/posts\/35\/revisions"}],"predecessor-version":[{"id":532,"href":"https:\/\/www.shiftedthought.com\/index.php?rest_route=\/wp\/v2\/posts\/35\/revisions\/532"}],"wp:attachment":[{"href":"https:\/\/www.shiftedthought.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=35"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shiftedthought.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=35"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shiftedthought.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=35"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}