Solved

Printing Problem

Posted on 2001-07-13
13
330 Views
Last Modified: 2012-05-04
I try to print to EPSON POS printer with the Printer object in VB.  The printer driver is loaded.

after I print the control command to the printer for drawer open, the font format in the next printer output is not correct?

Anyone has encountered this problem before?  Is there anything that I can try?

Thanks

Ben
0
Comment
Question by:bchan
  • 4
  • 4
  • 2
  • +3
13 Comments
 
LVL 3

Expert Comment

by:gajendra
ID: 6282037
hi -

you are not very clear in your query - could u rephrase it.

Gajendra
0
 
LVL 5

Expert Comment

by:KDivad
ID: 6282516
Umm... You tell the drawer to open and the next font used is changed??? That's odd.
0
 

Author Comment

by:bchan
ID: 6282744
Sub Test1
Printer.fontname="16 cpi"
Printer.fontsize=18
Printer.Print "12345"  ' should be in large print
Printer.EndDoc
End Sub

Sub Test2
Printer.fontname="control"
Printer.Print "A"   ' open drawer
Printer.EndDoc
End Sub

Sub Main
     Test1    ' Print out OK
     Test2    ' Drawer Open OK
     Test1    ' Print out in default font(not in large prt)
End Sub
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 3

Expert Comment

by:andysalih
ID: 6283868
A pos printer does not understand the font 16 cpi,

you need to have a look at the tech side and find out what it likes, its not the same as a normal printer,

thats if you are on the right wave length as me

are we talking POINT OF SALES printer.

cheers
andy
0
 

Author Comment

by:bchan
ID: 6283991
Hi Andy,
I am talking about POS printer.
As documented by EPSON, with the windows driver,
it does support 16 cpi.  I am using TMU200BP printer.

I got the large print output when i first run the Test1.  However, after I execute the Test2 procedure, I will have a normal font size printout from Test1.

How come?  I have read the documentation in MSDN.  It seems like it is the reset problem of the Printer object.  

I need help...
Thank you.
0
 
LVL 5

Expert Comment

by:KDivad
ID: 6284641
Can't you just reset the font after opening the drawer?
0
 

Author Comment

by:bchan
ID: 6285770
According to the MSDN, I can only reset the printer by quiting the program. :>
0
 
LVL 5

Expert Comment

by:KDivad
ID: 6286537
Maybe I am just a bit confused, but I meant: Can't you just add "Printer.fontsize=18" to the beginning of Test2?
0
 

Author Comment

by:bchan
ID: 6287011
hi...
Test2 is only for open the drawer by issue a print command to the printer object...
after u run test2, you will not get the right print out from test1...
0
 
LVL 5

Expert Comment

by:KDivad
ID: 6288116
OK, duh, I was just confused. Ignore my last comment!
0
 
LVL 3

Expert Comment

by:gajendra
ID: 6288336
I am just wondering ... could u use a

printer.newpage

instead of printer.enddoc this should not reset the printer settings. use printer.enddoc to end the entire bill transaction.

Hope that helps.

Gajendra
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7153098
Hi bchan,
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:

    Save as PAQ -- No Refund.
    *** no way to be sure if any comment solved the problem.

bchan, Please DO NOT accept this comment as an answer.
EXPERTS: Post a comment if you are certain that an expert deserves credit.  Explain why.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 7182155
Placed in PAQ

Computer101
E-E Moderator
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB error "Type mismatch" 2 55
VB6 - Convert HH:MM into Decimal 8 56
Export Data to Different .csv Files 26 105
VBA - If Bookmark = "XXBOOKMARKXX" then 15 29
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…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
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…

822 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