我另外一位朋友建议他用
 System.Drawing.Printing.PrintDocument  class
他又回信:
hi, buddy, thank you for your reply, I do think i am right, the only problem is how to set the device font by using some liberary or some ax..Dll, 
System.Drawing.Printing.PrintDocument is one way to control the printer, not only way, now I have three way to control the printer, the third way is use epson's control (COM), while that is some problem for C#, only for vb and C++, 
use system.Drawing....is fine to print,  but what I want to do is control cash drawer, not like you said, but only need to set printer font.name to be "control" and write the printer a letter "a", that's it, and of cause, we could control the printer cut the paper by the same way and that is it, I think there is some funtion we need to call or just setup this pirnter by calling some special funtion, or just pass raw byte to printer( since I am not good at how to deal a printer, I only could assume and I don't have time to spend so much time, I think I could get some help from my friends' )
any way, look at the following two website:
 
 http://pos.epson.com/pointofsale/technicalsupport.shtml
 
http://www.dotnet247.com/247reference/msgs/28/144577.aspx
 
 
and download the application sourcecode( from the first one) for vb and C++( if you are good at) then, everything is very clear
 
hope that will help.

解决方案 »

  1.   

    逐句地看完这个帖子以后,我的心久久不能平静,震撼啊!为什么会有如此好的帖子! 
        我纵横网络bbs多年,自以为再也不会有任何帖子能打动我,没想到今天看到了如此精妙绝伦的这样一篇帖子。楼主,是你让我深深地理解了‘人外有人,天外有天’这句话。谢谢侬!在看完这帖子以后,我没有立即回复,因为我生怕我庸俗不堪的回复会玷污了这网上少有的帖子。但是我还是回复了,因为觉得如果不能在如此精彩的帖子后面留下自己的网名,那我死也不会瞑目的!能够在如此精彩的帖子后面留下自己的网名是多么骄傲的一件事啊!楼主,请原谅我的自私!我知道无论用多么华丽的辞藻来形容楼主您帖子的精彩程度都是不够的,都是虚伪的,所以我只想说一句:您的帖子太好看了!我愿意一辈子的看下去!这篇帖子构思新颖,题材独具匠心,段落清晰,情节诡异,跌宕起伏,主线分明,引人入胜,平淡中显示出不凡的文学功底,可谓是字字珠玑,句句经典,是我辈应当学习之典范。就小说艺术的角度而言,这篇帖子不算太成功,但它的实验意义却远远大于成功本身。正所谓“一马奔腾,射雕引弓,天地都在我心中!”楼主真不愧为无厘界新一代的开山怪!本来我已经对这个社区失望了,觉得这个社区没有前途了,心里充满了悲哀。但是看了你的这个帖子,又让我对社区产生了希望。是你让我的心里重新燃起希望之火,是你让我的心死灰复燃,是你拯救了我一颗拨凉拨凉的心!本来我决定不会在社区回任何帖子了,但是看了你的帖子,我告诉自己这个帖子是一定要回的!这是百年难得一见的好贴啊!苍天有眼啊,让我在优生之 年得以观得如此精彩绝伦的帖子!
      

  2.   

    看明白了,pos的打印问题,呵呵,up
      

  3.   

    OpenPrinter()?
    这里对应打印机非内嵌字体
    是不是用点阵来打印的啊
      

  4.   

    You need more entryPoint function of the printer's driver.
      

  5.   

    please think about how to set the device Font
      

  6.   

    TO:robin_xin_xin(鳄鱼宝宝)
     Surprise
      

  7.   

    你可以这么回复他:fuck you