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.
I'm down to 1 error. I get this in the class file
Error 11 Class 'CreationUIElement' must implement 'Function BeforeCreateChildElements(parent As UIElement) As Boolean' for interface 'Infragistics.Win.IUIElementCreationFilter'. C:\Dev\Avada\AdTracker\AdTracker\CreationUIElement.vb 7 16 AdTracker
I have tried to use your form as is and also split out into a class, both ways I get that error on the line
Implements IUIElementCreationFilter
Please help. if I get past this I should be done with this project.
I attached a VB project. When I converted the project it I forgot to add that both After/BeforeCreateChildElements require Implements IUIElementCreationFilter."" For more details please visit the following documentation: http://help.infragistics.com/NetAdvantage/WinForms/Current/CLR4.0/
Let me know if you have any additional questions.
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?
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.
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.
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.