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

Printing An Image !

I'm developing an HR package which would contain the Employees Photo +
upto 3 pages (pictures) of his Passport + pictures of his Driving
License and Residence Card.

If the user wants to print the Passport Copies, Driving License,
Residence Card, etc. what is the best method to accomplish this ?

Best Rgds,
Prakash.

Dec 12 '06 #1
4 1933
"Prakash" <si****@omantel.net.omwrote
I'm developing an HR package which would contain the Employees Photo +
upto 3 pages (pictures) of his Passport + pictures of his Driving
License and Residence Card.

If the user wants to print the Passport Copies, Driving License,
Residence Card, etc. what is the best method to accomplish this ?
(1) Are you asking basic advice on the form in which to store the images,
and, then, how to handle them; or (2) have you already decided how to store
them, and just want to know how to print them. (3) Do you mean print them in
a Report, or print them individually, or ??? And, helpful but perhaps not
absolutely essential, (4) by "up to," do you mean the number of images may
vary from employee to employee?

The answers to the first question is absolutely needed to respond.

If the answer to the second question is "Yes," then you need to give details
on how you plan to store the pictures.

The answer to the third question is a matter of your "requirements" -- what
do you need, not something we can answer.

And, as I said, the answer to the fourth question will be helpful.

Larry Linson
Microsoft Access MVP
Dec 12 '06 #2
Hi Larry !! I'm sorry, I guess I was a bit too ambiguous. Here goes :
(1) Are you asking basic advice on the form in which to store the images,
and, then, how to handle them;
1) No ! At the moment I haven't as yet embarked on the project & so
don't want to know about the forms. I guess as & when I encounter any
problems, I'll post here.

or (2) have you already decided how to store
them, and just want to know how to print them.
Yes ! I have decided to use a "link" to the images rather than
embedding them into my database especially as passport pages for all
employees could greatly increase the size of the database. If I've
chosen wrongly, please feel free to correct me. As it stands, I plan to
store all the images in a folder & then provide a link to them.

(3) Do you mean print them in
a Report, or print them individually, or ???
I'm planning on having a command button with the following captions:
Print Passport - Pg1
Print Passport - Pg2
Print Passport - Pg3
When the user clicks these buttons the header on the page should be:
Employee Name ... Passport Copy - Page 1 (and so on)

(4) by "up to," do you mean the number of images may
vary from employee to employee?
No !! A provision of 3 image links will be provided ... one for each
Passport Page.
Of course it's possible the user may have provided a link to the image
or left it blank.
I hope I'm going about it in the right way. Please do steer me in the
right direction if you feel otherwise.

Thx & Best Rgds,
Prakash.


Larry Linson wrote:
"Prakash" <si****@omantel.net.omwrote
I'm developing an HR package which would contain the Employees Photo +
upto 3 pages (pictures) of his Passport + pictures of his Driving
License and Residence Card.
>
If the user wants to print the Passport Copies, Driving License,
Residence Card, etc. what is the best method to accomplish this ?

(1) Are you asking basic advice on the form in which to store the images,
and, then, how to handle them; or (2) have you already decided how to store
them, and just want to know how to print them. (3) Do you mean print them in
a Report, or print them individually, or ??? And, helpful but perhaps not
absolutely essential, (4) by "up to," do you mean the number of images may
vary from employee to employee?

The answers to the first question is absolutely needed to respond.

If the answer to the second question is "Yes," then you need to give details
on how you plan to store the pictures.

The answer to the third question is a matter of your "requirements" -- what
do you need, not something we can answer.

And, as I said, the answer to the fourth question will be helpful.

Larry Linson
Microsoft Access MVP
Dec 12 '06 #3
"Prakash" <si****@omantel.net.omwrote
>(1) Are you asking basic advice on the form
in which to store the images, and, then, how
to handle them;

1) No ! At the moment I haven't as yet embarked
on the project & so don't want to know about the
forms. I guess as & when I encounter any
problems, I'll post here.
I apologize for my question being confusing. I used "form" not in terms of
an Access Form, but meaning the format, type of file, etc. for storing the
pictures.
>or (2) have you already decided how to store
them, and just want to know how to print them.

