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

RadScheduler PDF Export limited to first page

22 Answers 329 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
MI87
Top achievements
Rank 1
MI87 asked on 29 Nov 2011, 10:52 AM
Hello

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

Sort by
0
Peter
Telerik team
answered on 01 Dec 2011, 04:15 PM
Hello Mi87,

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
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
MI87
Top achievements
Rank 1
answered on 01 Dec 2011, 04:29 PM
Hello Peter, thanks

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...
0
Peter
Telerik team
answered on 05 Dec 2011, 04:00 PM
Hi Mi87,

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
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
MI87
Top achievements
Rank 1
answered on 05 Dec 2011, 04:11 PM
Hi Peter, thanks for your reply.
I understand it is a bug, no problem.

Please, can you give me the issue track number, so I can "track this issue"

Thanks
0
Accepted
Peter
Telerik team
answered on 05 Dec 2011, 04:16 PM
Hi Mi87,

Here it is: http://www.telerik.com/support/pits.aspx#/public/aspnet-ajax/8739

Greetings,
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
ICT O&O
Top achievements
Rank 1
answered on 28 Nov 2012, 10:55 AM
Is this issue allready fixed? Because I'm experiencing the same problem
0
Plamen
Telerik team
answered on 30 Nov 2012, 08:45 AM
Hello Filip, 

 
Unfortunately the issue is not fixed yet. I have increased its implementation  priority. Please excuse us for this inconvenience caused.

Kind regards,
Plamen
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
Mark
Top achievements
Rank 2
answered on 22 Jan 2013, 03:16 PM
Is there any update on these issues? Your online example only displays a blank page and all my attempts at using the PDF Export function on RadScheduler just refreshes the page and doesn't even return a blank page for me. From what I see this problem has occurred for a couple years? I must say, I am very frustrated at these types of issues not being resolved considering the high cost of the product. 
0
Plamen
Telerik team
answered on 23 Jan 2013, 07:54 AM
Hello Mark,

 
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?

Greetings,
Plamen
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
Rupali
Top achievements
Rank 1
answered on 04 Feb 2013, 06:00 PM

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?

 

 

 

 

 

0
Plamen
Telerik team
answered on 07 Feb 2013, 02:46 PM
Hello Rupali,

 
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? 

Regards,
Plamen
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
Rupali
Top achievements
Rank 1
answered on 07 Feb 2013, 06:52 PM
Here is my code:

.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.


 

 

 

 

 

0
Plamen
Telerik team
answered on 11 Feb 2013, 03:27 PM
Hi Rupali,

 
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.

Greetings,
Plamen
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
Rupali
Top achievements
Rank 1
answered on 12 Feb 2013, 03:37 PM
Okay, that makes sense. I moved the LBPrint out of the panel, now when I hit it, following error shows up:

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)

0
Plamen
Telerik team
answered on 15 Feb 2013, 04:21 PM
Hello,

 
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.

Regards,
Plamen
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
David
Top achievements
Rank 1
answered on 21 Oct 2014, 07:24 PM
That was helpful. Updating my web.config with the below worked like a charm.

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>
0
Plamen
Telerik team
answered on 22 Oct 2014, 10:42 AM
Hi David,

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.

 
0
David
Top achievements
Rank 1
answered on 22 Oct 2014, 12:09 PM
Thanks!

 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}
0
Plamen
Telerik team
answered on 23 Oct 2014, 12:45 PM
Hi David,

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.

 
0
David
Top achievements
Rank 1
answered on 23 Oct 2014, 03:03 PM
Yes, I moved the images to different css classes and the code behind sets the proper class. It doesn't work quite as neatly as the image size cannot be manipulated so I have to redo my icons in a smaller size so they show up right. But they show up, so all is good!

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;
}
 
0
Plamen
Telerik team
answered on 28 Oct 2014, 01:59 PM
Hello David,

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.

 
0
Rock
Top achievements
Rank 1
answered on 06 Oct 2017, 07:52 AM

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>

 

 

 

 

 

Tags
Scheduler
Asked by
MI87
Top achievements
Rank 1
Answers by
Peter
Telerik team
MI87
Top achievements
Rank 1
ICT O&O
Top achievements
Rank 1
Plamen
Telerik team
Mark
Top achievements
Rank 2
Rupali
Top achievements
Rank 1
David
Top achievements
Rank 1
Rock
Top achievements
Rank 1
Share this question
or