Solved

Printing in Windows and using form feed

Posted on 1998-09-20
11
424 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

 

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Multi-threading long-running processes can have a significant increase in overall performance and drastically decrease over time it takes for a process to complete. Unfortunately, not all applications support native multi-threading, some by design a…
Microsoft is moving in-place eDiscovery & hold from ECP to EOP console under Content Search in Search and Investigation Options.  In this post, I will be showing you how to export emails to a PST file using the Content Search Options.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

726 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