I could use some help when printing a monthly schedule.
I am using winschedule to show deliveries on a monthly printout. I set the appointments to all day and then fill subject with a string for example, "NI - 302 - Walla Walla Company". I need to show all info in day box on calander and would also like to change color based on first 2 letters, "NI". Also, maybe if I set text to smaller font that would work as well.
Any suggestions, examples would be greatly appreciated.
Hello dpickart,
I have investigated your requests and thus far determined that they are both new product ideas. You can however change the color and font of the subject line by accessing the following AppointmentAppearance property.
this.ultraMonthViewSingle1.CalendarLook.AppointmentAppearance.ForeColor = Color.Red
this.ultraMonthViewSingle1.CalendarLook.AppointmentAppearance.FontData.SizeInPoints = 5
You can suggest new product ideas for future versions (or vote for existing ones) at <http://ideas.infragistics.com>.
OK, 1 last question as it relates to printing monthly schedules.
How do I show location for appointment in day box on monthly calendar? So far I have not been able to get it to appear.
Thanks I get it to work. Just 1 more question. I am trying to cut it's height in half, or better yet, have it determined by number of appointments for that day. Starts at 100% but if 4 appointments each is 1/4 height. Is this possible?
I found where the height is set, So never mind on that...but can I set it based on appointments for day?
This feature that I provided will override all appointments added to the calendar to a single height. Ultimately what you are looking for is a new product idea as well.
oMichael,
Thanks again for your help I am using what you provided and it is working well.
However, I have 1 more issue that I cannot solve. I tried to submit a new question but could not so I would like to ask it here. I cannot change the default space around the monthly calendar when I print. I can change the margins, but they work of some initial starting point and move printing down further that I show. I would like to use all that surrounding space to possible print a larger monthly view. I attached a pdf to show what is happening.
I am not quite sure what you would do with the space around the calendar besides changing the margins. You can change the default margins in code before you display the print preview/and go into page setup. To do so please use the following example to set the margins to zero to allow the calendar to take up the entire page. Let me know if this is what you are looking for. Placing the following code in the form load enlarges the calendar but the text displayed remains the same format, which is expected. The margins default are set at 100 pixels.
this.ultraSchedulePrintDocument1.Page.Document.DefaultPageSettings.Margins.Top = 0; this.ultraSchedulePrintDocument1.Page.Document.DefaultPageSettings.Margins.Bottom = 0; this.ultraSchedulePrintDocument1.Page.Document.DefaultPageSettings.Margins.Left = 0; this.ultraSchedulePrintDocument1.Page.Document.DefaultPageSettings.Margins.Right = 0;
The preview page is made up of one UIElement, PreviewPageUIElement. Therefore you wouldn't be able to modify the size of the calendar content with a creation/draw filter.