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

RadScheduler Print Functionality Needed (PDF)

25 Answers 465 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Robert Strazzarino
Top achievements
Rank 1
Robert Strazzarino asked on 01 Jul 2009, 07:24 AM
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! :-)


25 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 01 Jul 2009, 11:31 AM
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.
0
Robert Strazzarino
Top achievements
Rank 1
answered on 02 Jul 2009, 12:54 AM
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....

0
Peter
Telerik team
answered on 03 Jul 2009, 12:51 PM
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.
0
sachin
Top achievements
Rank 1
answered on 10 Mar 2012, 12:00 PM
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...


0
Peter
Telerik team
answered on 13 Mar 2012, 01:48 PM
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.
0
Scorpy47
Top achievements
Rank 1
answered on 18 Feb 2013, 05:39 AM
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?
0
Scorpy47
Top achievements
Rank 1
answered on 19 Feb 2013, 12:49 AM
It's an old question, but it's still haunting me, any help guys?
0
Boyan Dimitrov
Telerik team
answered on 21 Feb 2013, 07:51 AM
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.
0
Scorpy47
Top achievements
Rank 1
answered on 21 Feb 2013, 10:57 PM
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
0
Scorpy47
Top achievements
Rank 1
answered on 26 Feb 2013, 03:56 AM
Any answers?Any help? I though Telerik is pretty helpful
0
Boyan Dimitrov
Telerik team
answered on 26 Feb 2013, 03:04 PM
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.
0
Frisch's Big Boy
Top achievements
Rank 1
answered on 11 Jun 2013, 08:16 PM
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.
0
Boyan Dimitrov
Telerik team
answered on 14 Jun 2013, 03:26 PM
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.
0
Chris Trina
Top achievements
Rank 1
answered on 09 Sep 2013, 11:26 AM
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
0
Tyler
Top achievements
Rank 1
answered on 11 Sep 2013, 04:06 PM
Yes, please add more functionality to Exporting to PDF. 
0
Boyan Dimitrov
Telerik team
answered on 12 Sep 2013, 01:35 PM
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.
0
Sandy
Top achievements
Rank 1
answered on 09 Oct 2013, 02:35 PM
Hi 
I want to Print my RadScheduler in webforms
please help me out.by adding a print button in my UI.

please help.
0
Boyan Dimitrov
Telerik team
answered on 14 Oct 2013, 01:22 PM
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.
0
Sandy
Top achievements
Rank 1
answered on 15 Oct 2013, 04:28 PM
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
0
Sandy
Top achievements
Rank 1
answered on 17 Oct 2013, 05:01 PM
Hi,

I did not get any response.
please help me.
0
Boyan Dimitrov
Telerik team
answered on 18 Oct 2013, 12:27 PM
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.
0
Sandy
Top achievements
Rank 1
answered on 18 Oct 2013, 05:31 PM
hi please provide me the class.please provide me the related code.




0
Boyan Dimitrov
Telerik team
answered on 23 Oct 2013, 03:19 PM
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.
0
Sandy
Top achievements
Rank 1
answered on 23 Oct 2013, 06:04 PM
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.
0
Boyan Dimitrov
Telerik team
answered on 28 Oct 2013, 01:42 PM
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.
Tags
Scheduler
Asked by
Robert Strazzarino
Top achievements
Rank 1
Answers by
Paul
Telerik team
Robert Strazzarino
Top achievements
Rank 1
Peter
Telerik team
sachin
Top achievements
Rank 1
Scorpy47
Top achievements
Rank 1
Boyan Dimitrov
Telerik team
Frisch's Big Boy
Top achievements
Rank 1
Chris Trina
Top achievements
Rank 1
Tyler
Top achievements
Rank 1
Sandy
Top achievements
Rank 1
Share this question
or