Post Print Search
帖子排序:    
帖子发起人: numlive   发起时间: 2006-05-13 22:54   回复: 4
numlive 离线,最后访问时间: 2006-5-31 0:05:19 numlive



发帖数前25位

注册: 2006-05-10
发贴: 10
.Net cf2.0下报表如何解决?
楼主  2006-05-13, 22:54 Reply Quote

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

 


数字生活,引领未来!
http://www.numlive.com
IP 地址: 已记录   报告
breakstring 离线,最后访问时间: 2008-3-31 13:35:42 被遗弃的小指



发帖数前10位
男

注册: 2005-11-28
发贴: 91
Re: .Net cf2.0下报表如何解决?
第2楼  2006-05-14, 0:32 Reply Quote
GDI+自己画啊。。。
IP 地址: 已记录   报告
garfield 离线,最后访问时间: 2006-12-19 13:13:24 GF

发帖数前150位

注册: 2006-06-20
发贴: 2
Re: .Net cf2.0下报表如何解决?
第3楼  2006-06-21, 11:27 Reply Quote
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画图了。
IP 地址: 已记录   报告
jetcomguan 离线,最后访问时间: 2006-12-4 10:38:47 jetcomguan

发帖数前75位

注册: 2006-07-17
发贴: 3
Re: .Net cf2.0下报表如何解决?
第4楼  2006-07-17, 23:29 Reply Quote
很有用
IP 地址: 已记录   报告
wt0731 离线,最后访问时间: 2007-12-2 11:28:01 ah

发帖数前50位

注册: 2007-01-29
发贴: 6
Re: .Net cf2.0下报表如何解决?
第5楼  2007-11-20, 15:08 Reply Quote
试试ChartControl,可以画拆线图和柱状图和饼图~
IP 地址: 已记录   报告
Mobile应用开发 » 移动开发技术 » .NET Compact Fr... » .Net cf2.0下报表如何解决?