Solved

Printing in Windows and using form feed

Posted on 1998-09-20
11
403 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 

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
 

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Learn how the use of a bunch of disparate tools requiring a lot of manual attention led to a series of unfortunate backup events for one company.
Employees depend heavily on their PCs, and new threats like ransomware make it even more critical to protect their important data.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

813 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

12 Experts available now in Live!

Get 1:1 Help Now