Solved

To manupulate the printer in DOS mode

Posted on 2002-07-04
7
178 Views
Last Modified: 2010-05-02
I am printing my cash bill in DOS mode print# statement , Here my problem is that I have
only 10 records to print , my cash bill paper only 4 to 5 inch Height.

     in our printer, only  A4,envolop,letter and A5 size paper settings . then I want to set my
printer After printing 10 records it automatically pass to next bill
     
     if we are using current widows printer setting it wil skip 5 to 10 inch paper Height

0
Comment
Question by:romance
7 Comments
 

Author Comment

by:romance
Comment Utility
No one to help me ,......pitty
0
 
LVL 3

Expert Comment

by:PNJ
Comment Utility
You must match the paper (bill) form length in the printer and in the Windows printer driver, otherwise you will always get this problem using Windows. Can you match the printer paper length to multiples of the bill length?

Eg: If the Bill is 5.5" long and the printer can do a LETTER form (which is 8.5"x11"), then print TWO bills on one page in landscape format.
0
 

Author Comment

by:romance
Comment Utility
then , how can I reverse the printer , to come to Second bill first record..
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 3

Accepted Solution

by:
PNJ earned 50 total points
Comment Utility
You can't reverse the printer. Set the printer to LETTER/LANDSCAPE on the DIP switched/control panel and then you must try and print TWO bills on one logical page. Your code must follow the logic along these lines:

' Get billing information
' Do While some billing information left
   ' Initialise printer to LETTER / LANDSCAPE (11" x 8.5")
   Printer.Orientation = vbPRORLandscape
   Printer.PaperSize = vbPRPSLetter
   
   ' Print One Bill (in 5.5")
   ' Print Another Bill (in 5.5")
   PRINTER.ENDDOC
' Loop

You have to match your logical page length (i.e. what your program AND the Windows printer driver sends out) with the physical page length that the printer is set to (i.e. the length of the bills loaded AND what the DIP switches/control panel on the printer are set to).
0
 

Author Comment

by:romance
Comment Utility
I may try
0
 
LVL 49

Expert Comment

by:DanRollins
Comment Utility
Hi romance,
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.

romance, 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 1

Expert Comment

by:Computer101
Comment Utility
Comment from expert accepted as answer

Computer101
E-E Admin
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now