如何打印原始/复杂数据

时间:2022-11-05 21:41:53

I want to print the contents of a group of different Windows Form controls. I've been reading and printing always rely heavily on WinForms (like capturing the screen or using a RichTextBox) or printing a document file directly (like PDF or word doc)

我想打印一组不同的Windows窗体控件的内容。我一直在阅读和打印总是严重依赖WinForms(如捕获屏幕或使用RichTextBox)或直接打印文档文件(如PDF或word doc)

I want to print this current view. Ideally, the layout should be the same when printed:

我想打印当前视图。理想情况下,打印时的布局应该相同:

(Click for larger view)
如何打印原始/复杂数据

(点击查看大图)

How can I print programmatically? Or if that's not the best way to do it, how can I print the above (screenshot) efficiently?

如何以编程方式打印?或者,如果这不是最佳方式,我如何有效地打印上述(屏幕截图)?

1 个解决方案

#1


0  

There are several options - Non is trivial though (may be except #2):

有几种选择 - 虽然非常微不足道(可能除了#2):

  1. Report Generator like Crystal Reports. See here here for Crystal Reports download link and other options. Of course you could opt for a 3rd party tool instead.

    报表生成器,如Crystal Reports。请在此处查看Crystal Reports下载链接和其他选项。当然,您可以选择使用第三方工具。

  2. Generate the data as CSV file and print it from Excel

    将数据生成为CSV文件并从Excel打印

  3. Write text as RTF

    将文本写为RTF

  4. Generate result as HTML

    以HTML格式生成结果

  5. Use MS-Access

    使用MS-Access

  6. Other options...

    其他选择......

#1


0  

There are several options - Non is trivial though (may be except #2):

有几种选择 - 虽然非常微不足道(可能除了#2):

  1. Report Generator like Crystal Reports. See here here for Crystal Reports download link and other options. Of course you could opt for a 3rd party tool instead.

    报表生成器,如Crystal Reports。请在此处查看Crystal Reports下载链接和其他选项。当然,您可以选择使用第三方工具。

  2. Generate the data as CSV file and print it from Excel

    将数据生成为CSV文件并从Excel打印

  3. Write text as RTF

    将文本写为RTF

  4. Generate result as HTML

    以HTML格式生成结果

  5. Use MS-Access

    使用MS-Access

  6. Other options...

    其他选择......