1.delphiå¦ä½ç¨CreateWindowExå建ä¸ä¸ªçªä½ï¼
2.在DELPHI设置EXCEL工作薄的源码名称
delphiå¦ä½ç¨CreateWindowExå建ä¸ä¸ªçªä½ï¼
è¿ä¸ªé½æ²¡äººæ¥çä¹ï¼é£ææ¥å¤§æ¦è¯´è¯´å§ã
é¦å ä½ å¾å åä¸ä¸ªæ³¨åçªå£çå½æ°ï¼
function tmainform.RegClass:Boolean;
var
WndClass:TWndClass;
begin
//è¿éé¢æ¯ä½ 注åçWndClassçªä½çä¿¡æ¯ï¼ä»£ç 麻ç¦æå°±ä¸æäºã
end;
ç¶åæ¯å建çªå£çè¿ç¨ï¼
procedure tmainform.CreateForm;
var
Wnd:HWND;
begin
RegClass;
Wnd:=CreateWindow('MyFormClass', //注åçªå£ç±»å
'çªå£æ é¢', //çªå£æ é¢æ
WS_OVERLAPPEDWINDOW, //çªå£é£æ ¼
CW_USEDEFAULT, //é»è®¤left
CW_USEDEFAULT, //é»è®¤top
CW_USEDEFAULT, //é»è®¤width
CW_USEDEFAULT, //é»è®¤height
SELF.HANDLE, //ç¶çªå£å¥æ
MainMenu1.Handle, //çªå£èå
HInstance, //ç¨åºå®ä¾
nil //çªä½éå åæ°
);
IF Wnd<>0 THEN
BEGIN
ShowWindow(Wnd,SW_SHOWNORMAL); //SHOWçªå£
UpdateWindow(Wnd); //å·æ°çªå£
END;
end;
å®äºï¼ä»¥ä¸æ¯ä»¥ CreateWindow ä¸ºä¾ å建çªå£ï¼ä» ä½åèã
PSï¼æ²¡æåçåçè¿è¦æNå¤ä»£ç ï¼æªä¸å¾æ²¡äººæ¥çã
在DELPHI设置EXCEL工作薄的名称
首先打开EXCEL文件,改名保存后,源码爬虫源码java删除原文件就达到目地了。源码报价源码后台密码
源码:
procedure TForm1.Button1Click(Sender: TObject);
const
NewName = 'NewName.xls';
var
fnm,源码咸鱼源码怎么发货pth: String;
ExlApp: TExcelApplication;
ExlWb: TExcelWorkbook;
begin
if OpenDialog1.Execute then begin
fnm := OpenDialog1.FileName;
pth := ExtractFilePath(fnm);
ExlApp := TExcelApplication.Create(Forms.Application);
ExlApp.Connect;
ExlApp.Visible[0] := False;
ExlWb := TExcelWorkbook.Create(Forms.Application);
ExlWb.ConnectTo(
ExlApp.Workbooks.Open(fnm,
EmptyParam,EmptyParam,EmptyParam,EmptyParam,
EmptyParam,EmptyParam,EmptyParam,EmptyParam,
EmptyParam,EmptyParam,EmptyParam,EmptyParam,
EmptyParam,EmptyParam,0));
ExlApp.Application.DisplayAlerts[0] := False;
ExlWb.SaveCopyAs(pth + NewName);
ExlWb.Close(EmptyParam, fnm, EmptyParam, 0);
ExlApp.Quit;
//必要时,可以删除原来的源码药店进销php源码文件
//DeleteFile(fnm);
end;
end;
2024-11-23 12:30
2024-11-23 12:10
2024-11-23 12:07
2024-11-23 11:51
2024-11-23 11:36
2024-11-23 11:18
2024-11-23 11:08
2024-11-23 10:19