Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Auto printing from a submit button

Posted on 2004-04-06
6
Medium Priority
?
291 Views
Last Modified: 2013-12-24
Using Frontpage 2000,  Have created a form that is connected to an Access 2000 Database. When the submit button is clicked it sends the data to my access database.

I need it to also print a copy of this form automatically to the users default printer... Is this possible ?

Just3082
0
Comment
Question by:just3082
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 12

Expert Comment

by:rcmb
ID: 10767165
Place this code at the top of your results page

<Script Language = "Javascript">
window.print()
</script>

This will open the print dialogue box and allow the user to print the page.

RCMB

0
 

Author Comment

by:just3082
ID: 10767343
I do not have a results page.  Only my main form page and a confirmation page.

Just3082
0
 
LVL 12

Accepted Solution

by:
rcmb earned 1000 total points
ID: 10767420
Edit the line where the submit button is to read like the following:

<input type="submit" value="Submit Comments" onclick="window.print()">

You just need to add the onclick portion. This will click the form with all of the data in it. If you have any text area boxes, make sure they are big enough to view all data.

RCMB
0
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

 
LVL 12

Expert Comment

by:rcmb
ID: 10767476
Note - If you are using the fp generated form there is really no way to modify the results. If you have built a confirmation page then use my first comment at the top of the confirmation page.

RCMB
0
 

Author Comment

by:just3082
ID: 10767885
The onlick worked great... The only problem is that all of my fields have validation rules, therefore if they skip a control and press the submit button they will receive the validation error as well as a print box....

But I'm ok with this unless there is a way to remedy it...

Just3082
0
 
LVL 12

Expert Comment

by:rcmb
ID: 10769187
The best way to remedy this is to have your page submit to a confirmation page and place the first code I gave you at the top of the page. You can create your own page and have it display the form results.

What are you doing with the form? If the information is being recorded in a database then have the form submit to an ASP page and then have the page display and print the results.

RCMB
0

Featured Post

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
The purpose of this video is to demonstrate how to create a Printer Friendly PDF on a WordPress Page. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome Screenshot” Google Chrome Extension, and SmallPDF.com Log…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question