Printing in Windows and using form feed

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?
OboistAsked:
Who is Participating?
 
wlevantConnect With a Mentor Commented:
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
 
wlevantCommented:
 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
 
OboistAuthor Commented:
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
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

 
wlevantCommented:
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
 
OboistAuthor Commented:
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
 
gk082597Commented:
oboist,

welevant DID answer your question. Give him his points. Next
time formulate your question correct.
0
 
gk082597Commented:
You might try Control Z (end of file)
0
 
OboistAuthor Commented:
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
 
OboistAuthor Commented:
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
 
gk082597Commented:
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
 
OboistAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.