473,461 Members | 1,731 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Print form information to a prinable hard copy

Hi all.
I need to have a print button on the page where I have a form. The form is filled in and sent to the database at the same time the information must be filled to the document to print (a word or pdf) out the form for it to be signed by hand. Where do I start with that I have no idea. Any ideas out there will be appreciated.

Thanx in advance
Nov 20 '06 #1
5 3544
If you want to make it print w/o internet header automatically you might want to look into VBScript, Ruby/Rails, Flash, or Java Applets.
Nov 20 '06 #2
ronverdonk
4,258 Expert 4TB
You don't have to look outside the PHP environment, as suggested in a previous reply. You can easily generate a PDF document from PHP itself. Have a look at the free FPDF (PHP) class at FPDF class
This site contains al documentation, tutorials and code necessary to generate PDF from your PHP program. Some features:

- Choice of measure unit, page format and margins
- Page header and footer management
- Automatic page break
- Automatic line break and text justification
- Image support (JPEG and PNG)
- Colors
- Links
- TrueType, Type1 and encoding support
- Page compression
- FPDF requires no extension (except zlib to activate compression) and works with PHP4 and PHP5.

Check it out.

Ronald :cool:
Nov 20 '06 #3
Sorry if I am continuing with wrong info, but I was trying to say that any print commands from PHP will result with browser header and footer info like URL, date, etc. I know that PHP can make PDFs but I thought it couldn't "open" it and print as Adobe would, not alone.
Nov 21 '06 #4
Sorry if I am continuing with wrong info, but I was trying to say that any print commands from PHP will result with browser header and footer info like URL, date, etc. I know that PHP can make PDFs but I thought it couldn't "open" it and print as Adobe would, not alone.
Thanks for the replies still trying it out will come back if I get stuck.
Thanks again
Nov 21 '06 #5
Thanks for the replies still trying it out will come back if I get stuck.
Thanks again
I see I first need to download the fpdf.php class I am not sure which one to use I am using php4 and mysql 4.1 amy idea which one to download.

Thanks
Nov 21 '06 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Paul Sullivan | last post by:
We are a state agency that views protected medical information via our intranet. The screens even have privacy shields. Alarmingly, uses can "Print" and "Save As" which destroys the protection of...
3
by: Jimmy Fortier | last post by:
In VB6, when printing a hard copy of your code, there was a dialog box that offered options, "Print Image", "Code", "Form as Text". In VB.Net I can not find this option. I can certainly print...
2
by: Lars Netzel | last post by:
Is it hard to make a Print button from a Windows Form that will print a number of fields from an Access database in a fairly formatted way? How does this work with the Print Dialoges and stuff? ...
27
by: Chris | last post by:
Hi, I have a form for uploading documents and inserting the data into a mysql db. I would like to validate the form. I have tried a couple of Javascript form validation functions, but it...
15
by: Jim B. Wilson | last post by:
Am I nuts? Or only profoundly confused? I expected the this little script to print "0": class foo(int): def __init__(self, value): self = value & 0xF print foo(0x10) Instead, it prints...
5
by: Carl Witte | last post by:
Hello. I'm stuck. I've got a form I need to print to a manual feeder on a shared laser printer. This will get me to the printer but I can't seem to figure out how to print it to a specific bin. ...
12
by: Studiotyphoon | last post by:
Hi, I have report which I need to print 3 times, but would like to have the following headings Customer Copy - Print 1 Accounts Copy - Print 2 File Copy -Print 3 I created a macro to...
4
by: John Sheppard | last post by:
Hello there I was wondering if anyone could help me, I am trying to pass a typed dataset to a dialoged child form by reference. I have binding sources sitting on the child form. So to refresh...
10
by: Snoopy33 | last post by:
I have a DB that I developed on access XP (2002) and deployed over a year ago. No one has had problems printing any of the reports within the DB until we started loading 2007 on new computers. ...
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
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
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...
1
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
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.