473,763 Members | 1,377 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1951
"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 "requiremen ts" -- 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 "requiremen ts" -- 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 "consequenc es" 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.zi p 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
4856
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 selected. For example, if I were to have 5 pages with every second page printing, I would get the following results: Page 1 = Print OK Page 2 = Blank Page 3 = Print OK Page 4 = Blank
0
1498
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 working at all. My strategy is first to save the form's image as a bitmap (this works, I can save the image to a file). Then I use the printer's Graphics object's drawImage method to send it
0
274
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 below...
5
2616
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 problem as below.And iam unable to figure it out.Do any one come out with good solution is appreciated .And it is a must for me .Because of this issues my further work is getting hampered .
5
3481
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 print out the form and the data that the user entered? For example, the user loads the application and a normal Windows Form asks for the user's name. When the user enters the name and clicks on the "Print" button, I'd like to print the form in the...
3
31946
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 Printing.PaperSize("sdfgsfdg", 850, 1100)
1
5720
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 of a Microsoft book, "Visual Basic,Net Step by Step" in Chapter 18. All but the bottom two subroutines will open a text file, and then allow me to use the above controls, example 1. The bottom two subroutines will print a graphic file, example...
8
5912
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 clients (Internet Explorer). My flash content was originally brought in via the “flash satay” method, but I have since used some server-side magic do deliver one <objecttag
2
3784
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 possible. it is a POS printer (for restaurants) and the printer internal fonts are a MUST for printing speed. as far as i know printer internal fonts are only accessable through GDI, so all my printing is GDI up to now)
0
1685
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 number of rows in the table returned from the database. These chart images are put into an HTML table through code-behind. They display nicely in either IE or FireFox. But, there is a problem printing them when the chart image is too big to fit...
0
9563
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
10145
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
7366
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
6642
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
5270
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5406
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3917
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
3
3523
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2793
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.