I am currently working on a C# project that uses the Janus schedule
controls, and am having trouble getting it to print correctly in Day
view. The problem is that it will not print out the owners of the
appointments unless I set the ShowAllDayArea parameter to true. When I
do this, a large and unsightly grey box is drawn above the actual
schedule in day view, wasting space and making things look generally
ugly.
I am using the built in schedule print component, and the code that
does the printing is listed below. I've also included two links to
images of the output, one with the ShowAllDayArea set to true, one
without.
----begin code---
private void btnDAPrint_Click(object sender, System.EventArgs args) {
SchedulePrintDocument spd = new SchedulePrintDocument();
spd.Schedule = schedDoctor;
spd.DayViewPrintMode = DayViewPrintMode.PagePerView;
spd.DefaultPageSettings.Landscape = true;
spd.DefaultPageSettings.Margins.Bottom =
spd.DefaultPageSettings.Margins.Top =
spd.DefaultPageSettings.Margins.Left =
spd.DefaultPageSettings.Margins.Right = 50;
spd.HeaderFont = new Font("Arial", 16, FontStyle.Bold);
spd.HeaderCenter = comboDAClinic.SelectedItem.ToString() + " Doctor
Schedule: " + dpDAWeekOf.Value.ToShortDateString();
//" Doctor Schedule for the Week of " +
GetMonday(dpHAWeekOf.Value).ToString("MM/dd/yyyy");
spd.ShowDateHeader = false;
spd.Print();
}
------------end code-----------------
Image with all day area ON:
http://smtose.org/alldayon.jpg
Image with all day area OFF:
http://smtose.org/alldayoff.jpg
Please excuse the censorship on the images but I work for a medical
group so HIPA laws apply :-/
Though the grey area on the printouts is not substantial, it's pretty
ugly when the program is running. Additionally, does anyone know how
to adjust the amount of space between times on the component? I'd like
the make the distance between the hours about half of what it currently
is without changing the scale from 15 minute steps, and cannot find a
way to do this.
Thank you in advance for any help you can offer. We've been toying
with this for far too long and I'm hoping someone will have an answer
so we can put it behind us.