Ticket Q468075
Visible to All Users

How to customize Scheduler in a report

created 11 years ago

Hi,

In my process I have designed Aspxscheduler with customized appointments fields, appointment color, background cells of appointments, resource colors dynamically. I used the below methods of Aspxscheduler to customize the resources and appointments:
AspxScheduler_HtmlTimeCellPrepared
AspxScheduler_InitAppointmentImages
AspxScheduler_QueryWorkTime
AspxScheduler_AppointmentViewInfoCustomizing

These customized appointment fields, color / customized background cells of appointments are not getting reflected in XtraSchedulerReporting.

Currently the XtraSchedulerReporting takes up the resource header color as the default appointment cell background and even the customized appointment fields are not shown in the appointment printing. Please tell how to pass the customized fields and colors from Aspxscheduler to XtraSchedulerReporting.

Please find attached images for reference:

Print_1 --> image shows the customized Aspxscheduler
Print_2 --> image shows the customized XtraSchedulerReporting which does not show the customized Aspxscheduler

Thanks.

Answers approved by DevExpress Support

created 11 years ago (modified 11 years ago)

Hi Arulkannan,
XtraReport doesn't apply appointment customization from your ASPxScheduler. If you wish to customize appointments in a report, you need to use the CustomDrawAppointment and CustomDrawAppointmentBackground events. If you wish to customize time cells in your report, use the CustomDrawTimeCell and CustomDrawDayViewAllDayArea events. In these event handlers you can customize a report.
Feel free to contact us if you need additional information.
Thanks
Alex

    Show previous comments (1)
    DevExpress Support Team 11 years ago

      Hi Arulkannan,
      I've attached a project sample illustrating how to customize a report using these events. Please review it. If I can help you with anything else, feel free to contact me.
      Thanks
      Alex

        Hi Alex,
        Thanks for the sample. I have modified the sample you have provided. But, still I could not achieve the below points
        1.In this sample I have modified Page orientation to Landscape for appointment display.But, it didn't get reflected in the report though I changed Orientation of ReportToolbar1,
        2.I want the customized Printed Appointment Color should be displayed in the print display as in the Actual Scheduler Appointment Color which we gave during run time,instead of green(Hard coded)
        3.Printed Appointment should contain all THE CONTENT of Actual Scheduler Appointment instead of only subject getting displayed.
        Could you please provide a solution / sample for this.
        Thanks,

        DevExpress Support Team 11 years ago

          Hi,
          I showed how to customize a report. As I see from the attached sample, your appointments aren't customized. That's why after removing my customized code from the dayViewTimeCells1_CustomDrawAppointmentBackground and dayViewTimeCells1_CustomDrawAppointment methods, appointments in the report look like in the Scheduler. I've attached an image to illustrate this.
          As for the report size, when you modify the report orientation, you need to modify the size of DayViewTimeCells manually so they fill all the avaliable area. After that, this report should be shown correctly.
          As for the appointment content, appointments are shown in the report exactly as in the Scheduler. But in your case, the report size is small, and not all the content is visible. If you modify the number of resources or the report size, all the content will be visible.
          Thanks
          Alex

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.