ExportToPdf Creates Black Images

2 posts, 0 answers
  1. Thomas
    Thomas avatar
    1 posts
    Member since:
    Aug 2016

    Posted 09 Aug 2016 Link to this post

    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;

  2. Veselin Tsvetanov
    Veselin Tsvetanov avatar
    877 posts

    Posted 12 Aug 2016 Link to this post

    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.

    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.
Back to Top