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.
Thanks I was missing the
this.ultraSchedulePrintDocument1.PrintStyle = SchedulePrintStyle.Daily;
Hello again,
I have opened a private case to continue our discussion and so I could link it to an internal development issue in regards to not being able to override the number of months displayed in the printed header area. You will be notified automatically when the development issue is updated.
The case number is CAS-143433-H4X8Y9. You will see it located here: https://es.infragistics.com/my-account/support-activity
Let me know if you have any questions regarding this matter.
Hello,
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.
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.
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