Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)