File tree Expand file tree Collapse file tree 4 files changed +39
-18
lines changed
BlackDigital.Report.Example Expand file tree Collapse file tree 4 files changed +39
-18
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,17 @@ Currently it is only generating reports in spreadsheets.
16
16
17
17
## Installing
18
18
19
- _ pending_
19
+ * Package Manager
20
+
21
+ ```
22
+ Install-Package BlackDigital.Report
23
+ ```
24
+
25
+ * .NET CLI
26
+
27
+ ```
28
+ dotnet add package BlackDigital.Report
29
+ ```
20
30
21
31
## Coding
22
32
@@ -63,7 +73,7 @@ _pending_
63
73
.BuildAsync (@" test.xlsx" );
64
74
```
65
75
66
- ![ Example] ( https://github. com/blackdigital-br/BlackReport/blob/ main/docs/images/ClassExample.png?raw=true )
76
+ ![ Example] ( https://raw.githubusercontent. com/blackdigital-br/BlackReport/main/docs/images/ClassExample.png )
67
77
68
78
### From List
69
79
@@ -102,7 +112,7 @@ _pending_
102
112
.BuildAsync (@" test.xlsx" );
103
113
```
104
114
105
- ![ Example] ( https://github. com/blackdigital-br/BlackReport/blob/ main/docs/images/ListExample.png?raw=true )
115
+ ![ Example] ( https://raw.githubusercontent. com/blackdigital-br/BlackReport/main/docs/images/ListExample.png )
106
116
107
117
### Others Examples
108
118
@@ -138,14 +148,21 @@ _pending_
138
148
139
149
```
140
150
151
+ ### Example
152
+
153
+ https://github.com/blackdigital-br/BlackReport/tree/main/src/BlackDigital.Report.Example
154
+
141
155
## Roadmap
142
156
143
157
☑️ Excel Tables. (0.1.0.0)
144
158
☑️ Fill from instance class. (0.1.0.0)
145
159
◼️ Use DisplayAttribute to get name of columns and properties that should be generated.
146
160
◼️ Excel Shared String.
147
161
◼️ Cells with formulas.
148
- ◼️ Cell value set event.
162
+ ◼️ Cell value event.
163
+ ◼️ Tables footers.
164
+ ◼️ Unit test.
165
+ ◼️ Multiple tables in the same worksheet.
149
166
◼️ Olders .net versions.
150
167
◼️ Others types (Word, csv...).
151
168
◼️ Your suggestion.
Original file line number Diff line number Diff line change 23
23
"Column 4"
24
24
} ;
25
25
26
+
27
+
26
28
var report = ReportGenerator . Spreadsheet ( )
27
29
. SetCompany ( "BlackDigital" )
28
30
. SetType ( SpreadsheetDocumentType . Workbook )
Original file line number Diff line number Diff line change 4
4
<TargetFramework >net6.0</TargetFramework >
5
5
<ImplicitUsings >enable</ImplicitUsings >
6
6
<Nullable >enable</Nullable >
7
+ <AssemblyVersion >0.1.0.0</AssemblyVersion >
8
+ <FileVersion >0.1.0.0</FileVersion >
9
+ <PackageReadmeFile >README.md</PackageReadmeFile >
10
+ <GeneratePackageOnBuild >True</GeneratePackageOnBuild >
11
+ <Version >$(VersionPrefix)0.1.0</Version >
12
+ <Description >Simple report generator using OpenXML. Currently it is only generating reports in spreadsheets.</Description >
13
+ <PackageProjectUrl >https://github.com/blackdigital-br/BlackReport</PackageProjectUrl >
14
+ <RepositoryUrl >https://github.com/blackdigital-br/BlackReport</RepositoryUrl >
15
+ <SignAssembly >False</SignAssembly >
7
16
</PropertyGroup >
8
17
18
+ <ItemGroup >
19
+ <None Include =" ..\..\README.md" >
20
+ <Pack >True</Pack >
21
+ <PackagePath >\</PackagePath >
22
+ </None >
23
+ </ItemGroup >
24
+
9
25
<ItemGroup >
10
26
<PackageReference Include =" DocumentFormat.OpenXml" Version =" 2.17.1" />
11
27
</ItemGroup >
Original file line number Diff line number Diff line change @@ -8,20 +8,6 @@ namespace BlackDigital.Report
8
8
{
9
9
public abstract class ReportBuilder
10
10
{
11
-
12
- /*protected readonly IReportGenerator Report;
13
-
14
-
15
- public Task<byte[]> GenerateAsync(IEnumerable<IEnumerable<object>> data, IEnumerable<string> columns)
16
- {
17
- return Report.GenerateReportAsync(data, columns, this);
18
- }
19
-
20
- public Task<byte[]> GenerateAsync<T>(IEnumerable<T> data)
21
- {
22
- return GenerateAsync(ObjectToData(data), typeof(T).GetProperties().Select(p => p.Name));
23
- }*/
24
-
25
11
public abstract Task < byte [ ] > BuildAsync ( ) ;
26
12
27
13
public async Task BuildAsync ( Stream stream )
You can’t perform that action at this time.
0 commit comments