Link to home
Start Free TrialLog in
Avatar of Oboist
Oboist

asked on

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?
Avatar of wlevant
wlevant

 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
Avatar of Oboist

ASKER

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)
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
Avatar of Oboist

ASKER

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
oboist,

welevant DID answer your question. Give him his points. Next
time formulate your question correct.
You might try Control Z (end of file)
Avatar of Oboist

ASKER

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)
Avatar of Oboist

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of wlevant
wlevant

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Avatar of Oboist

ASKER

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!