Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

To manupulate the printer in DOS mode

Posted on 2002-07-04
7
Medium Priority
?
187 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
[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
7 Comments
 

Author Comment

by:romance
ID: 7131971
No one to help me ,......pitty
0
 
LVL 3

Expert Comment

by:PNJ
ID: 7132479
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
ID: 7135683
then , how can I reverse the printer , to come to Second bill first record..
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 3

Accepted Solution

by:
PNJ earned 200 total points
ID: 7137315
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
ID: 7151453
I may try
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7990652
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
ID: 8050707
Comment from expert accepted as answer

Computer101
E-E Admin
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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.
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…
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…
Suggested Courses

722 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