เอกสาร HotXLS

คอมโพเนนต์ TcxGridAddExcel

หน่วย: cxGridAddExcel
คอมโพเนนต์เสริมสำหรับส่งออกเนื้อหา DevExpress TcxGridDBTableView ไปยังสมุดงาน HotXLS

คำอธิบาย

TcxGridAddExcel จำลองคอมโพเนนต์ส่งออก dataset และ DBGrid สำหรับโปรเจ็กต์ที่ใช้คอนโทรล DevExpress cxGrid อยู่แล้ว ไม่ได้รวมอยู่ใน HotXLS หลัก cxGridAddExcel.pas เมธอด

SaveCxGridAs

function Exports assigned(filename: WideString): Integer;
function Saves current เวิร์กบุ๊ก after component has exported data ไปยัง it(filename: WideString): Integer;
procedure Exports cxGrid view to current เวิร์กบุ๊ก, optionally creating new sheet, choosing start เซลล์, หรือ assigning sheet name(NewSheet: Boolean; Row, Col: Integer; const SheetName: WideString); overload;
procedure Exports cxGrid view to current เวิร์กบุ๊ก, optionally creating new sheet, choosing start เซลล์, หรือ assigning sheet name(NewSheet: Boolean); overload;
procedure Exports cxGrid view to current เวิร์กบุ๊ก, optionally creating new sheet, choosing start เซลล์, หรือ assigning sheet name; overload;
procedure Exports cxGrid view to current เวิร์กบุ๊ก, optionally creating new sheet, choosing start เซลล์, หรือ assigning sheet name(NewSheet: Boolean; const SheetName: WideString); overload;
procedure Stops running export จาก event handler;
      
Exports assigned และ saves เวิร์กบุ๊ก to specified file CxDBTableView Saves current เวิร์กบุ๊ก after component has exported data ไปยัง it
Saves current เวิร์กบุ๊ก after component has exported data ไปยัง it Exports cxGrid view to current เวิร์กบุ๊ก, optionally creating new sheet, choosing start เซลล์, หรือ assigning sheet name
Exports cxGrid view to current เวิร์กบุ๊ก, optionally creating new sheet, choosing start เซลล์, หรือ assigning sheet name Stops running export จาก event handler
Stops running export จาก event handler เวิร์กบุ๊ก target properties

เลือกมุมมอง DevExpress เพื่อส่งออก

property CxDBTableView: TcxGridDBTableView;
property Workbook: IXLSWorkbook;
property Worksheet: TXLSWorksheet;
property WorksheetName: String;
      
CxDBTableView , และ Workbook, Worksheetให้กำหนดปลายทาง WorksheetName คุณสมบัติด้านเค้าโครงและการแบ่งหน้า

คุณสมบัติเหล่านี้ควบคุมตำแหน่งเริ่มต้นการส่งออก ว่าส่งออกส่วนหัวและแถวที่เลือกหรือไม่ จำนวนแถวต่อแผ่น และวิธีปรับขนาดคอลัมน์

property StartRow: Word;
property StartCol: Word;
property StartDRow: Integer;
property StartDCol: Integer;
property RowsPerSheet: Integer;
property SetColumnsWidth: Boolean;
property ExportHeader: Boolean;
property ExportSelection: Boolean;
property ClearGroupFields: Boolean;
property GroupFields: TStrings;
      
ใช้คุณสมบัติเหล่านี้เพื่อใช้ฟอนต์ สี ขอบ และกฎการยับยั้งรูปแบบของ HotXLS หรือเก็บสไตล์ส่วนหัวและรายละเอียดดั้งเดิมของ cxGrid

ใช้คุณสมบัติเหล่านี้เพื่อใช้ฟอนต์ สี ขอบ และกฎการยับยั้งรูปแบบของ HotXLS หรือเก็บสไตล์ส่วนหัวและรายละเอียดดั้งเดิมของ cxGrid

property HeaderFont: TFont;
property DetailFont: TFont;
property GroupFont: TFont;
property HeaderColor: TColor;
property DetailColor: TColor;
property GroupColor: TColor;
property HeaderBorderStyle: TBorderStyle;
property DetailBorderStyle: TBorderStyle;
property GroupBorderStyle: TBorderStyle;
property HeaderBorderColor: TColor;
property DetailBorderColor: TColor;
property GroupBorderColor: TColor;
property OriginalHeaderFont: Boolean;
property OriginalDetailFont: Boolean;
property OriginalHeaderColor: Boolean;
property OriginalDetailColor: Boolean;
property DisableFormat: TFormatOptions;
      
เหตุการณ์

Event handler รับออบเจ็กต์

property AfterHeaderCell: TAfterDBGridHeaderCell;
property AfterHeader: TAfterDBGridHeader;
property AfterDetailCell: TAfterDBGridDetailCell;
property AfterDetailRow: TAfterDBGridDetailRow;
property AfterDetail: TAfterDBGridDetail;
property AfterExport: TAfterDBGridExport;
property OnWorksheetCreate: TOnDBGridWorksheetCreate;
property AfterGroupTitle: TAfterGroupTitle;
      
หรือ IXLSRange or TXLSWorksheet ที่สร้างขึ้น เพื่อให้ผู้เรียกปรับเซลล์ ส่วนหัว แถวจัดกลุ่ม ฯลฯ ได้