Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/viniciussanchez/devexpress4delphi
Class helper for DevExpress components
https://github.com/viniciussanchez/devexpress4delphi
cxgrid delphi devexpress helper vcl
Last synced: 17 days ago
JSON representation
Class helper for DevExpress components
- Host: GitHub
- URL: https://github.com/viniciussanchez/devexpress4delphi
- Owner: viniciussanchez
- License: apache-2.0
- Created: 2019-07-05T11:39:57.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-18T14:56:26.000Z (6 months ago)
- Last Synced: 2024-11-07T08:51:17.880Z (about 2 months ago)
- Topics: cxgrid, delphi, devexpress, helper, vcl
- Language: Pascal
- Homepage:
- Size: 226 KB
- Stars: 37
- Watchers: 6
- Forks: 16
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DevExpress Helper for Delphi
![Delphi Supported Versions](https://img.shields.io/badge/Delphi%20Supported%20Versions-XE3%20and%20ever-blue.svg)
![Platforms](https://img.shields.io/badge/Supported%20platforms-Win32%20and%20Win64-red.svg)
DevExpress4Delphi is a class helper for DevExpress components.
## Prerequisites
* [**DevExpress**](https://www.devexpress.com/products/vcl/) - VCL Components for Delphi and C++Builder
* `[Optional]` For ease I recommend using the [**Boss**](https://github.com/HashLoad/boss) (Dependency Manager for Delphi) for installation
## Installation using Boss (dependency manager for Delphi applications)
```
boss install github.com/viniciussanchez/DevExpress4Delphi
```## Manual Installation
Add the following folders to your project, in *Project > Options > Resource Compiler > Directories and Conditionals > Include file search path*
```
../DevExpress4Delphi/src
```## Getting Started
You need to use DevExpress.Helper
```pascal
uses DevExpress.Helper;
```## Export
You can pass two parameters:
* `AOpenFileAfter`: Open file after export. Default is True.
* `AExpand`: Expand records. Default is True.#### Exporting to Excel
```pascal
begin
cxGrid1.ExportToExcel();
end;
```#### Exporting to HTML
```pascal
begin
cxGrid1.ExportToHTML();
end;
```#### Exporting to XML
```pascal
begin
cxGrid1.ExportToXML();
end;
```#### Exporting to file text
```pascal
begin
cxGrid1.ExportToTXT();
end;
```## Adjust the size of the column
You can pass parameter:
* `AMaxWidth`: Refers the maximum column width.```pascal
begin
cxGrid1DBTableViewNAME.Resize();
end;
```## Samples
Exporting to excel:
![DevExpress4Delphi](samples/img/Screenshot_2.png)
Adjusting the size of the column so that there is no white space on the grid:
![DevExpress4Delphi](samples/img/Screenshot_4.png)