Preformatted printing in asp

Posted on 2004-08-10
Last Modified: 2008-01-09
I have a preformatted receipt with fields Name, Age etc.,
The user enters the details in a web form and click on a print button , the details entered by the user would be filled in the appropriate spaces in the receipt(kept in the printer).
How to accomplish this task? Please help me.

Question by:thirumaran
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
  • 2
  • 2
  • 2
  • +2
LVL 12

Expert Comment

ID: 11770201
Can you provide more details? Is this a standard tape receipt? Is there a limitation to the number of characters that can be printed on a line? Are you storing this information in some sort of datastore/database? It's easy to simply blurt out an answer, but it's much better to have more details regarding the application.


Accepted Solution

Tasneem earned 125 total points
ID: 11770951
Printing in preformatted form is possible. You have to create a report with fixed length. eg td width="100px" etc to place a particular field in the pricise calculated position.
More over you have to take care of the margin settings. Set the height and width in pixel measurement and that should sort out. More over you can use css and xsl for the same.

Expert Comment

ID: 11772242
Like GoofyDawg mentioned, we're not sure if this is a regular reciept-type paper or regular 8.5x11" paper. If it's the latter this might be of help to you:

Using CSS to control how the page will be printed out is a nice way to offer the user both a nice layout when viewing pages and a clean way of printing out the information they're viewing.
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 15

Expert Comment

ID: 11773593
Are you just asking how to do a print button?
<SCRIPT LANGUAGE=javascript>
function btnPrint_onclick() {
<INPUT type="button" value="Print" id=btnPrint name=btnPrint LANGUAGE=javascript onclick="return btnPrint_onclick()">

Author Comment

ID: 11780178
   i dont want to print the browser toolbar or locaton bar. Will your solution work for it?

  I will try your solution and inform you.
thanx for the help.

Author Comment

ID: 11780274
  what is this workarea??

Expert Comment

ID: 11780481
Thirumaran, with my way it will NOT print out the browser bar or location bar. It will only print out the actual content of the page in the matter in which you tell it to.
LVL 15

Expert Comment

ID: 11783372
Sorry, I cut and pasted that from a page that is in a frame called WORKAREA.

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Syntax for query to update table 2 42
Executing a script on a timer online 5 32
Insert Button on a table 16 47
SP result not being displayed 5 44
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

733 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