Because the Print as far as I know doesn't include the owner information, I need to include it on the print.
I was thinking of changing the calendar info (aka make copy) and change the subject matter of each appointment to include the owner. Is there a way of customizing the
ultraSchedulePrintDocument subject display or can I make a copy of the calendar info and hack the subjects for the
ultraSchedulePrintDocument.
Probably pretty easy - just not sure of best way of doing so. I don't think ultraCalcendarInfo implements the ICloneable. If it did, it would be easy to do.
Hello,
Could you please provide us with a mockup of what it is you are trying to achieve so we have a better understanding of your requirements?
We offer several different print styles when using the UltraSchedulePrintDocument class. There are a list of them here:
http://help.infragistics.com/Help/Doc/WinForms/2012.1/CLR2.0/HTML/WinSchedule_Printing_Support_in_WinSchedule.html
The Memo Style may be of some interest to you. "Each item is output with the user name (i.e. owner) with a dark separator line underneath followed by the details of the activity including the subject, location, start time, end time and other miscellaneous information (e.g. recurrence, recurrence patterns, required attendees, description, meeting status, etc.)"
Let me know if you have any questions regarding this matter.
Here are some snapshots from the application
http://s7.postimg.org/nn2wyiyyz/Pooled_Application.jpg
http://s12.postimg.org/vp4sb41h9/Multi_Day_Pooled_Application.jpg
Plan on customizing the label to always include the employee who has the vehicle booked in addition to the subject information. Obviously don't need to include the vehcile (aka owner) because it is on the header of the calendar...
I want to include the owner on printout - so would like something similar to the current outlook of application (plan on using the daily view - aka a page / day will be fine). Let me know what the best way of doing this...
Note: we don't fill in everything into the appointments => aka the employee booking the information is inside the Tag => if we can customize memo, maybe (not familiar with memo style -> was basing my code on the Infragistics Sample: Outlook CS => maybe there is a better demo to see the customizations possible on the printouts.
PS> Here is what currently comes out form a print daily version (no information about which vehicle is being booked => aka owner information missing) => pretty much just want owner information added to this print out + customized description / subject to include the information from the Appointment Tag (aka the employee making the request) ...It is good that it retains the appointment color (aka green means the booking is approved and yellow means the booking is awaiting approval)...
http://s28.postimg.org/irjee7i2l/Print_Image.jpg
Another screen dump:http://s29.postimg.org/7cu6exdjb/Print_Image2.jpg
Here is how it looks => the work day at site goes from 6:00 am to 6:00 pm, can we avoid truncating to 6:00 am if someone hypothetically starts or ends late? Just a question as you can see it cuts off at 6:00 => would like it to have a diffeent background coloration for outside normal time range as per the existing UltraDayView.
Don't really expect too many to be working overtime but it is possible => maybe the only time you can book the pooled vehicle is in off hours because it is booked in all general working hours hypothetically.
Also, do we really need the two month calendars at the top (only really need the current month calendar) - is this a property to show how many months get displayed.
1. The SchedulePrintDocument provides template properties to print controls instead of a specified print style as I previously mentioned.
Taken from our documentation:
"The component also exposes several "template" control properties. When a control is created for the print operation, the properties of the corresponding "template" control are copied to the control created by the print document. In addition, the component exposes additional events to allow these controls to be initialized. For example, when an UltraDayView style output is being generated, an UltraDayView is created by the print document; if the TemplateDayView property is set, the properties of that control that do not conflict with the requirements for the print operation are copied over to the newly created control. Subsequently, the InitializeDayView event is invoked to allow any further modification of the control."
http://help.infragistics.com/doc/WinForms/2014.1/CLR4.0/?page=Infragistics4.Win.UltraWinSchedule.v14.1~Infragistics.Win.UltraWinSchedule.UltraSchedulePrintDocument.html
//eg.
this.ultraSchedulePrintDocument1.TemplateDayView = this.ultraDayView1;
2. Current month calendar in header.
We found there is a development issue with resizing the dimensions of the MonthViewMulti, appeared in the header. I will be following up with more information regarding our investigation.
This is how you would display only the current month:
A MonthViewMulti control has a dimensions property that can be set (new size (1,1) to display the current month only. You can use a MonthViewMulti control as the document's template just like the TemplateDayView.
Size dimensions = new Size(1, 1); this.ultraMonthViewMulti1.MonthDimensions = dimensions; this.ultraMonthViewMulti1.ResizeMode = ResizeMode.UseMonthDimensions; ///Attempted code to show current month only. this.ultraSchedulePrintDocument1.TemplateDateHeaderMonthViewMulti = this.ultraMonthViewMulti1; this.ultraSchedulePrintDocument1.TemplateDateHeaderMonthViewMulti.MonthDimensions = dimensions; this.ultraSchedulePrintDocument1.TemplateDateHeaderMonthViewMulti.ResizeMode = ResizeMode.UseMonthDimensions;
this.ultraMonthViewMulti1.MonthDimensions = dimensions;
this.ultraMonthViewMulti1.ResizeMode = ResizeMode.UseMonthDimensions;
///Attempted code to show current month only.
this.ultraSchedulePrintDocument1.TemplateDateHeaderMonthViewMulti = this.ultraMonthViewMulti1;
this.ultraSchedulePrintDocument1.TemplateDateHeaderMonthViewMulti.MonthDimensions = dimensions;
this.ultraSchedulePrintDocument1.TemplateDateHeaderMonthViewMulti.ResizeMode = ResizeMode.UseMonthDimensions;
Let me know if you have any questions or missed any additional requirements you are working on. Again, I will be writing up a development issue for the month dimension issue in the header.
Thanks I was missing the
this.ultraSchedulePrintDocument1.PrintStyle = SchedulePrintStyle.Daily;