?
Solved

Backfeeding Paper in Printer from VB

Posted on 2002-06-27
4
Medium Priority
?
362 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 200 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

Introducing Priority Question

Increase expert visibility of your issues by participating in Priority Question, our latest feature for Premium and Team Account holders. Adjust the priority of your question to get emergent issues in front of subject-matter experts for help when you need it most.

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…
Suggested Courses

771 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