Differences HTML to PDF

4 posts, 0 answers
  1. Tobias
    Tobias avatar
    2 posts
    Member since:
    Aug 2014

    Posted 11 Sep 2014 Link to this post

    Hello everybody,

    i use the telerik RadScheduler and the Timeline-View.

    I will export the current view to PDF. The HTML-View shows all correct.
    In the PDF the inline row of the timeline is smaller then the vertical headers. (Take a look to the Attachment)

    The html and pdf have the same css files.

    My C# code:
    RadScheduler1.ExportSettings.Pdf.PaperSize = SchedulerPaperSize.A4;
    RadScheduler1.ExportSettings.Pdf.PaperOrientation = SchedulerPaperOrientation.Landscape;
     
    RadScheduler1.ExportSettings.Pdf.PageTopMargin = Unit.Parse("10mm");
    RadScheduler1.ExportSettings.Pdf.PageBottomMargin = Unit.Parse("10mm");
    RadScheduler1.ExportSettings.Pdf.PageLeftMargin = Unit.Parse("10mm");
    RadScheduler1.ExportSettings.Pdf.PageRightMargin = Unit.Parse("10mm");
    RadScheduler1.ExportSettings.Pdf.AllowPaging = true;
    RadScheduler1.RowHeaderWidth = Unit.Parse("45mm");
    RadScheduler1.Width = Unit.Parse("200mm");
     
    SqlDSEmployee.SelectCommand = sql();
    SqlDSEmployee.DataBind();
     
    RadScheduler1.ExportToPdf();


    My aspx:

    <ExportSettings OpenInNewWindow="True">
                 <Pdf PageTopMargin="10mm" PageBottomMargin="10mm" PageLeftMargin="10mm" PageRightMargin="10mm"
                        PaperSize="A4" StyleSheets="Content/StylePDF.css">
                </Pdf>
    </ExportSettings>

    What can I do? Is this a problem with the PDF-Exporter?

    Best regards
    Tobias
  2. Plamen
    Admin
    Plamen avatar
    2734 posts

    Posted 15 Sep 2014 Link to this post

    Hi Tobias,

    It looks like a bug in RadScheduler. Thank you for reporting it. I have logged it for fixing and we will do our best to fix it as soon as possible. Please excuse us for this inconvenience.

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Tobias
    Tobias avatar
    2 posts
    Member since:
    Aug 2014

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

    Hello Telerik-Team,

    The Problem with the rows was a CSS-Problem (margin und padding)

    But now I have the same problem with the column. The appointment is smaller than the day. If we generate a PDF with many days,
    someday the appointment is on the wrong day.

    I think in your demo you have the same problem. In the 3-days-timeline-view the problem is not so large but I want to print a 30-day-timeline-view.
    http://demos.telerik.com/aspnet-ajax/scheduler/examples/pdfexport/defaultcs.aspx

    Can you simulate the problem, with the 30-days-timeline-view? Do you have some workaround for this issue?

    Best regards

    Tobias

  5. Plamen
    Admin
    Plamen avatar
    2734 posts

    Posted 07 Oct 2014 Link to this post

    Hi,

    Yes unfortunately this is another known bug in the PDF functionality that is observed because of the difference the way the inbuilt in browser that is used to print the appointments is rendering the timeslots.
    It is logged for fixing and we will do our best to fix it as soon as possible.

     Please excuse us for this inconvenience caused by 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