RadScheduler Print Functionality Needed (PDF)

26 posts, 0 answers
  1. Robert Strazzarino
    Robert Strazzarino avatar
    41 posts
    Member since:
    Jan 2006

    Posted 01 Jul 2009 Link to this post

    We've got a project in which there is heavy use of the radscheduler component, which is great.  Now, however, the client wishes to be able to print the schedule in a monthly view and weekly view.  I started looking at a reporting services plugin that had a calendar control but the bottom line is that I want it to look exactly like the radscheduler on the page.  I have thought of trying to make a bigger version that would fill a portrait or landscape page and just thell the user to print.  Obviously the background colors are going to be lost, etc... and good luck telling them to switch those settings.

    What's really needed here is a way to export the RadScheduler to a printable format.  For example:

    RadScheduler1.ExportAsPDF("portrait");

    That is a simplified parameter but if there was a way we could basically get the control to "render itself" into a PDF or even an image then printing can be achieved.  What would be best about feeding out a PDF bytestream is that we could save the PDF and use those PDFS to provide nice snapshots of the calendar in various times.

    The two areas would be month view and week view.... eventually you could do it for all of the other views.

    How tough would this be to implement?  Is there a workaround to achieve this that I'm not thinking of?  I would rather not use any other thirt party calendar controls/products, Telerik has it looking perfect I just need to print it! :-)


  2. Paul
    Admin
    Paul avatar
    4281 posts

    Posted 01 Jul 2009 Link to this post

    Hello Robert,

    Currently, we do not provide support for exporting to PDF or Excel. We have plans to introduce such support, as the underlying infrastructure is already in place and is used by RadGrid. As of now, we have not scheduled it for implementation.

    Regards,
    Paul
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Robert Strazzarino
    Robert Strazzarino avatar
    41 posts
    Member since:
    Jan 2006

    Posted 01 Jul 2009 Link to this post

    Glad to hear you are thinking about it, (although it's not on the implementation queue.)  I know you are all busy so I was trying to think of some workarounds:


    1. Figure out the perfect width and height to fill a portrait and horizontal print mode.  Then just pop the scheduler up into a new window with body margin 0 and have the user click print. 

    Downsides:

    Not sure you can make this work perfectly on every computer... maybe have text bleed over.
    You cannot save this print off to an image or PDF.
    You have to instruct user about printing background images.

    2. Some sort of .dll or plugin in the ASP.NET software that actually can visit the page and snap a screenshot at provided coordinates. 
    So you could call:  ImageGrabber ig = new ImageGrabber(www.yahoo.com, 800px, 600px. pdf)

    Is there something like this available? It certainly seems at least possible....

  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 03 Jul 2009 Link to this post

    Hi Robert,

    Yes, it sounds possible, but we haven't experimented with such approaches. I am not sure if you have see the following forum thread which provides a workaround for printing RadScheduler:
    http://www.telerik.com/community/forums/aspnet-ajax/scheduler/schedule-print-capability.aspx


    Greetings,
    Peter
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. sachin
    sachin avatar
    2 posts
    Member since:
    Jun 2007

    Posted 10 Mar 2012 Link to this post

    Hi All user ,

    i purchase telerik control in version : Telerik RadControls for ASP.NET AJAX Q1 2010 SP2.

    now i rad scheduler , i need to print in PDF but "RadScheduler1.ExportAsPDF("portrait");" is not their function. so can you give me any suggestion for that?

    and also i have no need used javascript , like this :

    <a href="javascript:void(window.print())">print this page</a>

    To hide any unnecessary HTML element you can use some CSS:

    <style type="text/css" media="print">
        #div1
        {
           display: none;
        }
    </style>

    i need to print in PDF file only...

    in Advance Thanks for Reply...


  7. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 13 Mar 2012 Link to this post

    Hello Sachin,

    Please, see the Pdf Export demo. The RadScheduler method for this functionality is ExportToPdf and it has no overloads.
    protected void RadButton1_Click(object sender, EventArgs e)
            {
                RadScheduler1.ExportToPdf();
            }


    Kind regards,
    Peter
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  8. Karthik
    Karthik avatar
    19 posts
    Member since:
    Aug 2012

    Posted 17 Feb 2013 Link to this post

    Hi,
     We are using Version=2010.3.1215.35 of Telerik controls and I am trying to use the ExportToPdf()  from Radscheduler (asp .net), but I am not able to find <exportsettings> .I am trying to use http://demos.telerik.com/aspnet-ajax/scheduler/examples/pdfexport/defaultcs.aspx example, is there something wrong or is it just me not getting it correctly. Can you please help?
  9. Karthik
    Karthik avatar
    19 posts
    Member since:
    Aug 2012

    Posted 18 Feb 2013 Link to this post

    It's an old question, but it's still haunting me, any help guys?
  10. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 21 Feb 2013 Link to this post

    Hello,

    Please find attached a sample project that follows our online demo for RadScheduler ExportToPDF functionality. You could easily edit the export settings as shown in the code snippet below:
    //markup code

    <telerik:RadScheduler runat="server" ID="RadScheduler2" .....>
      ....
        <ExportSettings OpenInNewWindow="true" FileName="SchedulerExport">
            <Pdf PageTitle="Schedule" Author="Telerik" Creator="Telerik" Title="Schedule"></Pdf>
        </ExportSettings>
    </telerik:RadScheduler>
    <telerik:RadButton ID="RadButton2" runat="server" Text="Export to PDF" OnClick="RadButton1_Click">
    </telerik:RadButton>
    //code behind
    protected void RadButton1_Click(object sender, EventArgs e)
        {
            RadScheduler1.ExportToPdf();
        }

    Kind regards,
    Boyan Dimitrov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  11. Karthik
    Karthik avatar
    19 posts
    Member since:
    Aug 2012

    Posted 21 Feb 2013 Link to this post

    HI Boyan,
     Thank you.I got the sample, but what I was saying is I cannot find the <ExportSetting> and I am not able to find the function ExportToPdf().  The VS intellisense gives me  "Telerik.Web.UI.RadScheduler' does not contain a definition for ExportToPdf" and not able to compile the solution. Version=2010.3.1215.35 is my version. I have compared my web config file with the supplied one and also checked that my GAC has got the web.ui and with the correct version
    Regards,
    Karthi
  12. Karthik
    Karthik avatar
    19 posts
    Member since:
    Aug 2012

    Posted 25 Feb 2013 Link to this post

    Any answers?Any help? I though Telerik is pretty helpful
  13. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 26 Feb 2013 Link to this post

    Hello,

    Since the functionality ExportToPDF was not implemented in RadControls version 2010.3.1215, your VS intelisense does not give you any auto complete information or you are not able to compile your solution. I would suggest downloading our latest official RadControls Q1 2013 version.


    Regards,
    Boyan Dimitrov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  14. Frisch's Big Boy
    Frisch's Big Boy avatar
    1 posts
    Member since:
    Jun 2012

    Posted 11 Jun 2013 Link to this post

    I am using 2013 Q1 controls and i am trying to utilize the exporttopdf functionality on the radscheduler.  I cannot get the scheduler to print the width of the page and i have a right margin of 2 inches that will not change.  What am i missing? I can change the left margin but not the right and i cannot make the scheduler larger.  Unfortunately, because of these limitiations printing the schedule is not possible.
  15. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 14 Jun 2013 Link to this post

    Hello,

    We are aware of that problem with the RadScheduler ExportToPDF functionality and it is already logged in our system for future fixing. We will post here as soon as there is any update regarding that issue.

     Please excuse us for any inconveniences caused. 

    Regards,
    Boyan Dimitrov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  16. Chris Trina
    Chris Trina avatar
    86 posts
    Member since:
    Mar 2006

    Posted 09 Sep 2013 Link to this post

    If you are still working on this enhancement, another thing that is needed, is the ability to print a date range.  For example I may want to print from June 1st to December 30th, this should result in 6 months work of schedules being included in the pdf. 

    Do you have any projections on this printing/exporting to pdf being improved?  It is something my clients are extremely hungry for.

    thanks

    Chris
  17. Tyler
    Tyler avatar
    7 posts
    Member since:
    Jun 2010

    Posted 11 Sep 2013 Link to this post

    Yes, please add more functionality to Exporting to PDF. 
  18. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 12 Sep 2013 Link to this post

    Hello Chris,

    I would like to clarify that the upcoming new RadScheduler AgendaView will provide PDF Export as well. Since the concept of the Agenda View is to show specific number of days you will be able to print appointments for certain data range ( a couple of days).

    I am afraid that I am not able to give a specific time frame or any details for the RadScheduler PDF Export improvement.


    Regards,
    Boyan Dimitrov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  19. Sandy
    Sandy avatar
    26 posts
    Member since:
    Mar 2012

    Posted 09 Oct 2013 Link to this post

    Hi 
    I want to Print my RadScheduler in webforms
    please help me out.by adding a print button in my UI.

    please help.
  20. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 14 Oct 2013 Link to this post

    Hello,

    Please review our RadScheduler Export to PDF online demo. Clicking on the "Export to PDF" button will export the RadScheduler to PDF document.


    Regards,
    Boyan Dimitrov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  21. Sandy
    Sandy avatar
    26 posts
    Member since:
    Mar 2012

    Posted 15 Oct 2013 Link to this post

    Hi,

    I did the same way.But page is not opening in new window it is in same window.and design is crushed.

    Here is my code
    <telerik:RadScheduler ID="AppScheduler" class="BOPScheduler.css" runat="server" DataKeyField="Appointment.AppointmentID"
                                    DataSubjectField="Facility" AutoPostBack="true" DataStartField="Appointment.ConfirmedDate" MonthView-VisibleAppointmentsPerDay="1"
                                    DataEndField="Appointment.ConfirmedDate" SelectedView="MonthView" OnAppointmentCreated="AppScheduler_AppointmentCreated" 
                                    DataDescriptionField="Appointment.InmateNumber" ShowAllDay="true" OverflowBehavior="Expand"  Localization-HeaderMultiDay="Work Week"
                                    OnAppointmentDataBound="AppScheduler_AppointmentDataBound" AppointmentContextMenuSettings-EnableDefault="true"
                                    OnAppointmentCommand="AppScheduler_AppointmentCommand" OnAppointmentClick="AppScheduler_AppointmentClick" Localization-ShowMore="Show More" RowHeight="120px"
                                     AllowInsert="false" AllowEdit="false" OnNavigationComplete="AppScheduler_NavigationComplete" >
                                    <AppointmentTemplate>
                                        <div class="rsMonthView .rsApt">
                                              <div class="rsAptSubject">
                                              <asp:Image runat="server" ID="imgProfile"/>                                       
                                                <%# Eval("Subject")%>
                                              </div>
                                            
                                            <asp:LinkButton ID="lkbappointment" runat="server"  CommandName="SelectApp"   Text='<%# Eval("Description") %>' />                                                                          

                                        </div>
                                        
                                    </AppointmentTemplate>
                                    <TimeSlotContextMenuSettings EnableDefault="true"></TimeSlotContextMenuSettings>
                                    <AppointmentContextMenuSettings EnableDefault="true"></AppointmentContextMenuSettings>
                                    <ExportSettings OpenInNewWindow="true" FileName="SchedulerExport">
                                        <Pdf PageTitle="Schedule" Author="Telerik" Creator="Telerik" Title="Schedule"></Pdf>
                                    </ExportSettings>
                                </telerik:RadScheduler>




    protected void RadButton1_Click(object sender, EventArgs e)
            {
              AppScheduler.ExportToPdf();
            }


    please help me
  22. Sandy
    Sandy avatar
    26 posts
    Member since:
    Mar 2012

    Posted 17 Oct 2013 Link to this post

    Hi,

    I did not get any response.
    please help me.
  23. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 18 Oct 2013 Link to this post

    Hello,

    It seems that the problem is caused by the property class in your RadScheduler markup code:
    <telerik:RadScheduler ID="AppScheduler" class="BOPScheduler.css" runat="server" .... >
    ....
    </telerik:RadScheduler>

    Please replace it with our recommended built-in property for setting a css class for the RadScheduler div container as shown in the code snippet below:
    <telerik:RadScheduler ID="AppScheduler"  CssClass="your class name goes here" runat="server" .... >
    ....
    </telerik:RadScheduler>


    Regards,
    Boyan Dimitrov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  24. Sandy
    Sandy avatar
    26 posts
    Member since:
    Mar 2012

    Posted 18 Oct 2013 Link to this post

    hi please provide me the class.please provide me the related code.




  25. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 23 Oct 2013 Link to this post

    Hello,

    Could you please confirm whether you are trying to apply some custom styles to the exported PDF document? If this is your scenario I would like to clarify that in our next service pack release one of the new PDF export features will be applying custom styles to the generated pdf document so the exported RadScheduler control will be styled.


    Regards,
    Boyan Dimitrov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  26. Sandy
    Sandy avatar
    26 posts
    Member since:
    Mar 2012

    Posted 23 Oct 2013 Link to this post

    Hi,

    i am not using any custom styles.
    I can able to open the PDF  file with no appointments.but if scheduler has appointments I am getting error
    "

    The 'div' start tag on line 96 position 15 does not match the end tag of 'li'. Line 102, position 13.  I am not using a xml to load my scheduler.  I do not  know what XML it is reading or using.

    "
    like this.
    please help me out.
  27. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 28 Oct 2013 Link to this post

    Hello,

    Most likely it is caused by not closed html tags declared in scheduler templates for example. Please validate the page output. Please close all opened tags and make sure that the page output is valid.


    Regards,
    Boyan Dimitrov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017