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

问题描述

大家好,我的问题是当我打印收据时,我得到空白的收据,收据中没有数据,请帮助我或让我最好的主意用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("-------------------------------");

推荐答案


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

10-27 09:26