Dot Matrix printing in C#?

前端 未结 8 2082
南笙
南笙 2020-12-13 08:03

I\'m trying to print to Dot Matrix printers (various models) out of C#, currently I\'m using Win32 API (you can find alot of examples online) calls to send escape codes dire

8条回答
  •  眼角桃花
    2020-12-13 08:35

    First Convert the Sequence commands into character then pass to printer

    Example Bold Font 27,69

    string.Format("{0}{1}",Convert.ToChar(27),Convert.ToChar(69));

    Perhaps a bit shorter as:

    string.Format("{0}{1}",(char)(27),(char)(69));

提交回复
热议问题