Print calendar in SharePoint 2013

Hi,
I am trying to create print option for the calendar day view.I used the below code to show the print preview.
<input onclick="javascript:void(printwebpart('WebPartWPQ2'))" type="button" value="Print Web Part 2"/>
<script type="text/javascript">
function printwebpart(webpartid)
var WebPartElementID = webpartid;
alert("ID="+WebPartElementID);
var bolWebPartFound = false;
if (document.getElementById != null)
//Create html to print in new window
var PrintingHTML = '\n\n';
//Take data from Head Tag
if (document.getElementsByTagName != null)
var HeadData= document.getElementsByTagName("HEAD");
if (HeadData.length > 0)
PrintingHTML += HeadData[0].innerHTML;
PrintingHTML += '\n\n\n';
var WebPartData = document.getElementById(WebPartElementID);
if (WebPartData != null)
PrintingHTML += WebPartData.innerHTML;
bolWebPartFound = true;
else
{ bolWebPartFound = false; alert ('Cannot Find Web Part'); } } PrintingHTML += '\n\n';
//Open new window to print
if (bolWebPartFound)
var PrintingWindow = window.open("","PrintWebPart", "toolbar,width=800,height=600,scrollbars,resizable,menubar");
PrintingWindow.document.open(); PrintingWindow.document.write(PrintingHTML);
// Open Print Window
PrintingWindow.print(); }
</script>By clicking the print button,I am getting the print window.But in print preview dialogue,events are not showing in the right place.below screenshot shows the difference in showing the events.Before print
print preview
Please help.
Thank you.

Hi,
According to your post, my understanding is that you want to be able to print the Day view of a Calendar List in SharePoint 2013.
I also test the code above in my environment, and the result is the same as yours.
In the print preview dialogue, the events are not showing in the right place as they are in the Calendar list’s Day view.
As a workaround, I recommend that you can try to follow the steps as below to import the Calendar List into the Outlook 2013 and print the same format as Outlook calendars.
  1.  Open this Calendar List in your site, click on the “Connect to Outlook” under the “Calendar” tab.
  2.  Click “Allow” to confirm that you want to allow the SharePoint website to open Outlook on your computer. Outlook automatically opens.
  3.  Click “Yes” to confirm that you want the SharePoint calendar to connect to Outlook. The SharePoint Calendar automatically appears in Outlook under “Other Calendars”.
  4.  Click “Other Calendars” in the navigation pane in the left side of the window. Click the SharePoint Calendar to open it.
  5.  Go to the “File” tab, click “Print”, select “Daily Style” under the “Settings” to print the Day view of this SharePoint Calendar.
  6.  Click “Print Options”, select the specific “Page range” and “Print range” based on your need, click “Print” after selecting your options to print the SharePoint Calendar.
For more information, you can refer to:
http://sprickyrick.blogspot.com/2013/01/print-calendar-andor-lists.html
http://sharepoint.stackexchange.com/questions/103251/how-to-print-sharepoint-2013-calendars
Best Regards,
Yumi Fu

