.Net cf2.0下报表如何解决?

.NET Compact Framework

.Net cf2.0下报表如何解决?


numlive 2006-05-13, 22:54

.Net cf2.0下我要画拆线图和柱状图,有没有可用的组件呢?

 


数字生活,引领未来!
http://www.numlive.com

Re: .Net cf2.0下报表如何解决?


被遗弃的小指 2006-05-14, 0:32
GDI+自己画啊。。。

Re: .Net cf2.0下报表如何解决?


GF 2006-06-21, 11:27
MSDN有个例子: private PictureBox pictureBox1 = new PictureBox(); private void Form1_Load(object sender, System.EventArgs e) { // Dock the PictureBox to the form and set its background to white. pictureBox1.Dock = DockStyle.Fill; pictureBox1.BackColor = Color.White; // Connect the Paint event of the PictureBox to the event handling method. pictureBox1.Paint += new System.Windows.Forms.PaintEventHandler(this.pictureBox1_Paint); // Add the PictureBox control to the Form. this.Controls.Add(pictureBox1); } private void pictureBox1_Paint(object sender, System.Windows.Forms.PaintEventArgs e) { // Create a local version of the graphics object for the PictureBox. Graphics g = e.Graphics; // Draw a string on the PictureBox. g.DrawString("This is a diagonal line drawn on the control", new Font("Arial",10), System.Drawing.Brushes.Blue, new Point(30,30)); // Draw a line in the PictureBox. g.DrawLine(System.Drawing.Pens.Red, pictureBox1.Left, pictureBox1.Top, pictureBox1.Right, pictureBox1.Bottom); } 可是pictureBox1并没有paint 这个事件啊,在PPC上就老出警告。真不知该怎么用graphics画图了。

Re: .Net cf2.0下报表如何解决?


jetcomguan 2006-07-17, 23:29
很有用

Re: .Net cf2.0下报表如何解决?


ah 2007-11-20, 15:08
试试ChartControl,可以画拆线图和柱状图和饼图~
Copy Left WinFans(R)

Powered by Community Server Powered by CnForums.Net