تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
[VB.NET] استفسار عن تصدير الرسم البياني الى ملف الوورد
#6
استبدل كود Button1 بـ :

PHP كود :
   Private Sub Button1_Click(sender As System.ObjectAs System.EventArgsHandles Button1.Click
        Dim i1 
As Decimal TxtBrotin.Text
        Dim i2 
As Decimal TxtKrpohidrat.Text
        Dim i3 
As Decimal TxtDohon.Text
        Dim total 
As Decimal i1 i2 i3
        Dim deg1 
As Decimal = (i1 total) * 360
        Dim deg2 
As Decimal = (i2 total) * 360
        Dim deg3 
As Decimal = (i3 total) * 360
        Dim pen 
As New Pen(Color.Black2)

 
       Dim Img0 As New Bitmap(PbChart_pic.WidthPbChart_pic.Height)
 
       Dim graphics As Graphics PbChart_pic.CreateGraphics()

 
       Dim rect As New Rectangle(5025200200)
 
       Dim brush1 As New SolidBrush(Color.Green)
 
       Dim brush2 = New SolidBrush(Color.Yellow)
 
       Dim brush3 = New SolidBrush(Color.Red)
 
       Dim G As Graphics graphics.FromImage(Img0)
 
       G.Clear(PbChart_pic.BackColor)
 
       G.FillPie(brush1rect0deg1)
 
       G.FillPie(brush2rectdeg1deg2)
 
       G.FillPie(brush3rectdeg1 deg2deg3)
 
       Dim ms As New MemoryStream
        Img0
.Save(msImaging.ImageFormat.Png)
 
       Img ms.ToArray
        PbChart_pic
.Image Image.FromStream(ms)
 
       G.Dispose()
 
       mytotal()
 
   End Sub 


الملفات المرفقة صورة/صور
   
الرد }}}
تم الشكر بواسطة:


الردود في هذا الموضوع
RE: استفسار عن تصدير الرسم البياني الى ملف الوورد - بواسطة asemshahen5 - 09-06-19, 08:13 PM


التنقل السريع :


يقوم بقرائة الموضوع: