在C#中打印图形 [英] printing graphics in C#

查看:123
本文介绍了在C#中打印图形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio Power Pack中通过图形线绘制了图表,现在我想打印表格,但是在打印页中看不到图表,为什么?
我该如何解决?
这很重要,请帮助我.

I draw a chart by graphic lines in Visual Studio Power Packs and now I want to print form but I can''t see chart in print page, why?
How I can fix it?
It''s very important please help me.

推荐答案

如果要打印表单,请尝试使用Visual Basic PrintForm控件.
在Visual Studio Poer Pack下的Visual Studio工具箱中可用.
希望它能起作用.
If you want to print form then try to use Visual Basic PrintForm control.
It is available in visual studio tool box under visual basic poer packs.
hope it works.


您需要使用Chart控件的Printin g属性在Chart Control中打印图表图片.
要在包含其他文档元素的文档中打印图表图片,请在PrintPageEventHandler中调用 PrintPaint方法.您必须将PrintPageEventArgs对象的Graphics属性以及定义文档中图表图片位置的Rectangle对象传递给PrintPaint方法.
参考链接:- MSDN图表打印(图表控件) [
You need to use the Chart control''s Printing property to print the chart picture in Chart Control.
To print the chart picture in a document that contains other document elements, invoke the PrintPaint method inside a PrintPageEventHandler. You must pass to the PrintPaint method the Graphics property from the PrintPageEventArgs object, along with a Rectangle object that defines the position of the chart picture in the document.
Reference Link :- MSDN-Chart Printing (Chart Controls)[^]


这篇关于在C#中打印图形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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