Similar Messages

  • Colored Calendar in Sharepoint 2013

    Hello,
    I have tried every solution to get my Calendar for SharePoint 2013 to have colors for different event types, but to no avail.  Overlays don't work since the calendars are based off of a list item, not a calendar item. Overlay is just not an option in
    that case.  I am putting my calendar on a page with other APPs, that seemed to have messed up the color options to begin with.  I guess in that case I created a calendar with Overlays, and then inserted that into a page with other items.  When
    I did that the overlay colors disappeared.
    When I tried this one ttp://social.technet.microsoft.com/Forums/sharepoint/en-US/ca331954-0771-4fc9-9c9e-b7efca6114f8/color-code-calendar-by-category?forum=sharepointdevelopmentprevious
             (I had to remove the first "h" since it wouldn't let me insert a link until my account is verified, and I didn't know how else to not have it automatically create it as a link here).
    I noticed this warning in Dimitri's description ... could this be what is causing my problems?
         "Caution: The jQuery JavaScript library must be available in your environment."
    How do I know if the JQuery JavaScript library is available? 
    I'm not sure what to try next.  I don't want to move forward with my program until this gets figured out, since it is so important to the project.
    Thank you, Liz.

    Check if below can help
    http://www.sharepointbreak.com/2012/09/02/creating-a-color-coded-calendar-by-category-using-js-in-sharepoint-2010/
    function ColourCalendar() {
    if(jQuery('a:contains(' + SEPARATOR + ')') != null)
    jQuery('a:contains(' + SEPARATOR + ')').each(function (i) {
    $box = jQuery(this).parents('div[title]');
    var colours = GetColourCodeFromCategory(GetCategory(this.innerHTML));
    var colour = colours[0];
    //colour += "!important";
    var Fontcolour = colours[1];
    this.innerHTML = GetActualText(this.innerHTML);
    jQuery($box).attr("title", GetActualText(jQuery($box).attr("title")));
    $box.css('background-color', colour);
    $box.children().css('color', Fontcolour);
    // I've added this condition since the font color did not catch on to a a:link unless i used !important
    //if (Fontcolour == 'white')
    //$('a:link', $box).css("cssText", "color: white !important;");
    function GetColourCodeFromCategory(category) {
    var colour = null;
    var Fontcolour = null;
    switch (category.trim().toLowerCase()) {
    case 'category1':
    colour = 'green';
    Fontcolour = 'black';
    break;
    case 'category2':
    colour = 'blue';
    Fontcolour = 'white';
    break;
    case 'category3':
    colour = 'yellow';
    Fontcolour = 'black';
    break;
    return [colour, Fontcolour];
    CSS, javascript & calculated columns should do the trick. Read the following posts:
    Tutorial: add color coding to your SharePoint 2007 calendar in 15 minutes
    Colour coded SharePoint 2010 Calendar
    If this helped you resolve your issue, please mark it Answered

  • Display a Teams's Outook 2010 Calendar in SharePoint 2013

    Hi
    I have been running some tests with my users but instead of a seeing an Outlook Team calendar to be overlaid with a team site calendar, I am seeing either personal calendar or simply busy status in multiple events ( depending on share access).
    Overlay Outlook Cal in SharePoint
    Click on the Calendar Overlay ribbon button.
    Fill in the :
    Name: Give a name to this calendar
    Type: Select Exchange
    Outlook Web Access URL: the OWA url of your organization.
    Exchange Web Service URL: which can be determined as follows:
    Is the calendar share in  Outlook not integrated correctly I wonder as I clearly connect to Outlook but not able to select the desired team Calendar.  If it is a infrastructure issue I need to be clear as I will impact the team who manages Exchange.
    SharePoint Calendar Connect to Outlook Ribbon button
    Initially disabled until I remembered the copy settings url workaround but this simply publishes the team cal in Outlook.

    You can't use the Outlook Web Part Calendar in SharePoint 2013, I have been experimenting with the Page viewer
    Actually you can use it if you don't need Exchange Online!
    Make sure you have user profile service application in a good state. Go to Site Setting, then Web Design Galleries -> Web parts -> Files -> New Document -> New
    Select all the "Microsoft.SharePoint.Portal.WebControls.OWA..." parts and click on "Populate Gallery" on the top.
    Now you can insert OWACalendarPart into your SharePoint 2013 pages! Here is a screenshot of my meeting room shown in SharePoint 2013. Don't forget to give "Reviewer" rights on room's calendar to all users and I believe you have to login into meeting room's
    OWA by yourself (once) to get rid off annoying starting screen.

  • Synchronizing Parent and Child Calendar on SharePoint 2013

    Dear all,
    How can I update Parent calendar automatically when I update Child calendar on SharePoint 2013? Thanks

    Sorry I didn't understand the parent and child calendar. How did you create these two?
    Bala

  • Access Exchange 2013 Calendar from Sharepoint 2013 OWA Web Part

    Hi,
    For the moment I have five User
    Mailboxes on Exchange 2010 whose
    calendars that appear in a SharePoint
    2013 using Outlook Web App Web Part.
    In Exchange 2010, IIS has created a new
    WebSite with OWA, ECP
    and some more Virtual Directories,
    where OWA is Windows Integrated
    and Basic Auth. enabled (not
    FBA).
    This makes so users do not have additional
    logins in SharePoint when they look at
    the calendars.
    I now want to move these mailboxes to an Exchange
    2013. I must then create a new WebSite
    with Win.Integrated etc, but have
    heard it is unsupported. Is there
    any other way to solve this?
    Best Regards

    Hello,
    Sorry for delayed response.
    I recommend you check the Outlook Hotfix and version number again via Control Panel.
    Please check the version number via outlook 2010 "File".
    If the outlook version number is 14.0.7113.5000, please try my above suggestion to specify the SSL certificate principal name. Because XP system is not always to look for the next lines on a SAN certificate.
    If you have any feedback on our support, please click
    here
    Cara Chen
    TechNet Community Support

  • Exchange Outlok Calendar to SharePoint 2013 calendar Sync issue

    Hi All,
    Am trying to add my Exchange outlook calendar to my SharePoint 2013 calendar using Calendar overlay option.
    Am providing correct outlook web access url and correct exchange web service URL .
    But when i try to connect to outlook option am receiving error message like below.
    The HTTP request is unauthorized with client authentication scheme 'Ntlm'. The authentication header received from the server was 'Negotiate,NTLM'. (4f48bc9c-b7ec-90b1-79c1-9659d9d621f3)
    Please find the attached screenshot more information.
    Please let me know if any one having answer for this issue.
    Thanks,
    Mani L
    Mani L

    Hi Mani,
    Based on the error message, it is an authentication issue.
    I recommend to set the authentication for SharePoint to be NTLM, and Exchange web services as NTML as well to see if the issue still occurs.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Printing SharePoint 2013 Wiki Page Library as a whole

    Hi!  I'm trying to find a good solution for printing an entire SharePoint 2013 Wiki page library.  In SharePoint 2010 I built a site and created a printer friendly view that used "Wiki Content" column that only printed the contents
    of the wiki pages as a whole using the solution from this link:
    https://mail.americredit.com/owa/redir.aspx?C=Wl_sVZBaUUqYaSN9F2Qq6Mc3RL-ZwtEIzEWL5ULgM7U6Hr1eoqsoq26BC3E89ofm2Liksb54EjM.&URL=http%3a%2f%2fwww.eblogin.com%2feblogin%2fpost%2f2011%2f11%2f24%2fsharepoint-wikiPagePrint.aspx%23.VDVWdPldVBc
    It was very easy to do and my client loved it.  However, now that we are starting to migrate over to SharePoint 2013 I don't see the same column option and I haven't been able to create a printable view like the one above.  Is there a way
    to do this in 2013 like what was available in 2010? 

    Hi Jeremy,
    That link take me through to an Exchange Login.  Can you provide another link for the solution you've used.
    An older solution that sounds familiar is in this thread.  It's for an older version of SharePoint but should still work
    https://social.technet.microsoft.com/forums/sharepoint/en-US/1612dfdb-f85c-4e6f-90f4-3d6c24b6472c/how-do-you-print-a-sharepoint-wiki
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Integrate Outlook Calendar for all users to Sharepoint 2013 calendar

    Hi,
    I have a specific requirement to add the outlook calendar for each user in my organisation to sharepoint 2013 calendar.
    Any user at any point of time can get the details for other user(s) from the Sharepoint 2013 calendar.
    I know there is a calendar overlay option in sharepoint which will add my outlook calendar to Sharepoint 2013.
    Can any one please help me to integrate all users calendar so that the schedule for any user(s) can be requested directly from Sharepoint 2013 calendar.
    I am ok to use exchange webservice and c# to achieve this.
    Thanks in advance.

    Hi Somdeep,
    I assume you are using Exchange product as SMTP server.
    If you would like to integrate all Exchange mailbox accounts' schedule to SharePoint calendar, I'd recommend you create a shared mailbox in Exchange side, then let all accounts make schedule on it. That way, you may need to overlay one Exchange
    calendar on SharePoint calendar.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Email Notification on Calendar list Sharepoint Foundation 2013 not sending out email

    Hi,
    Actually i have 2 problem. I just don't have any idea how to solve them.
    1 ) I have a machine installed with Windows Server2012 and Sharepoint Foundation 2013. Email invitation from system and alert me email is working fine. Then I created a few email sending workflow using sharepoint designer 2013. The email are going out fine
    for list or document library but gave out error when i tried to send from Calendar list. The error is saying that the outgoing email is not configured correctly. If that was the case, should it be that i will receive error for all.
    2) I have another machine with same installation as above but doesn't send out any kind of email(Invitation,alert me, SPD2013 custom worflow). I've checked telnet port 587, it is responding fine. I want to know if i need to open port in the firewall/router
    settings for this port or if this issue is due to something else.
    Any help is really appreciated.

    What about Relay and Authentication?
    Trevor Seward, MCC
    Follow or contact me at...
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.
    Look.
    I think this is the correct configuration because it sends emails normaly with SharePoint 2010.
    If I configure my own email account in Outbound Security, Sharepoint 2013 sends emails but just when I login to Sharepoint, if other users login it doesn't send emails.
    Melvintt
    MCTS, Windows Server 2008 R2: Network Infrastructure
    MCTS, Windows Server 2008 R2: Active Directory, Configuring

  • How to get attendies count for a calendar list in sharepoint 2013?

    Hi everybody,
    I am using calendar list in SharePoint 2013 for my project.
    Could please tell me how to get the count of attendees using SP Designer or OOTB calculated field.
    Because I want to display the fields like
    TOTAL SEATS =20
    Attendees= Need count
    Avail seats= total - Attendees count.
    In that way I want to show information about availability seats for training session.
    Regards,
    Dhayanand

    Hi Dhaya
    Please refer the links.Hope it helps :-)
    http://social.msdn.microsoft.com/Forums/en-US/b8677dc5-3eb1-4bdc-92f2-f57201bfabb1/field-that-counts-attendees?forum=sharepointcustomizationprevious
    http://sharepoint.stackexchange.com/questions/54253/use-count-related-column-value-as-int-in-a-sp-designer-workflow

  • Is it possible to transfer the data from a SharePoint 2013 calendar entry to Outlook 2010 calendar entry?

    Hi,
    I've managed to Sync my SharePoint Calendar with my Outlook. At the moment it only transfers through the Title and Location of my calendar entry.
    Is it possible to transfer the description as per the SharePoint entry so it shows up in Outlook?
    Thanks

    Hi,
    According to your post, my understanding is that you not seen the description of the calendar item synced with the outlook.
    I had tested with the issue, the description could sync with outlook.
    I created some items in the calendar, clicked the “Connect to Outlook” control, the items synced with the outlook including the description of the items.
    Did the issue occur in other calendars? You can create a new calendar with some items, the check whether it works.
    You can also check the event log and ULS log to see if anything unexpected occurred.
    To check event log, click the Start button and type “Event Viewer”in the Search box. 
    For SharePoint 2013, by default, ULS log is at
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS
    You can check the ULS log by the methods here:
    http://blogs.msdn.com/b/opal/archive/2009/12/22/uls-viewer-for-sharepoint-2010-troubleshooting.aspx
    http://msdn.microsoft.com/en-us/library/gg193966(v=office.14).aspx
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • SharePoint 2013 Workflow Calendar Entry Create Time AM PM Conflict

    Windows 2012, SharePoint 2013 Enterprise.
    I have a change control form that basically creates a calendar entry once it's been approved. Works well, but discovered a bug with the calendar create portion when there are events that have the same time in AM\PM. 
    Use case:
    1. Create a change control item in the list with a planned start time of 2PM, I'll approve it, which then fires off a workflow and it will create an event in the change control calendar for 2PM, all good.
    2. Create another change control item in the list with a planned start time of 2AM this time, I'll approve it, which then fires off a workflow and it will create an event in the change control calendar for 2PM and not 2AM. ???
    Yes the original event entry created in the list shows planned start time of 2AM, but its being created in the calendar entry as 2PM. This only happens when the time is exact. For example if I had created the second entry at 3PM, it will create the calendar
    entry at 3PM. It only happens if there is an existing entry for the same time, then all subsequent entries for the same time will have the same AM\PM depending on the first entry.
    I can manually create an entry in the calendar and specify 2PM and it will take, so its something with the workflow that is causing it. The workflow is very simple all its doing is checking the item to see if the field says approved for the change request
    form if so, create calendar event and carry over the fields, planned start time, planned end time, title description, that's it. 
    James Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com

    Hi James,
    In my test per your description, I cannot reproduce the issue, however, I attached the screenshot of my test for your reference, let me know if there is misunderstanding.
    Please capture the screenshot of your workflow process design so I can try to reproduce or find out if there is action that may cause the issue.
    In addition, could you please try to locate workflow error message? If there is obvious error information, please refer to the Activate Workflow Manager Logs part in the article below:
    http://blogs.msdn.com/b/vincent_runge/archive/2014/01/07/troubleshooting-actions-for-sharepoint-2013-workflows.aspx
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Print option is not working in listitem of sharepoint 2013

    Hi,
     We have a print option at list item level for printing the files which are checked in document library. The print option works seamlessly fine in sharepoint 2010 but the same is not working in sharepoint 2013. its not sending the files to printer for
    printing when print option is selected. 
    Has someone faced similar issue? Any help would be appreciated..

    Hi,
    There is no OOTB print option in SharePoint list item, print option should be added manually by custom code and the methods are various.
    Please provide more detail description about how you add print option on a list item for printing files in a document library. This will help to troubleshoot the issue.
    In addition, I add a content editor with simple code below to list item display form page, and it worked in my SharePoint 2013 environment:
    <code>
       <input onclick="window.print();return false;" type="button" value=" Print "/>
    </code>
    Regards,
    Rebecca Tu
    TechNet Community Support

  • How to display calendar in web part with selected month(jan,feb,march) in sharepoint 2013

    Hi All,
    How to display selected Month like jan,feb,march in single page with different webparts.
    I created 3 webparts and selected(jan,feb,march) but when page refreshes all webparts are displaying current month(December).
    Here i attached the screen shot, where December should be shown as (January and February)
    Kindly check and guide me in right track.
    Thanks
    Prabhat.
    Madhu Prabhat

    Hi,                                                             
    To develop a custom web part, you can take a look at the links below with steps in detail for a start:
    Creating Web Parts for SharePoint
    http://msdn.microsoft.com/en-us/library/ee231579.aspx
    Sharepoint 2013 Create a Visual Web Part
    http://raquelalineblog.wordpress.com/2013/04/25/sharepoint-2013-create-a-visual-web-part/
    Another three links for your reference:
    http://www.learningsharepoint.com/2012/12/24/how-to-create-a-custom-webpart-in-sharepoint-2013/?goback=%2Egde_3911588_member_198759022#%21
    http://www.youtube.com/watch?v=9iK8IPUB87w
    http://sptechbytes.blogspot.com/2013/10/sharepoint-2013-creating-visual-webpart_26.html
    Here are some samples of custom calendar web part for your reference:
    http://www.codeproject.com/Articles/108676/SharePoint-Custom-Calendar
    http://gunnarpeipman.com/2009/01/creating-sharepoint-global-calendar/
    https://blog.metrostarsystems.com/2013/10/21/creating-a-custom-sharepoint-calendar-rollup/
    You can also do more customization by adding your own logic in it.
    Best regards
    Patrick Liang
    TechNet Community Support

  • Double checking in sharepoint 2013 calendar

    I have created calendar list for a meeting room in SharePoint 2013.I tried for enabling the group work feature.But that is not available in sp 2013.is there any solution using JavaScript or jquery or workflow or any of out of box feature for this.I don't
    want the c# code.
    Plz help if any solution

    Hi,
    According to your post, my understanding is that you wanted to use group work feature in SharePoint 2013.
    Did you mean you wanted to use the feature resource reservation?
    You need to go to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\1033\XML.
    Open WEBTEMP.XML file, find an element with 'Group Work Site' title attribute and change its Hidden attribute from TRUE to FALSE.
    Now it is possible to display the missing site templates including 'Group Work Site'. Then you just need to create a site based on this template and you will get the calendar of resources.
    More information:
    http://www.codeproject.com/Articles/588685/ReservationplusofplusresourcesplusinplusSharePoint
    http://social.technet.microsoft.com/Forums/en-US/5a118b26-9be7-42b6-b04b-5f1da9e11f77/sharepoint-2013-for-room-reservation-system?forum=sharepointdevelopment
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

Maybe you are looking for