473,404 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Janus schedule control print question.

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
1 2774
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: argniw | last post by:
I have a schedule of annual events that need to occur in different locations throughout the year. Each event has a due date associated with it. I also have an optimal schedule that consolidates...
1
by: Beringer | last post by:
Hello, I am creating a custom schedule control similar to the way Outlook behaves. I am having some difficulty trying to graphically/visually resolve conflicting appointments on a schedule. ...
0
by: juli | last post by:
If someone ever worked with gridEX (Janus Control) : Could you please tell me how can I make linked row - when I press the row - event being invoked? Thank you in advance!
0
by: cyshao | last post by:
Hi, My Friends: I have a program and I want to let machine automaticly auto it by using Windows task schedule. Sure, I can manually Create/Modify task in Windows task schedule. But I also hope...
4
by: Larry David | last post by:
Hi, I was checking out the UI at www.janusys.com and was very impressed. Is this all done with ASP.NET controls or are they embedding a .NET app into the page somehow? If it's done with ASP.NET...
1
by: Dean Slindee | last post by:
I am writing a VB.Net application that will replace a series of DTS packages. The DTS packages run once a day at a scheduled time automatically. Would this new application be a Windows Service...
1
by: palmah11 | last post by:
Hi, I have a Windows Application in which i am using Janus GRidEx for displying data. In this Janus Grid i have a check box column. i want a functionality if user selects checkbox for particula...
1
by: ajey | last post by:
Hi all I recently downloaded janus gridex for my project... the problem is iam unable to bind data... here is what i do ......
0
by: Sasie7679 | last post by:
Hi, We are using Janus GridEX control(1.6e) for VB6.0. We compile our VB exe in windows 2003 server. With the latest security patch for OLE from microsoft, the exe crashes during compilation. We...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.