我收到空白收据,收据中没有数据 [英] I get blank receipt there is no data in receipt

查看:190
本文介绍了我收到空白收据,收据中没有数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我的问题是当我打印收据时,我得到空白的收据,收据中没有数据,请帮助我或让我最好的主意用c#制作收据

我尝试过的事情:

Hello Guys,my problem is when i print a receipt so i get blank receipt there is no data in receipt please help me or give me the best idea to make receipt in c#

What I have tried:

Console.WriteLine("-------------------------------");
Console.WriteLine("First Name | Last Name  |   Age");
Console.WriteLine("-------------------------------");
Console.WriteLine(String.Format("{0,-10} | {1,-10} | {2,5}", "Bill", "Gates", 51));
Console.WriteLine(String.Format("{0,-10} | {1,-10} | {2,5}", "Edna", "Parker", 114));
Console.WriteLine(String.Format("{0,-10} | {1,-10} | {2,5}", "Johnny", "Depp", 44));
Console.WriteLine("-------------------------------");

推荐答案

您确实知道要将此内容打印到控制台而不是打印机上,对吗?

除此之外,几乎没有信息可以继续.如果这是您实际上用于打印"收据的代码,那么您将遇到很大的问题.

如果没有,我们需要查看您正在使用的代码以及您使用的打印机,以便有机会为您提供帮助.
You do know that you''re printing this to the console and not a printer, correct?

Apart from that, there is too little information to go on. If this is the code you''re actually using to "print" a receipt, you''ve got huge problems.

If not, we need to see the code you''re using and what printer you''re using to have any chance of helping you.


这篇关于我收到空白收据,收据中没有数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