Solved

Printing in Windows and using form feed

Posted on 1998-09-20
11
388 Views
Last Modified: 2010-04-16
I am having trouble sending information to a printer in Turbo Pascal for Windows 95. I need information on how to do a "form feed." What is the standard procdure which I should follow in order to accomplish this task?
0
Comment
Question by:Oboist
  • 5
  • 3
  • 3
11 Comments
 
LVL 2

Expert Comment

by:wlevant
ID: 1215622
 The standard ASCII code for form feed is control-L.  (decimal 12; hex 0c).  

  Will your printer form-feed if you send it a line containing just the proper hex code and an end-of-line character ?

Bill
0
 

Author Comment

by:Oboist
ID: 1215623
Dear Bill,

   I have found this to be very helpful. However, I think that I was a bit ambiguous with regard to my question. Apparently, this form feed command is used to start a page, and this information has been most helpful.

   What information I MOST need (and I apologize for the lack of clarity) is that which relates to how to print the desired information (this part I can do)... and THEN have the printer release the page (without feeding another page into the printer).

   I thank you for the assistance thus far, and apologize for the ambiguity (spelling?).

Appreciatively,
Kevin (Oboist)
0
 
LVL 2

Expert Comment

by:wlevant
ID: 1215624
Many commercial applications have the same problem.  

It *may* be enough to send a form-feed at the end of your text...technically, form-feed means "advance to top of form", *not* skip a page.

If not, you may have to *explicitly* close the print file at the end of writing text in order for the last page to form-feed out.

There may also be an "end-of-job" character that you can send to the printer...which one, I dunno.

Bill
0
 

Author Comment

by:Oboist
ID: 1215625
These comments were quite helpful in some respects, and there was some information provided of which I was previously unaware. I need a more thorough answer. While this gentleman has my sincere thanks, I regret that these answers did not solve my problem. I need a slightly better than "I don't know." Any assistance received that would provide me with the proper command(s) for releasing a page after printing would be greatly appreciated.

Thanks,
Kevin
0
 

Expert Comment

by:gk082597
ID: 1215626
oboist,

welevant DID answer your question. Give him his points. Next
time formulate your question correct.
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Expert Comment

by:gk082597
ID: 1215627
You might try Control Z (end of file)
0
 

Author Comment

by:Oboist
ID: 1215628
While I appreciate "gk's" comments, I must opine that while there was an answer provided, it was not an answer which solved my problem. It was/is my understanding that this page is a forum to assist users in solving there programming problems; this gentleman provided some *very* helpful information, yet did not solve my problem. Having just become a member, and having not programmed a computer in almost a decade and a half, there is some information which is *very* slow to return. Please notice that I apologized for my lack of clarity.

Again, while I appreciate the comment from "gk," I must contend that no answer of any kind to any question should be considered adequate (and, indeed no one should be considered an 'expert') when an answer includes any phrase to the effect of "I don't know." Thank you for your input however if all you can do is scold, in the future please butt out!

Again, I very much appreciate the assistance offered; I am quite grateful. However I *very* much need a solution to my problem. Thank you.

Sincerely,
Kevin (Oboist)
0
 

Author Comment

by:Oboist
ID: 1215629
Thank you. If you could now tell me which character is the equivilent of 'control z,' I would be more than happy to give you both the number of points offered.

Sincerely,
Kevin
0
 
LVL 2

Accepted Solution

by:
wlevant earned 70 total points
ID: 1215630
Control-z should be hex 1A (that is, 26 decimal).  Control codes for the letters a-z run from 01 to 26 decimal; letters (lower case, I think) start at 40 hex.

Bill
0
 

Expert Comment

by:gk082597
ID: 1215631
I wont make a deal big deal of this sins welevant DID answer
your original question (the one with the Conrol-L). But your
idear of dealing with the "experts" suks. I for certain won't
bother helping you.
0
 

Author Comment

by:Oboist
ID: 1215632
Thank you for your psycho-analysis, however I don't believe that this forum is geared toward providing comments on personalities. Since you've provided some unsolicited feedback in this regard, I'm going to reciprocate. I believe that your method of dealing with non experts has demonstrated to me some of the worst customer service which I have *ever* witnessed.

As for your reluctance to provide assistance, I scarcely needed for you to state this. I hadn't noticed you providing much. You have one of the worst possible attitudes. Also, you might want to take some classes in remedial spelling and seek some therapy.

Regarding your use of the term 'experts,' this is not exactly a category in which I feel that you should, by any means be placed. KMA!
0

Featured Post

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.

Join & Write a Comment

A procedure for exporting installed hotfix details of remote computers using powershell
What is Backup? Backup software creates one or more copies of the data on your digital devices in case your original data is lost or damaged. Different backup solutions protect different kinds of data and different combinations of devices. For e…
This video discusses moving either the default database or any database to a new volume.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

707 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

14 Experts available now in Live!

Get 1:1 Help Now