excelexportuse.xml
来自「用delphib编程的一个关于数据库的管理源程序。有利于初学者学习使用、」· XML 代码 · 共 34 行
XML
34 行
<?xml version="1.0" encoding="utf-8" ?>
<codetemplate xmlns="http://schemas.borland.com/Delphi/2005/codetemplates" version="1.0.0">
<template name="ExcelExportUse" invoke="manual">
<description>Use TscExcelExport component</description>
<author>Stefan Cruysberghs, http://www.scip.be</author>
<point name="ExcelExport">
<text>scExcelExport1</text>
<hint>TscExcelExport component</hint>
</point>
<point name="ConnectTo">
<text>ctNewExcel</text>
<hint>Connection : ctNewExcel, ctNewWorkbook, ctNewWorksheet</hint>
</point>
<point name="Dataset">
<text>ClientDataset1</text>
<hint>Dataset to export to Excel</hint>
</point>
<code language="Delphi" delimiter="|"><![CDATA[
try
|ExcelExport|.LoadDefaultProperties;
|ExcelExport|.ExcelVisible:=True;
|ExcelExport|.ConnectTo:=|ConnectTo|;
|ExcelExport|.Dataset:=|Dataset|;
|ExcelExport|.Connect;
|ExcelExport|.ExportDataset;
finally
|ExcelExport|.Disconnect;
end;
|end|]]></code>
</template>
</codetemplate>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?