|
-
Oct 25th, 2006, 01:53 PM
#1
Thread Starter
Fanatic Member
Dot Matrix Printing
I have written an application that prints to dot matrix printers for my client. The problem I am having is that on multi-page jobs, the first page lines up fine, but every subsequent page is one line lower. It doesn't keep creeping down the page, it just does this one time after the first page is printed.
This is mostly acceptable for reports, but for printing on pre-printed forms, it becomes a pain.
I searched all over the place and haven't seen any ideas that seem to be able to fix this issue. Hopefully, someone here has run into this in the past and can point me in the right direction. The printers are Okidata 320s and 321s and some Turbo models.
I have checked all through my code and there doesn't appear to be anything in the code that is causing the issue. It appears that it has something to do with the printer. I have adjusted settings until my fingers hurt and nothing has worked, yet.
The printer knows where the top of the form is and has the correct paper length set, because if I set TOF and then print a one-page report, it is down one line too many when it has finished form feeding. If I press the Form Feed button on the printer, then it page ejects to the correct position of the next page. It's almost as if there is a Line Feed coming from somewhere. However, I don't have any different code for printing the first page than I have for printing any other page. It is the exact same code.
I thought the problem might be coming from some of the ESC characters that I am sending to the printer, so I commented them out and it still does it.
PS - To be able to send the reports directly to the printer, my application actually writes the reports out to a text file and then calls the SendFileToPrinter routine found here http://support.microsoft.com/kb/322090.
PSS - I am using the Generic/Text Only driver in Windows XP. I have also tried the Epson FX-286 driver and the Okidata driver.
My.Settings.Signature = String.Empty
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|