得到Printer的DC后,
用TextOut可是打印出中英文与数字的混合文本。
DrawText却只显示出汉字,英文、数字都没有?我用的打印机:Legend LJ2500

解决方案 »

  1.   

    DrawText(HDC, hdc, LPCTSTR lpString, int nCount, LPREST lpRect, UINT uFormat)把 nCount = -1  试试
      

  2.   

    Decode the EMF spool file to see what is inside, using the tool from my book or website.DrawText is not a GDI function, so it's not well tested as GDI function TextOut/ExtTextOut for all the situations.
      

  3.   

    Decode the EMF spool file to see what is inside, using the tool from my book or website.DrawText is not a GDI function, so it's not well tested as GDI function TextOut/ExtTextOut for all the situations.
      

  4.   

    牛人给的方法太夸张了吧。自己分析打印EMF!to FengYuanMSFT(袁峰 www.fengyuan.com)
     你不知道原因吧。我解决了。因为StartDOC时没有赋DOCINFO的参数。
    在Win2000上运行时StartDoc没有出错。98下返回错误,连汉字也没有打印处理。最后分析解决了,
    可没有分析 spool 的输出。那太…………