473,794 Members | 3,056 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I print this (easily?)

Hi

In order to make it easier for my colleagues to write their school reports I
thought I might attempt to write a (simple) program.
At the moment I am working mentally through the steps I would have to code
just to make sure that I can do everything before I start. I have come to a
halt with regard to printing them out.

Any software I produce would have to produce a report in the same format as
the one we curently use (they are hand written at the moment on pre printed
forms although some staff use word templates that mimic the official forms).

Each subject is slightly different but in general they are as follows. I
hope you can follow this even if the formatting isn't perfect.
----------------------------------------------------------------------------
------
Subject Name

Name........... ............... .............. Form........... ...........
Exam Mark........... ...... Median Mark..........

Very Good Good Satisfactory Improvement Needed
Skill 1
Skill 2
Skill 3
Skill 4

----------------------------------------------------------------------------
----------
There are about 20 different subjects and each subject's report is slightly
different. Some do not have marks and hence do not have the line for the
marks (the rest of the report shifts up) and each subject will have
different skills listed and a different number of skills. Some skills occupy
two lines and some only one. The skill section is a table with grid lines
where a tick is placed to indicate the level achieved. Below the tick boxes
is a section for a comment of a few sentences which takes up the rest of the
page size (A5)

This is what I had thought of for the database structure.
Each record would contain the following fields:
Subject Name
Pupil Name
Form
Exam Mark
Median Mark
Skill 1 Level (4 fields - one for each level)
Skill 2 Level (4 fields - one for each level)
Skill 3 Level (4 fields - one for each level)
Skill 4 Level (4 fields - one for each level) I would need a maximum of 10
skills.
Comment

I hope you have grasped what I need. Now the big question - How do I print
it out? Any suggestions?

It would be much neater if I stored a single binary type string for the
skills and used this for storing the skill information. For example reading
from left to right 001010000100 would convert to 3 skills 0010
(satisfactory) 1000 (very good) and 0100 (good). Does this make it harder to
print.

The position of the sections on a page will depend on whether there are any
marks, how many skills there are and which skills take up two lines.

Is this a candidate for Crystal Reports or PrintDocument? (I have vb.net but
only have limited experience)

Any suggestions would be very much appreciated. It would greatly help an
already overworked teacher.

Thank you
--
Jonathan Smith
ICT Coordinator
Portsmouth High School
Kent Road
Southsea
Hants

