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

ExportToPdf Creates Black Images

1 Answer 43 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 09 Aug 2016, 05:09 PM

Hi, I am trying to export the scheduler to pdf using the exportToPdf method, and on long schedules with paging enabled returns black images after the first page, where the schedule image should be. Does anyone know the cause and solution to this?

The code for when the export occurs looks like this:

            var schedulerPdfSettings = RadScheduler1.ExportSettings.Pdf;           
            schedulerPdfSettings.PageTitle = "some title";
            schedulerPdfSettings.PaperOrientation = ScheduleSessionManager.IsTimelineView ? SchedulerPaperOrientation.Landscape : SchedulerPaperOrientation.Portrait;
            schedulerPdfSettings.AllowPaging = true;
            RadScheduler1.ExportSettings.OpenInNewWindow = true;
            string[] styleSheets = { "../../Content/css/scheduleExport.css" };
            schedulerPdfSettings.StyleSheets = styleSheets;
            RadScheduler1.ExportToPdf();

1 Answer, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 12 Aug 2016, 10:27 AM
Hello Thomas,

The black screen issue has been previously isolated to a Windows update (KB3057839). Recently the same issue has been reported several times by customers. Apparently, there has been some other update that breaks the DrawToBitmap() functionality. Unfortunately, so far we were not able to reproduce the issue on our side.

The new information from your scenario is the fact that the problem is being observed when RadScheduler is exported in multi-page PDF.

If you don't have installed on your server the KB3057839 update (the one that causes the issue discussed in the forum thread), you could try to remove the KB3070102 update (the one that was fixing the discussed issue), if you have it installed. Other things you could do is to:
- Remove the KB3156417 update, if you have it installed;
- Install the KB3061518 update, if you don't have it;
- Install the KB3081320 update, if you don't have it.

The above suggestions come from a previous support thread, where we have discussed with a customer the differences in our compared to his server environment.

Alternatively, if it is applicable to your scenario, you could export the RadScheduler using ourRadClientExportManager.

You could also help us to isolate the exact reason for that problem by providing us with the full details of your server, full list of the installed updates and information of the IIS you are deploying to.

Please let me know if the above suggestions help you in resolving the issue.

Regards,
Veselin Tsvetanov
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Scheduler
Asked by
Thomas
Top achievements
Rank 1
Answers by
Veselin Tsvetanov
Telerik team
Share this question
or