Ticket Q571308
Visible to All Users

Scheduling Report Template

created 11 years ago

I am having problem printing full text for the appointment. I am using report templates of Scheduler. Problem is similar to what you have in Demo.

https://demos.devexpress.com/ASPxSchedulerDemos/Reporting/ReportTemplates.aspx

If you select MonthlyStyle.schrepx you will see only time is displayed. not the details.

How do I print the details I see on calendar on the report?

Thanks
Milind

Answers approved by DevExpress Support

created 11 years ago (modified 11 years ago)

Hello Milind,
I suggest you disable built-in display of the appointment's interval by changing the HorizontalWeek.AppointmentDisplayOptions.EndTimeVisibility and HorizontalWeek.AppointmentDisplayOptions.StartTimeVisibility property values and generating the custom appointment's text that will be printed in the report in the HorizontalWeek.InitAppointmentDisplayText event handler:

Visual Basic
Private Sub horizontalWeek1_InitAppointmentDisplayText(ByVal sender As Object, ByVal e As DevExpress.XtraScheduler.AppointmentDisplayTextEventArgs) Handles horizontalWeek1.InitAppointmentDisplayText Dim appointmentText As String = "" appointmentText &= "Start: " & e.ViewInfo.Appointment.Start.ToShortTimeString() & Constants.vbCrLf appointmentText &= "End: " & e.ViewInfo.Appointment.End.ToShortTimeString() & Constants.vbCrLf appointmentText &= "Subject: " & e.ViewInfo.Appointment.Subject & Constants.vbCrLf e.Text = appointmentText End Sub

Please take special note that the HorizontalWeek.AppointmentDisplayOptions.AppointmentAutoHeight property needs to be set to true.
I have attached a sample project to demonstrate this approach in action.
Please check it and let me know what you think about this solution.

    Comments (2)
    MM MM
    Milind Mhasawade 11 years ago

      It worked. Thank you for your help.

      DevExpress Support Team 11 years ago

        You are welcome!
        I am happy to hear that my assistance was helpful to you.
        Should you have any questions regarding our products, do not hesitate to contact us.

        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.