Solved

Backfeeding Paper in Printer from VB

Posted on 2002-06-27
4
360 Views
Last Modified: 2008-02-01
Hello experts !

In my project i am printing a report in Character Mode Format for Dot Matrix Printer. For every print out Dot matrix printer leaves two lines. I want to backfeed the paper for two lines from my Application VB. Is this possible from VB ? Please help me.. very Urgent...

Thanks in advance...
0
Comment
Question by:mani_m_in
[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
  • 2
4 Comments
 
LVL 3

Accepted Solution

by:
PNJ earned 50 total points
ID: 7115817
I think it may only be possible if the printer is capable of accepting a specific command to backfeed. There's no printer object method to do this.

It's worthwhile checking a few things first before trying to send a specific "backfeed" command string.

1. I have used DM printers where they automatically feed on to allow you to tear off the print - check the printer settings via the machines control panel/DIP switches.

2. Have you made sure that the form length of the printer (via its DIP switches) matches the Windows printer driver form length? It depends whether a form feed character is sent to the printer, or whether the printer driver moves to the end of the form by counting line feeds. Often you can get a conflict whereby the printer formfeeds and so does the driver.

3. Has the printer driver got any specific intialisation strings that it sends. If so, check that they are for the correct printer (are you in fact using the correct Windows printer driver?)

4. >For every print out Dot matrix printer leaves two lines<. Just in case you mean "every line" then check that the printer is NOT doing CR/LF for each LF or CR it receives. 'Cos for a CR/LF that you send from the program you'd get TWO CR/LF's on the printer.

5. If you have to send a specific character string do this:

Printer.Print Chr$(33) & Chr$(..) & Chr$(..) & ....

Where 33 is ESCape and normally begins a control sequence and .. are the specific codes required.
0
 
LVL 3

Expert Comment

by:PNJ
ID: 7116150
Sorry, that should of course be Chr$(27) for ESCape! (33 octal is 27 decimal)
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7964637
Hi mani_m_in,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept PNJ's comment(s) as an answer.

mani_m_in, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 5

Expert Comment

by:Netminder
ID: 8014882
Per recommendation, force-accepted.

Netminder
EE Admin
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

707 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