Solved

Preformatted printing in asp

Posted on 2004-08-10
8
307 Views
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.

0
Comment
Question by:thirumaran
  • 2
  • 2
  • 2
  • +2
8 Comments
 
LVL 12

Expert Comment

by:GoofyDawg
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.

GoofyDawg
0
 
LVL 4

Accepted Solution

by:
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.
0
 

Expert Comment

by:CuseMMA
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:

http://css-discuss.incutio.com/?page=PrintStylesheets

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.
0
 
LVL 15

Expert Comment

by:joeposter649
ID: 11773593
Are you just asking how to do a print button?
<SCRIPT LANGUAGE=javascript>
<!--
function btnPrint_onclick() {
      window.parent.WORKAREA.focus();
      window.print();
}
//-->
</SCRIPT>
<INPUT type="button" value="Print" id=btnPrint name=btnPrint LANGUAGE=javascript onclick="return btnPrint_onclick()">
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

Author Comment

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

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

Author Comment

by:thirumaran
ID: 11780274
joeposter,
  what is this workarea??
0
 

Expert Comment

by:CuseMMA
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.
0
 
LVL 15

Expert Comment

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

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
cleaning xml string 2 46
post data with a link 8 49
Auto Submit on dropdown box 3 34
Error viewing ASP page 12 82
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…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now