Yes ! I have decided to use a "link" to the images rather
than embedding them into my database especially as
passport pages for all employees could greatly increase
the size of the database. If I've chosen wrongly, please
feel free to correct me. As it stands, I plan to store all
the images in a folder & then provide a link to them.
Later, I'll include a reference to samples and an article. There are
considerations to balance... if the images are stored separately in
directories, it is more likely that one or some (or, worse, all) of them
might be accidentally deleted. If they are stored in the DB as OLE Objects,
through Access 2003, there is bloat (see the referenced article for "why").
We are told that Microsoft has eliminated that bloat in Access 2007, but
there are a few other "consequences" of using the OLE Object and Bound OLE
Frame.
>(3) Do you mean print them in
a Report, or print them individually, or ???

I'm planning on having a command button with the following captions:
Print Passport - Pg1
Print Passport - Pg2
Print Passport - Pg3
When the user clicks these buttons the header on the page should be:
Employee Name ... Passport Copy - Page 1 (and so on)
I'm not sure why you would print the pages individually. If there's no
compelling reason to do otherwise, you could just print one report, that
includes all three pictures (if available).
>(4) by "up to," do you mean the number of images may
vary from employee to employee?

No !! A provision of 3 image links will be provided ... one
for each Passport Page. Of course it's possible the user may
have provided a link to the image or left it blank.
So, seems to me the answer is "Yes -- there should be three images, but it's
possible that the user may have omitted a link." Do you want to print a
blank page if there are only two images?

Larry Linson
Microsoft Access MVP

Dec 13 '06 #4
The sample imaging databases at http://accdevel.tripod.com illustrate three
approaches to handling images in Access, and the download includes an
article discussing considerations in choosing an approach. Two of the
approaches do not use OLE Objects and, thus, avoid the database bloat, and
some other problems, associated with images in OLE Objects.

If you are printing the images in reports, to avoid memory leakage, you
should also see MVP Stephen Lebans' http://www.lebans.com/printfailures.htm.
PrintFailure.zip is an Access97 MDB containing a report that fails during
the Access formatting process prior to being spooled to the Printer Driver.
This MDB also contains code showing how to convert the contents of the Image
control to a Bitmap file prior to printing. This helps alleviate the "Out of
Memory" error that can popup when printing image intensive reports.

Larry Linson
Microsoft Access MVP
Dec 13 '06 #5

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

Similar topics

4
by: Jody Gelowitz | last post by:
I am having a problem with printing selected pages. Actually, the problem isn't with printing selected pages as it is more to do with having blank pages print for those pages that have not been...
0
by: JF Turcotte | last post by:
Hi I'm unsuccessfully trying to print a form's image under VB.NET. To print under .NET is a real pain in the , I find it to be complex, lenghty, confusing, upsetting and ultimately not to be...
0
by: Gary | last post by:
Hi, I am getting this error within vb.net when i try and print to a printer... "Value cannot be null." the line "e.Graphics.DrawImage9me.PictireBox1.Image,0,0)" is highlighted. My code...
5
by: Senthil Kumar | last post by:
hi Group, Iam developing one Component in c#.It will load any kind of image either from Local machine or URL.Finally I do have options for printing and preview. While printing Iam facing the...
5
by: VMI | last post by:
I have a BMP image (the form is also in PDF) that contains a scanned copy of a paper form that we need to fill out. Is it possible to use this image in my application so that the application can...
3
by: D Witherspoon | last post by:
No matter what I do the default paper size is always either A3 or 11 by 8.5 .. Here is the code. Dim dlg As DialogResult pd.DocumentName = "Weld Image" Dim pkPaperSize As New...
1
by: hamil | last post by:
I am trying to print a graphic file (tif) and also use the PrintPreview control, the PageSetup control, and the Print dialog control. The code attached is a concatination of two examples taken out...
8
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web...
2
by: user | last post by:
Hi all... i am trying to print an image using GDI - but the only thing i get is a black rectangle. Does anybody know what is wrong, or how else to get the bitmap on the printer (GDI+ is not...
0
by: gnewsgroup | last post by:
In my asp.net 2.0 web application. I create chart images on the fly by getting the data from the database. These chart images all have fixed width, but the height is dynamic depending on the...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.