By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,395 Members | 2,505 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,395 IT Pros & Developers. It's quick & easy.

Janus schedule control print question.

P: n/a
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.

Nov 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi,

You better go to the Janus support , as it's not part of the framework not
much people should be using it ( This is the first time I hear of it)
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
<gr******@gmail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
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.

Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.