"Object reference not set to an instance of an object" error when Exporting PDF from scheduler

  The Schedule Control - 

<ej:Schedule StartHour="8" EndHour="18" ShowQuickWindow="true" ShowLocationField="true" ShowAppointmentNavigator="false" Navigation="onNavigation" AppointmentWindowOpen="onAppointmentOpen" BeforeAppointmentRemove="BeforeAppointmentRemove" DragStop="DragStop" EnableLoadOnDemand="true" OnServerExportPDF="Schedule1_OnServerExportPDF" OnExportToExcel="Schedule1_ServerExportExcel" ClientIDMode="Static" runat="server" ID="Schedule1" Width="100%" CellHeight="60px" CellWidth="120px" CurrentView="Workweek" Orientation="Horizontal" ShowCurrentTimeIndicator="false">


        <TimeScale Enable="true" MajorSlotTemplateId="#majorTemplate" />

        <AgendaViewSettings DaysInAgenda="5" />


        <ReminderSettings Enable="true" AlertBefore="10" />

        <TooltipSettings Enable="True"></TooltipSettings>

        <PrioritySettings Enable="true" Text="text" Value="value"></PrioritySettings>

        <Resources>

            <ej:Resources Field="Categorize" Name="Categorize" Title="Departments" AllowMultiple="true">

                <ResourceSettings Color="color" Id="id" Text="text">

                </ResourceSettings>

            </ej:Resources>

            <ej:Resources Field="Owner" Name="Owner" Title="Users" AllowMultiple="true">

                <ResourceSettings Color="color" Id="id" Text="text" GroupId="groupId">

                </ResourceSettings>

            </ej:Resources>


        </Resources>

        <Group Resources="Categorize,Owner" />


        <DataManager CrossDomain="true" URL="Comm_Calander.aspx/Data" CrudURL="Syncfusion_Scheduler_WebService.asmx/CrudResult" InsertURL="Syncfusion_Scheduler_WebService.asmx/InsertData" UpdateURL="Syncfusion_Scheduler_WebService.asmx/UpdateData" RemoveURL="Syncfusion_Scheduler_WebService.asmx/RemoveData" Adaptor="UrlAdaptor" />

        <AppointmentSettings Id="Id" ResourceFields="Owner" Subject="Subject" AllDay="AllDay" Priority="Priority" StartTime="StartTime" EndTime="EndTime" Description="Description" Recurrence="Recurrence" RecurrenceRule="RecurrenceRule" StartTimeZone="StartTimeZone" EndTimeZone="EndTimeZone" />

    </ej:Schedule>





1 Reply 1 reply marked as answer

RV Ravikumar Venkatesan Syncfusion Team August 2, 2022 05:02 PM UTC

Hi Kavishka,


Greetings from Syncfusion support.


We have validated your query “’Object reference not set to an instance of an object; error when Exporting PDF from scheduler” at our end by preparing a sample based on your shared details. But, we are unable to reproduce the problem on our end. Kindly try the shared sample and if you still facing the same problem kindly share the below details it will help us to provide the solution for the problem earlier.


  • Reproduce the problem in the shared sample or
  • Share a simple issue reproducing sample if possible.

                                                                                                                                                                                                                                           

Regards,

Ravikumar Venkatesan


Attachment: ejwebformsschedulepdfexport_32211d96.zip

Marked as answer
Loader.
Up arrow icon