我用vb做打印在已有格式的标签上,有横向字符也有纵向字符,解决了,大概是用到了逻辑字体,在喷墨打印机上打印可以,可是在针式epson lq-300上面打印却打不出来其中用到逻辑字体的横向字符,各位大哥是怎么实现在标签上同时打印横纵向字符的.不甚感激

解决方案 »

  1.   

    用图形方式打印。将所有控件放在 Picture1 中,另用一个同样大小的 Picture2 作缓冲:   Picture1.SetFocus
       Picture2.AutoRedraw = True
       Call SendMessage(Picture1.hwnd, WM_PAINT, Picture2.hDC, 0)
       Call SendMessage(Picture1.hwnd, WM_PRINT, Picture2.hDC, _
       PRF_CHILDREN + PRF_CLIENT + PRF_OWNED)
       Picture2.Picture = Picture2.Image
       Picture2.AutoRedraw = False   Printer.Print ""
       Printer.PaintPicture Picture2.Picture, 0, 0
       Printer.EndDoc