473,382 Members | 1,386 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,382 software developers and data experts.

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/
Jul 21 '05 #1
7 1656
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.*******@breathe.com> wrote in message
news:%2****************@tk2msftngp13.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/

Jul 21 '05 #2
Although I can think of a couple ways to make the database structure
better and more efficient, your quesiton relates to printing, which
has always been a sore issue.

I think this type of report structure could be handled quite nicely
with some printer calls without the need to resort to a full-blown
report writer. Kind of overkill for something so simple. It depends on
how "exact" the layout needs to be to the existing forms. Are the
forms scanned - in other words, do they need to be machine readable?
Is exact placement a concern?

Dan
On Tue, 23 Dec 2003 11:26:39 -0000, "Jonathan Smith"
<j.*******@breathe.com> 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.

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


Jul 21 '05 #3
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******@DontSpamMe-mindspring.com

"Jonathan Smith" <j.*******@breathe.com> wrote in
news:#t**************@tk2msftngp13.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/


Jul 21 '05 #4
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
Jul 21 '05 #5
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**********@hansen.com.invalid> wrote in message news:<ei*************@tk2msftngp13.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.

Jul 21 '05 #6
crReportDoc = new ReportDocument();
{ ... Your set path, log on, parameters stuffs here ... }
ExportFormatType exportType;
string outputName;
if(radioPDF.Checked)
{
outputName = rptName.Substring(0, rptName.Length - 4) + ".pdf";
exportType = ExportFormatType.PortableDocFormat;
}
else if (radioXLS.Checked)
{
outputName = rptName.Substring(0, rptName.Length - 4) + ".xls";
exportType = ExportFormatType.Excel;
}
else
{
outputName = rptName.Substring(0, rptName.Length - 4) + ".doc";
exportType = ExportFormatType.WordForWindows;
}
ExportOptions CrExpOpt;
CrystalDecisions.Shared.DiskFileDestinationOptions DiskOpts = new
CrystalDecisions.Shared.DiskFileDestinationOptions ();
DiskOpts.DiskFileName = ConfigurationSettings.AppSettings["ReportOutputDir"]
+ outputName;
CrExpOpt = crReportDoc.ExportOptions;
CrExpOpt.DestinationOptions = DiskOpts;
CrExpOpt.ExportDestinationType = ExportDestinationType.DiskFile;
CrExpOpt.ExportFormatType = exportType;
crReportDoc.Export();
{ ... then just redirect to the pdf/xls/doc file ... }

elv
"Cathy Jones" <ca***********@yahoo.com> wrote in message
news:bc**************************@posting.google.c om...
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**********@hansen.com.invalid> wrote in message

news:<ei*************@tk2msftngp13.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.

Jul 21 '05 #7
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**********@hansen.com.invalid> wrote in
news:ei*************@tk2msftngp13.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.


Jul 21 '05 #8

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

Similar topics

19
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...
23
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...
1
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...
2
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...
2
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"...
2
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
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...
3
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
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...
5
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?
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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...

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.