Exemple #1
0
        // on document starting show tag input form to the user and initialize document tags
        private void _printDoc_DocumentStarting(object sender, EventArgs e)
        {
            DateTime     start        = _schedule.VisibleDates[0].Date;
            DateTime     end          = _schedule.VisibleDates[_schedule.VisibleDates.Count - 1].Date;
            CalendarInfo calendarInfo = _schedule.CalendarHelper.Info;

            // Show tag input form to end-user.
            // This is a default form shown by the C1PrintDocument control.
            // You can create your own form for this purpose, show it, and set C1PrintDocumentTags
            // according to the user's input.
            PrintDocument.EditTags();

            CurrentStyle.SetupTags(PrintDocument, _schedule.DataStorage.AppointmentStorage.Appointments,
                                   _currentAppointments, start, end, HidePrivateAppointments, calendarInfo);
        }