RadScheduler PDF Export limited to first page

22 posts, 1 answers
  1. MI87
    MI87 avatar
    27 posts
    Member since:
    Jul 2010

    Posted 29 Nov 2011 Link to this post

    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

  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 01 Dec 2011 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. MI87
    MI87 avatar
    27 posts
    Member since:
    Jul 2010

    Posted 01 Dec 2011 Link to this post

    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...
  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 05 Dec 2011 Link to this post

    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
  6. MI87
    MI87 avatar
    27 posts
    Member since:
    Jul 2010

    Posted 05 Dec 2011 Link to this post

    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
  7. Answer
    Peter
    Admin
    Peter avatar
    6637 posts

    Posted 05 Dec 2011 Link to this post

    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
  8. Filip Jacobs
    Filip Jacobs avatar
    1 posts
    Member since:
    Feb 2012

    Posted 28 Nov 2012 Link to this post

    Is this issue allready fixed? Because I'm experiencing the same problem
  9. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 30 Nov 2012 Link to this post

    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.
  10. Mark
    Mark avatar
    2 posts
    Member since:
    Apr 2012

    Posted 22 Jan 2013 Link to this post

    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. 
  11. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 23 Jan 2013 Link to this post

    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.
  12. Rupali
    Rupali avatar
    3 posts
    Member since:
    Jan 2013

    Posted 04 Feb 2013 Link to this post

    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?

     

     

     

     

     

  13. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 07 Feb 2013 Link to this post

    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.
  14. Rupali
    Rupali avatar
    3 posts
    Member since:
    Jan 2013

    Posted 07 Feb 2013 Link to this post

    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.


     

     

     

     

     

  15. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 11 Feb 2013 Link to this post

    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.
  16. Rupali
    Rupali avatar
    3 posts
    Member since:
    Jan 2013

    Posted 12 Feb 2013 Link to this post

    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)

  17. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 15 Feb 2013 Link to this post

    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.
  18. David
    David avatar
    37 posts
    Member since:
    Aug 2014

    Posted 21 Oct 2014 in reply to Plamen Link to this post

    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>
  19. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 22 Oct 2014 Link to this post

    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.

     
  20. David
    David avatar
    37 posts
    Member since:
    Aug 2014

    Posted 22 Oct 2014 in reply to Plamen Link to this post

    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}
  21. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 23 Oct 2014 Link to this post

    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.

     
  22. David
    David avatar
    37 posts
    Member since:
    Aug 2014

    Posted 23 Oct 2014 in reply to Plamen Link to this post

    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;
    }
     
  23. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 28 Oct 2014 Link to this post

    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.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017