http://www.gdst.net/portsmouthhigh/
Nov 20 '05 #1
6 945
XML + XSLT to HTML would be the easiest to my mind but you'd have to
generate the XML from the DB (shouldn't be too hard).
Marrowsoft Xselerator would then be the tool of choice for me to take that
XML and generate HTML (eg to print etc.).

Chris.

"Jonathan Smith" <j.*******@brea the.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Hi

In order to make it easier for my colleagues to write their school reports I
thought I might attempt to write a (simple) program.
At the moment I am working mentally through the steps I would have to code
just to make sure that I can do everything before I start. I have come to a
halt with regard to printing them out.

Any software I produce would have to produce a report in the same format as
the one we curently use (they are hand written at the moment on pre printed
forms although some staff use word templates that mimic the official forms).

Each subject is slightly different but in general they are as follows. I
hope you can follow this even if the formatting isn't perfect.
----------------------------------------------------------------------------
------
Subject Name

Name........... ............... .............. Form........... ...........
Exam Mark........... ...... Median Mark..........

Very Good Good Satisfactory Improvement Needed
Skill 1
Skill 2
Skill 3
Skill 4

----------------------------------------------------------------------------
----------
There are about 20 different subjects and each subject's report is slightly
different. Some do not have marks and hence do not have the line for the
marks (the rest of the report shifts up) and each subject will have
different skills listed and a different number of skills. Some skills occupy
two lines and some only one. The skill section is a table with grid lines
where a tick is placed to indicate the level achieved. Below the tick boxes
is a section for a comment of a few sentences which takes up the rest of the
page size (A5)

This is what I had thought of for the database structure.
Each record would contain the following fields:
Subject Name
Pupil Name
Form
Exam Mark
Median Mark
Skill 1 Level (4 fields - one for each level)
Skill 2 Level (4 fields - one for each level)
Skill 3 Level (4 fields - one for each level)
Skill 4 Level (4 fields - one for each level) I would need a maximum of 10
skills.
Comment

I hope you have grasped what I need. Now the big question - How do I print
it out? Any suggestions?

It would be much neater if I stored a single binary type string for the
skills and used this for storing the skill information. For example reading
from left to right 001010000100 would convert to 3 skills 0010
(satisfactory) 1000 (very good) and 0100 (good). Does this make it harder to
print.

The position of the sections on a page will depend on whether there are any
marks, how many skills there are and which skills take up two lines.

Is this a candidate for Crystal Reports or PrintDocument? (I have vb.net but
only have limited experience)

Any suggestions would be very much appreciated. It would greatly help an
already overworked teacher.

Thank you
--
Jonathan Smith
ICT Coordinator
Portsmouth High School
Kent Road
Southsea
Hants

http://www.gdst.net/portsmouthhigh/

Nov 20 '05 #2
this is very much a job for crystal reports...i would sggest
conditionally supressed sections based on the subject for example...if
this is for a school, i would be glad to help in more detail if you would
like. i havent done crystal work in .net, but i have extensive
experience with it in versions 5-8 and some experience with c#

chris
ch******@DontSp amMe-mindspring.com

"Jonathan Smith" <j.*******@brea the.com> wrote in
news:#t******** ******@tk2msftn gp13.phx.gbl:
Hi

In order to make it easier for my colleagues to write their school
reports I thought I might attempt to write a (simple) program.
At the moment I am working mentally through the steps I would have to
code just to make sure that I can do everything before I start. I have
come to a halt with regard to printing them out.

Any software I produce would have to produce a report in the same
format as the one we curently use (they are hand written at the moment
on pre printed forms although some staff use word templates that mimic
the official forms).

Each subject is slightly different but in general they are as follows.
I hope you can follow this even if the formatting isn't perfect.
-----------------------------------------------------------------------
----- ------
Subject Name

Name........... ............... ..............
Form........... ........... Exam Mark........... ......
Median Mark..........

Very Good Good Satisfactory Improvement Needed
Skill 1
Skill 2
Skill 3
Skill 4

-----------------------------------------------------------------------
----- ----------
There are about 20 different subjects and each subject's report is
slightly different. Some do not have marks and hence do not have the
line for the marks (the rest of the report shifts up) and each subject
will have different skills listed and a different number of skills.
Some skills occupy two lines and some only one. The skill section is a
table with grid lines where a tick is placed to indicate the level
achieved. Below the tick boxes is a section for a comment of a few
sentences which takes up the rest of the page size (A5)

This is what I had thought of for the database structure.
Each record would contain the following fields:
Subject Name
Pupil Name
Form
Exam Mark
Median Mark
Skill 1 Level (4 fields - one for each level)
Skill 2 Level (4 fields - one for each level)
Skill 3 Level (4 fields - one for each level)
Skill 4 Level (4 fields - one for each level) I would need a maximum
of 10 skills.
Comment

I hope you have grasped what I need. Now the big question - How do I
print it out? Any suggestions?

It would be much neater if I stored a single binary type string for
the skills and used this for storing the skill information. For
example reading from left to right 001010000100 would convert to 3
skills 0010 (satisfactory) 1000 (very good) and 0100 (good). Does this
make it harder to print.

The position of the sections on a page will depend on whether there
are any marks, how many skills there are and which skills take up two
lines.

Is this a candidate for Crystal Reports or PrintDocument? (I have
vb.net but only have limited experience)

Any suggestions would be very much appreciated. It would greatly help
an already overworked teacher.

Thank you
--
Jonathan Smith
ICT Coordinator
Portsmouth High School
Kent Road
Southsea
Hants

http://www.gdst.net/portsmouthhigh/


Nov 20 '05 #3
Jonathan Smith wrote:
Hi

In order to make it easier for my colleagues to write their school
reports I thought I might attempt to write a (simple) program.
At the moment I am working mentally through the steps I would have to
code just to make sure that I can do everything before I start. I
have come to a halt with regard to printing them out.


Personal suggestion - firstly design an Access database (any version) to
hold the data. Design it how you want, without thinking about how it is to
be displayed, for the moment. Concentrate on one thing at a time. Access
is cheap and available, and will be all that you require for the moment.
Don't go overboard yet.

Next, within Access, construct forms for the entering of the data. There
are various Access VBA groups in this news server, and they would be a lot
more relevent than most of the groups that you have sent this to.
Unfortunately, I don't know which group you are reading, or I would have
snipped some of them, but it seems that you are trying to run before you can
crawl. Don't worry, if you need to transfer it to a VB executable later,
you can, but for the moment, learn how to do it using only Access.

Once you have the storage and data entry out of then way, then and only then
should you look at reporting. Now Access does come with some reporting
tools, but I would suggest that you (or the school) look at purchasing and
using Crystal Reports. Seeing as you have addresses this to that group, you
may already have it. Once you get to that stage, post again.

Main point is, don't run before you can walk. This stuff may look easy, but
it isn't. Take it one step at a time, and take your time doing it. If you
are doing this part time, and I am assuming that your regular occupation is
a teacher, which doesn't leave a great deal of spare time, you probably
won't have a finished product for some months. Don't rush it.
--
Regards,

Michael Cole
Nov 20 '05 #4
As Chris mentioned, you can try any of the reporting tools like
Crystal. If you are looking for cheaper options then you can try
either R&R reports(www.livewarepub.com), Active
Reports(http://www.datadynamics.com) or
Intelliview(www.intelliview.com)

Cathy
"Michael Cole" <mi**********@h ansen.com.inval id> wrote in message news:<ei******* ******@tk2msftn gp13.phx.gbl>.. .
Jonathan Smith wrote:
Hi

In order to make it easier for my colleagues to write their school
reports I thought I might attempt to write a (simple) program.
At the moment I am working mentally through the steps I would have to
code just to make sure that I can do everything before I start. I
have come to a halt with regard to printing them out.


Personal suggestion - firstly design an Access database (any version) to
hold the data. Design it how you want, without thinking about how it is to
be displayed, for the moment. Concentrate on one thing at a time. Access
is cheap and available, and will be all that you require for the moment.
Don't go overboard yet.

Next, within Access, construct forms for the entering of the data. There
are various Access VBA groups in this news server, and they would be a lot
more relevent than most of the groups that you have sent this to.
Unfortunately, I don't know which group you are reading, or I would have
snipped some of them, but it seems that you are trying to run before you can
crawl. Don't worry, if you need to transfer it to a VB executable later,
you can, but for the moment, learn how to do it using only Access.

Once you have the storage and data entry out of then way, then and only then
should you look at reporting. Now Access does come with some reporting
tools, but I would suggest that you (or the school) look at purchasing and
using Crystal Reports. Seeing as you have addresses this to that group, you
may already have it. Once you get to that stage, post again.

Main point is, don't run before you can walk. This stuff may look easy, but
it isn't. Take it one step at a time, and take your time doing it. If you
are doing this part time, and I am assuming that your regular occupation is
a teacher, which doesn't leave a great deal of spare time, you probably
won't have a finished product for some months. Don't rush it.

Nov 20 '05 #5
crReportDoc = new ReportDocument( );
{ ... Your set path, log on, parameters stuffs here ... }
ExportFormatTyp e exportType;
string outputName;
if(radioPDF.Che cked)
{
outputName = rptName.Substri ng(0, rptName.Length - 4) + ".pdf";
exportType = ExportFormatTyp e.PortableDocFo rmat;
}
else if (radioXLS.Check ed)
{
outputName = rptName.Substri ng(0, rptName.Length - 4) + ".xls";
exportType = ExportFormatTyp e.Excel;
}
else
{
outputName = rptName.Substri ng(0, rptName.Length - 4) + ".doc";
exportType = ExportFormatTyp e.WordForWindow s;
}
ExportOptions CrExpOpt;
CrystalDecision s.Shared.DiskFi leDestinationOp tions DiskOpts = new
CrystalDecision s.Shared.DiskFi leDestinationOp tions();
DiskOpts.DiskFi leName = ConfigurationSe ttings.AppSetti ngs["ReportOutputDi r"]
+ outputName;
CrExpOpt = crReportDoc.Exp ortOptions;
CrExpOpt.Destin ationOptions = DiskOpts;
CrExpOpt.Export DestinationType = ExportDestinati onType.DiskFile ;
CrExpOpt.Export FormatType = exportType;
crReportDoc.Exp ort();
{ ... then just redirect to the pdf/xls/doc file ... }

elv
"Cathy Jones" <ca***********@ yahoo.com> wrote in message
news:bc******** *************** ***@posting.goo gle.com...
As Chris mentioned, you can try any of the reporting tools like
Crystal. If you are looking for cheaper options then you can try
either R&R reports(www.livewarepub.com), Active
Reports(http://www.datadynamics.com) or
Intelliview(www.intelliview.com)

Cathy
"Michael Cole" <mi**********@h ansen.com.inval id> wrote in message

news:<ei******* ******@tk2msftn gp13.phx.gbl>.. .
Jonathan Smith wrote:
Hi

In order to make it easier for my colleagues to write their school
reports I thought I might attempt to write a (simple) program.
At the moment I am working mentally through the steps I would have to
code just to make sure that I can do everything before I start. I
have come to a halt with regard to printing them out.


Personal suggestion - firstly design an Access database (any version) to
hold the data. Design it how you want, without thinking about how it is to be displayed, for the moment. Concentrate on one thing at a time. Access is cheap and available, and will be all that you require for the moment.
Don't go overboard yet.

Next, within Access, construct forms for the entering of the data. There are various Access VBA groups in this news server, and they would be a lot more relevent than most of the groups that you have sent this to.
Unfortunately, I don't know which group you are reading, or I would have
snipped some of them, but it seems that you are trying to run before you can crawl. Don't worry, if you need to transfer it to a VB executable later, you can, but for the moment, learn how to do it using only Access.

Once you have the storage and data entry out of then way, then and only then should you look at reporting. Now Access does come with some reporting
tools, but I would suggest that you (or the school) look at purchasing and using Crystal Reports. Seeing as you have addresses this to that group, you may already have it. Once you get to that stage, post again.

Main point is, don't run before you can walk. This stuff may look easy, but it isn't. Take it one step at a time, and take your time doing it. If you are doing this part time, and I am assuming that your regular occupation is a teacher, which doesn't leave a great deal of spare time, you probably
won't have a finished product for some months. Don't rush it.

Nov 20 '05 #6
i love databases and their uses and value to reporting are almost
unlimited, but in this case, i would like to respectfully disagree with
the choice of access as a data source unless they have alread started
down that route. for such a small, targeted application by a beginner,
it might be better to just serialize a dataset and avoid the added
complexity of access. the .net version of crystal understands datasets so
that's not an issue. that way, deployment is dramatically simplified by
keeping the app completely .net and free of com...chances are, the data
structures will need re-working soon anyway. there are obvious
normalization issues even with the given sample data structue, but i
intensionally ignored them since i didnt want to discourage such a noble
effort ;). of course, all of this assumes that this is a single user
app, but if they do choose to use a database, then i believe msde is a
better choice.

"Michael Cole" <mi**********@h ansen.com.inval id> wrote in
news:ei******** *****@tk2msftng p13.phx.gbl:
Jonathan Smith wrote:
Hi

In order to make it easier for my colleagues to write their school
reports I thought I might attempt to write a (simple) program.
At the moment I am working mentally through the steps I would have to
code just to make sure that I can do everything before I start. I
have come to a halt with regard to printing them out.


Personal suggestion - firstly design an Access database (any version)
to hold the data. Design it how you want, without thinking about how
it is to be displayed, for the moment. Concentrate on one thing at a
time. Access is cheap and available, and will be all that you require
for the moment. Don't go overboard yet.

Next, within Access, construct forms for the entering of the data.
There are various Access VBA groups in this news server, and they
would be a lot more relevent than most of the groups that you have
sent this to. Unfortunately, I don't know which group you are reading,
or I would have snipped some of them, but it seems that you are trying
to run before you can crawl. Don't worry, if you need to transfer it
to a VB executable later, you can, but for the moment, learn how to do
it using only Access.

Once you have the storage and data entry out of then way, then and
only then should you look at reporting. Now Access does come with
some reporting tools, but I would suggest that you (or the school)
look at purchasing and using Crystal Reports. Seeing as you have
addresses this to that group, you may already have it. Once you get
to that stage, post again.

Main point is, don't run before you can walk. This stuff may look
easy, but it isn't. Take it one step at a time, and take your time
doing it. If you are doing this part time, and I am assuming that
your regular occupation is a teacher, which doesn't leave a great deal
of spare time, you probably won't have a finished product for some
months. Don't rush it.


Nov 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
2787
by: Karl Scalet | last post by:
Hi, quite often there is a need to just print out the items of a list. that would be nice, except prt() does not exist, and print is a statement not a function, hence cannot replace prt as of above. I don't like to write d
23
63701
by: stewart.midwinter | last post by:
No doubt I've overlooked something obvious, but here goes: Let's say I assign a value to a var, e.g.: myPlace = 'right here' myTime = 'right now' Now let's say I want to print out the two vars, along with their names. I could easily do this: print "myPlace = %s, myTime = %s" % (myPlace, myTime)
1
1719
by: Simon Wigzell | last post by:
self.print() or window.print() don't work on Mac OSX with Mac IE? Any work around? I've googled this without luck and tried to find a mac or browser compatibility newsgroup without luck. Any suggestions welcome!
2
2325
by: G | last post by:
I am trying to duplicate the printing of a shortcut-print of an access report in my NT Scheduled Tasks. I can now print the report manually very easily by right-clicking on a shortcut to the access report and then selecting print. I tried placing the following in the scheduled task, but the ms access ‘97 help does not list /print as an option: "C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" "E:\dbsfolder\\sales.mdb" /print...
2
14195
by: ooooscar | last post by:
I'd like to make an application to print labels. I have to print an image and text, the label size is 10cm x 5 cm. I'm wandering how to do it in c#. My first thought is to make an acrobat "form" with the image and text, but I have to send a date in the label so I need to open the pdf and send the date into a field (variable), then I have to print n times the same label. Can anyone help me ? Thank's.
2
14325
by: AP No spam | last post by:
Hi I need help to Print Pdf File directly without preview from client side To solve problem I used This C# code Response.Buffer = true;
6
1510
by: HappyHippy | last post by:
More of a minor niggle than anything but how would I remove the aforementioned space? eg. strName = 'World' print 'Hello', strName, ', how are you today?' comes out as "Hello World , how are you today?" Have googled, and worked my way through the first 7 chapters of Byte of
3
10298
by: Steve Kershaw | last post by:
Hi, I need to print the contents (rows and columns) of a GridView to the default printer. Is there any way of doing this easly? Thanks Steve
4
1816
by: mrstephengross | last post by:
I would like to get the results of a print operation placed in a string. For instance, you can very easily create a list and print it to stdout: x = print x # Will print What if I want the text "" placed in a string? For instance, something like:
5
9572
by: paul814 | last post by:
Is it possible to disable the print option under file and also the ctrl-p option on a specific page?
0
9519
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10435
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10163
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9037
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6779
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.