When I try to export the scheduler to PDF, only one page is exported/printed, though only half of the scheduler appears on the PDF.
It should have more than one page to see the whole scheduler.
I use Q3 release (2011.3.1115.35)
Thanks in advance
22 Answers, 1 is accepted
I tested the online demo, but I couldn't observe such a problem. Do you experience this issue in a local sample or with the online demo?
Best wishes,
Peter
the Telerik team
I think it doesn't work because my scheduler has a number of row wich can't fit in one page (I've got plenty ressources)
On the online demo, I can't reproduce this because there isn't a lot of rows, and in the result PDF, the whole row fit the page ...
I join a result example of my problem...
I verified that this is indeed an issue with the PDF export functionality of RadScheduler. I have logged it, but I cannot say for sure when we will be able to fix it.
Please, accept our apologies for this bug.
Greetings,
Peter
the Telerik team
I understand it is a bug, no problem.
Please, can you give me the issue track number, so I can "track this issue"
Thanks
Here it is: http://www.telerik.com/support/pits.aspx#/public/aspnet-ajax/8739
Greetings,
Peter
the Telerik team
Unfortunately the issue is not fixed yet. I have increased its implementation priority. Please excuse us for this inconvenience caused.
Plamen
the Telerik team
I have tested our on-line demo ant it worked properly at our side. Here is a video of my test. Would you please let me know if I have to add or do something else in order to observe the unusual behavior you described?
Plamen
the Telerik team
ExportToPdf() function is not working for me as well, it simply does nothing, no pop ups at all. However it's working fine in online demo. I am using Telerik:RadScheduler 2012.3.1308.35 trial version. Is there any updates to this?
Unfortunately from the provided information it is not quite clear what is not working properly and how to reproduce it.
Would you please be more specific if there is some kind of error observed or how exactly your scenario differs from the on-line demo?
Plamen
the Telerik team
.aspx
<tk:RadAjaxPanel runat="server" ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1">
<asp:LinkButton ID="LBPrint" runat="server" Text="Printer Friendly" OnClick="LBPrint_Click" />
<tk:RadScheduler runat="server" ID="RadScheduler1">
</tk:RadScheduler>
</tk:RadAjaxPanel>
<tk:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1"> </tk:RadAjaxLoadingPanel>
.aspx.vb
Protected Sub LBPrint_Click(ByVal sender As Object, ByVal e As System.EventArgs)
RadScheduler1.ExportToPdf()
End Sub
When I hit LBPrint, it does nothing. Let me know, If you need any other information.
This is an expected behavior because the PDF functionality in RadScheduler needs a full post back in order to work properly. Please excuse us for this limitation of our control. If you move it out of the update panel it should work as expected.
Hope this will explain the issue.
Plamen
the Telerik team
System.SystemException: Error while creating area : Encountered web exception while fetching image from http://localhost:63824/Telerik.Web.UI.WebResource.axd?imgid=23c4c8b9343048d69a61bdfdb55be444&type=rbi: The remote server returned an error: (404) Not Found.
at Telerik.Web.Apoc.ApocDriver.FireApocError(String message)
at Telerik.Web.Apoc.Fo.Flow.ExternalGraphic.Layout(Area area)
at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area, Region region)
at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area)
at Telerik.Web.Apoc.Fo.Pagination.PageSequence.Format(AreaTree areaTree)
at Telerik.Web.Apoc.StreamRenderer.Render(PageSequence pageSequence)
at Telerik.Web.Apoc.Fo.FOTreeBuilder.EndElement()
at Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.SystemException: System.SystemException: Error while creating area : Encountered web exception while fetching image from http://localhost:63824/Telerik.Web.UI.WebResource.axd?imgid=23c4c8b9343048d69a61bdfdb55be444&type=rbi: The remote server returned an error: (404) Not Found.
at Telerik.Web.Apoc.ApocDriver.FireApocError(String message)
at Telerik.Web.Apoc.Fo.Flow.ExternalGraphic.Layout(Area area)
at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area, Region region)
at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area)
at Telerik.Web.Apoc.Fo.Pagination.PageSequence.Format(AreaTree areaTree)
at Telerik.Web.Apoc.StreamRenderer.Render(PageSequence pageSequence)
at Telerik.Web.Apoc.Fo.FOTreeBuilder.EndElement()
at Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)
Thank you for getting back to us.
Please review this help article where several troubleshooting scenarios and the recommended solutions for them are described.
Hope this will be helpful. If you have further questions I will be glad to assist you again.
Plamen
the Telerik team
However, the PDF export does not include any images that are populated in the Appointment Template. There is a blank spot for the image. Additionally some CSS formatting does not come through, specifically the CSS formatting demonstrated in this KB
Is there a way to format appointments prior to PDF export? I expected the Javascript formatting to not fire but the CSS should.
<
location
path
=
"Telerik.Web.UI.WebResource.axd"
>
<
system.web
>
<
authorization
>
<
allow
users
=
"*"
/>
</
authorization
>
</
system.web
>
</
location
>
In this case you can refer to this help article where is explained how to using custom style sheet files. I am also attaching a sample page where similar behavior is implemented.
Hope this will help you solve the issue.
Regards,
Plamen
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
One step forward..... two steps back. The css styling works in Day, Week, Timeline, and Agenda view. The 'export to outlook' icon that is set in CSS shows up. The 'Go/No-Go' icon that is set in the onAppointmentCreated is not. I think I can resolve that with a little bit of rework.
However, the Month view exported without any appointments! That is the view with the most css styling :( {css from previous linked KB}
In scenario where you add the image in the code behind we would rather recommend adding a CssClass and add the image for it with styles.
As for the MonthView issue -would you please elaborate how it is different that the TestPDFWithStyles.zip attached page where all the appointments are printed as expected at my side.
Regards,
Plamen
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
As to the month view export to PDF, I trimmed my RadScheduler down as much as I could {there is alot going on} but since the PDF works in the other views without a problem it has to be the CSS styling:
.bitGreen{
box-sizing: border-box;
bottom
:
0
;
right
:
0
;
border
:
0
;
height
:
10px
;
width
:
10px
;
background-image
:
url
(
'../Images/bitGreen.png'
);
overflow
:
hidden
;
}
.bitRed{
box-sizing: border-box;
bottom
:
0
;
right
:
0
;
border
:
0
;
height
:
10px
;
width
:
10px
;
background-image
:
url
(
'../Images/bitRed.png'
);
overflow
:
hidden
;
}
.NowCss
{
border-left
:
2px
solid
red
!important
;
}
.Disabled{
background
:
silver
!important
;
cursor
: not-allowed;
}
.Disabled.rsAptCreate{
background
:
silver
!important
;
}
.CurrentDayStyle{
background
: yellow;
}
.CurrentTimeSlotStyle_Left{
background
: yellow;
border-left
:
2px
solid
red
!important
;
}
.CurrentTimeSlotStyle_Right{
background
: yellow;
border-right
:
2px
solid
red
!important
;
}
.RadScheduler .rsExportButton
{
position
:
absolute
;
bottom
:
0
;
right
:
0
;
border
:
0
;
height
:
24px
;
width
:
24px
;
background
:
url
(
'../Images/Outlook.gif'
)
no-repeat
center
center
;
}
.RadScheduler .rsAllDayRow
{
height
:
26px
;
}
.RadScheduler .rsAllDayRow .rsExportButton
{
display
:
none
;
right
:
20px
;
height
:
16px
;
width
:
16px
;
background
:
url
(
'../Images/smallOutlook.gif'
);
}
.rsApt .rsAptContent .custom-table
{
width
:
100%
;
border-collapse
:
collapse
;
}
.rsApt .rsAptContent .custom-table td
{
border
:
0
;
}
hr{
margin
:
5px
5px
!important
;
border-width
:
1px
0
0
1px
;
height
:
1px
;
}
/*set timeline view heights*/
.RadScheduler .rsAllDayCell div.rsWrap
{
min-height
:
60px
;
}
.RadScheduler .rsHoursTable th.rsSubHeaderHidden
{
min-height
:
60px
;
}
.RadScheduler .rsHoursTable tr th.rsSubHeaderLast
{
min-height
:
62px
;
}
.appointment-tooltip {
padding
:
10px
;
}
.appointment-tooltip p {
margin
:
0
0
5px
0
;
}
/* set Month Appoint height*/
.RadScheduler .rsMonthView .rsWrap,
.RadScheduler .rsMonthView .rsApt,
.RadScheduler .rsMonthView .rsAptOut,
.RadScheduler .rsMonthView .rsAptIn,
.RadScheduler .rsMonthView .rsAptMid,
.RadScheduler .rsMonthView .rsAptContent {
position
:
static
!important
;
height
:
auto
!important
;
}
.RadScheduler .rsMonthView .rsWrap {
overflow
:
hidden
;
font-size
:
0
;
line-height
:
0
;
}
.RadScheduler .rsMonthView .rsLastWrap {
height
:
16px
!important
;
}
.RadScheduler .rsMonthView .rsAptContent {
position
:
relative
!important
;
border-top
:
0
;
border-bottom
:
0
;
left
:
0
;
top
:
0
;
}
* html .RadScheduler .rsMonthView .rsAptIn {
border-width
:
0
1px
;
top
:
0
;
margin-left
:
-1px
;
margin-right
:
-1px
;
}
* html .RadScheduler .rsMonthView .rsAptMid {
top
:
0
;
left
:
1px
;
margin
:
0
1px
;
border-width
:
1px
0
;
}
.RadScheduler .rsMonthView .rsWrap,
.RadScheduler .rsMonthView .rsAptContent {
min-height
:
25px
;
}
The described issue sound quite unusual indeed. I have tested it once again and the export in MonthView worked correctly at my side. Here is video of my test and i am attaching my sample updated page.
Hope this will help you solve the issue.
Regards,
Plamen
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Dear Team,
I need to generate PDF using export setting for Scheduler Control. i am getting the scheduler control as PDF document but it is not displaying full content in appointment. I have attached the PDF document below for your consideration. Kindly, Reply me as soon as possible
This is my rad-scheduler control used in .aspx page,
<telerik:RadScheduler ID="RadScheduler1" runat="server" SelectedView="MonthView"
MonthView-AdaptiveRowHeight="true" FirstDayOfWeek="Monday" LastDayOfWeek="Sunday"
Height="300px" Skin="Web20" Style="margin-left: -5px;" EnableAjaxSkinRendering="true"
AllowEdit="false" AllowDelete="false" RenderMode="Lightweight" AllowInsert="false"
Visible="True" EnableDescriptionField="true" MinimumInlineFormHeight="400" RowHeight="70px"
StartEditingInAdvancedForm="false" OnAppointmentInsert="RadScheduler1_AppointmentInsert"
OnAppointmentDelete="RadScheduler1_AppointmentDelete" OnAppointmentClick="RadScheduler1_AppointmentClick"
OverflowBehavior="Expand" AppointmentStyleMode="Auto" DisplayDeleteConfirmation="true">
<ExportSettings OpenInNewWindow="true" FileName="SchedulerExport" Pdf-AllowAdd="true">
<Pdf PageHeight="410mm" PageWidth="497mm" DefaultFontFamily="Arial Unicode MS"
PageTitle="Schedule" Author="Urban Studious" Creator="Karthik" Title="Schedule" />
</ExportSettings>
<MonthView AdaptiveRowHeight="true" MinimumRowHeight="30" VisibleAppointmentsPerDay="10" />
<DayView UserSelectable="false" />
<TimelineView UserSelectable="false"></TimelineView>
<WeekView UserSelectable="false" />
<AppointmentContextMenuSettings EnableDefault="True"></AppointmentContextMenuSettings>
</telerik:RadScheduler>