أي نعم بنفس المقاربة لكن ليس بالسهولة التي تجعلنا نقوم بإسقاطات للأكواد و ليس بتلك الصعوبة
التي نضخمها لنا إن شاء الله حوار حول هذا
التي نضخمها لنا إن شاء الله حوار حول هذا

-- create scatterplot in Excel
require('luacom')
local excel = luacom.CreateObject("Excel.Application")
excel.Visible = true
local wb = excel.Workbooks:Add()
local ws = wb.Worksheets(1)
for row=1, 12 do
ws.Cells(row,1).Value2 = Grid.GetCellText("Grid1", row, 1);
ws.Cells(row,2).Value2 = Grid.GetCellText("Grid1", row, 2);
ws.Cells(row,3).Value2 = Grid.GetCellText("Grid1", row, 3);
ws.Cells(row,4).Value2 = Grid.GetCellText("Grid1", row, 4);
ws.Cells(row,5).Value2 = Grid.GetCellText("Grid1", row, 5);
ws.Cells(row,6).Value2 = Grid.GetCellText("Grid1", row, 6);
ws.Cells(row,7).Value2 = Grid.GetCellText("Grid1", row, 7);
ws.Cells(row,8).Value2 = Grid.GetCellText("Grid1", row, 8);
ws.Cells(row,9).Value2 = Grid.GetCellText("Grid1", row,9);
ws.Cells(row,10).Value2 = Grid.GetCellText("Grid1", row, 10);
ws.Cells(row,11).Value2 = Grid.GetCellText("Grid1", row, 11);
ws.Cells(row,12).Value2 = Grid.GetCellText("Grid1", row, 12);
end
-- create scatterplot in Excel
require('luacom')
local excel = luacom.CreateObject("Excel.Application")
excel.Visible = true
local wb = excel.Workbooks:Add()
local ws = wb.Worksheets(1)
ws.Cells(1,10).Value2 = Input.GetText("Input1")
ws.Cells(2,10).Value2 = Input.GetText("Input2")
ws.Cells(3,10).Value2 = Input.GetText("Inpût3")
for row=4, 20 do
ws.Cells(row,1).Value2 = Grid.GetCellText("Grid1", row-3, 1);
ws.Cells(row,2).Value2 = Grid.GetCellText("Grid1", row-3, 2);
ws.Cells(row,3).Value2 = Grid.GetCellText("Grid1", row-3, 3);
ws.Cells(row,4).Value2 = Grid.GetCellText("Grid1", row-3, 4);
ws.Cells(row,5).Value2 = Grid.GetCellText("Grid1", row-3, 5);
ws.Cells(row,6).Value2 = Grid.GetCellText("Grid1", row-3, 6);
ws.Cells(row,7).Value2 = Grid.GetCellText("Grid1", row-3, 7);
ws.Cells(row,8).Value2 = Grid.GetCellText("Grid1", row-3, 8);
ws.Cells(row,9).Value2 = Grid.GetCellText("Grid1", row-3,9);
ws.Cells(row,10).Value2 = Grid.GetCellText("Grid1", row-3, 10);
ws.Cells(row,11).Value2 = Grid.GetCellText("Grid1", row-3, 11);
ws.Cells(row,12).Value2 = Grid.GetCellText("Grid1", row-3, 12);
end
DLL.CallFunction("user32.dll", "LoadKeyboardLayoutA", "\"00000401\", 1", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
RichText.SetSelection("RichText2", 1, -1);
D=RichText.Copy("RichText2");
require('luacom')
local excel = luacom.CreateObject("Excel.Application")
local wb = excel.Workbooks:Add()
local ws = wb.Worksheets(1)
local range = ws:Range('A1:M16')
local cell = ws.Cells(1,17)
excel.Visible = true
local rangee = ws:Range('A4:M16')
rangee.Borders.LineStyle = 1
ws:Range('A4:M16').BorderAround(1)
cell.Font.Name = 'Traditional Arabic'
range.Font.Name = 'Traditional Arabic'
cell.Font.Bold = true
cell.Font.Size = 16
range.Font.Size = 16
ws:Paste(ws:Range('A1'))
ws:Range('A1:M1'):Merge()
ws:Range('A2:M2'):Merge()
ws:Range('A3:M3'):Merge()
ws:Range('A1:M17').HorizontalAlignment = -4108
local ranget = ws:Range('A4:A16')
local ranger = ws:Range('A4:M4')
ranget.Interior.Color = 0x269900
ranger.Interior.Color = 0xf50000
local cel1 = ws.Cells(1,1)
local cel2 = ws.Cells(2,1)
local cel3 = ws.Cells(3,1)
cel1.Font.Color = 0x0000FF
cel2.Font.Color = 0x00CC33
cel3.Font.Color = 0xFF0000
for row=4, Grid.GetRowCount("Grid1")-2 do
ws.Cells(row,1).Value2 = Grid.GetCellText("Grid1", row-3, 0);
ws.Cells(row,2).Value2 = Grid.GetCellText("Grid1", row-3, 1);
ws.Cells(row,3).Value2 = Grid.GetCellText("Grid1", row-3, 2);
ws.Cells(row,4).Value2 = Grid.GetCellText("Grid1", row-3, 3);
ws.Cells(row,5).Value2 = Grid.GetCellText("Grid1", row-3, 4);
ws.Cells(row,6).Value2 = Grid.GetCellText("Grid1", row-3, 5);
ws.Cells(row,7).Value2 = Grid.GetCellText("Grid1", row-3, 6);
ws.Cells(row,8).Value2 = Grid.GetCellText("Grid1", row-3, 7);
ws.Cells(row,9).Value2 = Grid.GetCellText("Grid1", row-3, 8);
ws.Cells(row,10).Value2 = Grid.GetCellText("Grid1", row-3,9);
ws.Cells(row,11).Value2 = Grid.GetCellText("Grid1", row-3, 10);
ws.Cells(row,12).Value2 = Grid.GetCellText("Grid1", row-3, 11);
ws.Cells(row,13).Value2 = Grid.GetCellText("Grid1", row-3, 12);
end
تعليق