.NET库绘制与GDI表+ [英] .NET Library for drawing tables with GDI+

查看:136
本文介绍了.NET库绘制与GDI表+的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要打印一个DataGridView,简单的文本行和列的内容,与GDI +在.NET到纸上。

I need to print the contents of a datagridview, simple text in rows and columns, with GDI+ in .NET to paper.

要做到这一点,我需要遍历行,画线,遍历列,计算宽度,高度,包裹的内容,如果内容不适合在一行,等等。这都是可能的,但有它简化了在GDI +表的绘画和抽象一些困难走一库?

To do this, I need to iterate over the rows, draw lines, iterate over the columns, calculate width, height, wrap the contents if contents do not fit on one line, etc. This is all possible, but is there a library that simplifies the drawing of tables in GDI+ and abstracts some of the difficulties away?

推荐答案

这是一个非常普遍的要求。简单的关键字,谷歌打印datagridview的。这里有一个体面望一眼

This is a very common request. Easy keywords, google "print datagridview". Here's a decent looking one.

这篇关于.NET库绘制与GDI表+的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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