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

Differences HTML to PDF

3 Answers 77 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Tobias
Top achievements
Rank 1
Tobias asked on 11 Sep 2014, 01:00 PM
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

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 15 Sep 2014, 10:55 AM
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.

 
0
Tobias
Top achievements
Rank 1
answered on 02 Oct 2014, 01:00 PM
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

0
Plamen
Telerik team
answered on 07 Oct 2014, 12:35 PM
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.

 
Tags
Scheduler
Asked by
Tobias
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Tobias
Top achievements
Rank 1
Share this question
or