Commit Graph

340 Commits

Author SHA1 Message Date
FoxAhead
371dfbba56 Method DATE_TO_EXCEL_STRING: Date field = space
Sometimes you get date field empty - containing only space(s) (not zeroes '00000000'). This value treated as not initial in ABAP for fields typed as D. This resulted in passing by
  CHECK ip_value IS NOT INITIAL
and calculating
  lv_date_diff = ip_value - c_excel_baseline_date + 1.
which returns "-693596". In EXCEL this displayed as #########...
2016-09-29 15:00:57 +03:00
Alessandro Iannacci
8deaf71715 Issue: VERSION constant is 7.0.3 in the 7.0.6 NUGG file (#459)
Issue: VERSION constant is 7.0.3 in the 7.0.6 NUGG file (#459)
2016-09-09 15:29:21 +02:00
Łukasz Pęgiel
5df8423aca ExclTable 2016-04-01 20:23:13 +02:00
Łukasz Pęgiel
6b5eaa810f ? 2016-04-01 20:19:46 +02:00
Łukasz Pęgiel
c5b5084cfa Merge remote-tracking branch 'refs/remotes/ivanfemia/master'
# Conflicts:
#	ZA2X/CLAS/ZCL_EXCEL_TABLE.slnk
2016-03-31 20:21:03 +02:00
Łukasz Pęgiel
fb1ae88d92 THEMES + 2016-03-31 20:13:25 +02:00
Łukasz Pęgiel
98a508cb11 Worksheet, number 2016-03-31 20:09:30 +02:00
Łukasz Pęgiel
9924735a6a Revert "WORKSHEET, TABLE, STYLE_NUMBER_FORMAT"
This reverts commit 9d7a701585.

# Conflicts:
#	ZA2X/CLAS/ZCL_EXCEL_TABLE.slnk
2016-03-30 22:57:38 +02:00
Łukasz Pęgiel
5cf8deda3a Commit failed changes 2016-03-30 22:32:13 +02:00
Łukasz Pęgiel
a4e834eafa Revert "Revert "Revert "WORKSHEET, TABLE, STYLE_NUMBER_FORMAT"""
This reverts commit 011301aae0.
2016-03-30 22:31:16 +02:00
Łukasz Pęgiel
011301aae0 Revert "Revert "WORKSHEET, TABLE, STYLE_NUMBER_FORMAT""
This reverts commit 1f3e967a1f.
2016-03-30 22:29:41 +02:00
Łukasz Pęgiel
1f3e967a1f Revert "WORKSHEET, TABLE, STYLE_NUMBER_FORMAT"
This reverts commit 9d7a701585.
2016-03-30 22:27:38 +02:00
GARCIA Guillaume
e3d34b8768 Description correction
Corrected a copy/paste error for Drawings attribute
2015-12-28 13:36:01 +01:00
Stefan Schnell
94ac8cfbd2 Update ZCL_EXCEL_WORKSHEET.slnk
Code correction for HANA functional correctness.
2015-12-09 14:49:10 +01:00
Stefan Schmöcker
96d945145e Contribution by Stefan Schnell: Added all built-in styles into class ZCL_EXCEL_TABLE
Hint by Stefan Schnell:  Sometimes my name ( or better the umlaut in my name ) seems to cause problems.  I changed it from ö to oe wherever still wrong
2015-11-22 12:15:18 +01:00
Stefan Schmöcker
524c8f5e12 Add formula as export parameter to ZCL_EXCEL_WORKSHEET->GET_CELL
Autofilters got lost at last attempt to modularize the very long method ZCL_EXCEL_WRITER_2007->CREATE_XL_SHEET
2015-10-23 08:52:33 +02:00
Łukasz Pęgiel
f62ee2a037 Demo of modification of theme added
ZDEMO_EXCEL42
2015-09-25 19:30:53 +02:00
Łukasz Pęgiel
f37e6e1b88 Themes hanling
In the reader I've added loading of theme1.xml file. Color scheme and
fonts are loaded to proper structure and can be updated, fmtscheme is at
the moment copied from oryginal file as well as object defaults, extra
colors and extension list.

In case of new file default office theme is used.

Changes can be tested with DEMO37 just create simple excel with theme
settings and use program to rewrite file.
2015-09-24 23:41:31 +02:00
Łukasz Pęgiel
9d7a701585 WORKSHEET, TABLE, STYLE_NUMBER_FORMAT
ZCL_EXCEL_WORKSHEET:
- in method BIND_ALV optional parameter I_TABLE added so we can decide
if we want to have formated table in Excel or not
- in method BIND_TABLE optional parameter IV_DEFAULT_DESCR added to be
able to control which description you want to use as a table header.
ZCL_EXCEL_STYLE_NUMBER_FORMAT :
- GBP and PLN currency formats added
ZCL_EXCEL_TABLE:
- few built in table styles added
2015-08-28 18:24:51 +02:00
Łukasz Pęgiel
556ebdbc9b #252 Error while using grid object and reuse_alv table.
When you take the grid object from reuse_alv_grid_display FM then when
cells were colored I received dump as the structure of color table was
hardcoded to lvc_t_scol. When we have object from SLIS then there
structure is differen so I prepared code to handle both situations.
2015-08-28 14:29:48 +02:00
Stefan Schmöcker
19de3e8b2f Issue #205 - Some corrections before closing the issue 2015-08-14 23:19:47 +02:00
Stefan Schmöcker
19b5b57d36 Fix issue #389: Problem with built-in styles
Added version history to build-directory
2015-08-13 23:48:37 +02:00
Stefan Schmöcker
a9d2a41cbd Created new directory for objects not to be included in daily-build nugget which should hold all slinkees from the trunk/ZA2X/... subdirectories
Correction of issue #393 ( only SVN update - no daily build nugget )
Minimal additions to ZCL_EXCEL_COMMON->GET_FIELDCATALOG to speed up usage of BIND_TABLE-method in Worksheet
Minimal change to output-include ( S-message instead of I-message in one case )
2015-08-11 10:39:42 +02:00
Stefan Schmöcker
3a27b80e40 issue #392 - aligning XLSM-Writer with 2007-Writer 2015-08-03 20:40:04 +02:00
Stefan Schmöcker
7e01295fc3 Various issues concerning Autofilters, conditional styles, pane-freezing, Huge-Writer typo in XLST-Transformation 2015-08-03 15:31:11 +02:00
Stefan Schmöcker
e8ec7e89c5 Fixed issue #231: Reader does not read drawings correctly
Basically only the size was miscalulated.  Added new method to Drawing class to convert from emu to pixel and use this on reading a drawing.
Probable still not working when using different dpi then standard - but I have to see this before I can tackle it.
2015-07-13 22:54:06 +02:00
StefanSchmoecker
f1b69468d1 issue #377 - Added missing Structureenhancement and autofilter adjustment to get rid of sheet-guid 2015-07-13 00:24:10 +02:00
StefanSchmoecker
f1981a4ebd issue #372 - added support of stacking bars in charts 2015-07-13 00:00:15 +02:00
Alessandro Iannacci
9ef116622a issue #386 - Method BIND_TABLE - Unable to have columns with same name (method adds an index to the column)
Method BIND_TABLE - Unable to have columns with same name (method adds
an index to the column)
2015-06-25 15:03:39 +02:00
Alessandro Iannacci
28b73e0248 Issue #384 solved - Excel reader problem with pagebreaks: nullreference
Excel reader problem with pagebreaks: nullreference
2015-06-24 11:38:35 +02:00
Alessandro Iannacci
b9581c0113 Specify abap type in bind table method
- Added new field in the field catalog (ABAP_TYPE)
- Added the abap type management in the BIND_TABLE method
2015-06-17 14:12:53 +02:00
StefanSchmoecker
af00a56683 Issue #379 - obsolete function modules
Added new class/method to wrap obsolete function GUID_CREATE and use replacement class SAP provides.  Old function call still found in wrapper class commented out for use in older releases, which don't have the new methods from SAP yet ( 7.01 does not have it for example )
Replaced calls to function by calls to wrapper-method
Changed calculation of last date in month in ZDEMO_CALENDAR since it was calling an obsoleted function as well.
2015-06-16 16:03:05 +02:00
StefanSchmoecker
93cbadacf0 issue #380: File filter in ZCL_EXCEL_COMMON made language dependant 2015-06-16 14:59:39 +02:00
StefanSchmoecker
0f83a0a758 Issue #377 - support pagebreaks 2015-06-01 14:23:50 +02:00
Rüdiger Plantiko
1741fa6a63 Changed source language back to 'E'
I had erroneously maintained the last correction in original language 'D'.
2015-05-24 21:25:51 +02:00
Rüdiger Plantiko
959b02aa12 Def-376 Bug in shared string table reader
If Excel's shared string table (SST) contains the empty string not only at the beginning but also redundantly at a further place, the following bug in the shared string table reader of class ZCL_EXCEL_READER_HUGE_FILE occurs:

Since the sXML reader was not cleared with the beginning of each node, the last read string of the table was carried over into the next string . 

Added unit test ```test_shared_string_some_empty``` to reproduce the bug, and fixed it in the way proposed by Kai Walter (see Def-376)
2015-05-24 20:55:43 +02:00
oliver-huetkoeper
5e86e69e97 Style of remaining columns with no values
When setting a style for all columns the reader only reads this style for filled columns. The style of the remaining columns is dropped.
Example: You activate border lines for all cells, but you fill only the first three columns. After reading and writing it with ABAP2XLSX, only the first three columns have border lines.

This is fixed by setting the default style here.
2015-05-18 21:14:56 +02:00
Hannes Rempel
53aae02a08 compatibility with NW 7.2 2015-04-17 17:25:33 +02:00
StefanSchmoecker
60bd05f89d issue #368 - first part: correction autofilter with no values in filter in writerclass 2015-04-09 22:30:10 +02:00
StefanSchmoecker
5fc05a9ec5 Issue #367 - Enhancement: Added feature "Hide columns from
Added feature to Reader_20007, Writer_2007, Demoreport 12
2015-04-09 21:58:31 +02:00
StefanSchmoecker
ebad7f4166 issue #366, added support of conditional formatting to readerclass, added 2 more conditional formatting rules, added support of these formatting rules to writerclass, modified writerclass to have a uniform way of creating dxfs-style-entries 2015-03-31 16:02:29 +02:00
StefanSchmoecker
e4906d9562 Issue #365 + some new methods to access/delete sheets
ZCL_EXCEL->GET_WORKSHEET_BY_INDEX 		( new )
ZCL_EXCEL->SET_ACTIVE_SHEET_INDEX 		( Test if worksheet is existing --> raise on error )
ZCL_EXCEL->DELETE_WORKSHEET       	   	( new )
ZCL_EXCEL->DELETE_WORKSHEET_BY_NAME	   	( new )
ZCL_EXCEL->DELETE_WORKSHEET_BY_INDEX		( new )
ZCL_EXCEL_WRITER_2007->CREATE_XL_WORKBOOK	( Set active sheet to 1 if illegal active sheet is passed )
2015-03-26 21:16:19 +01:00
StefanSchmoecker
ef19367c68 Further correction to make Demoreport 37 work as before ( changed behaviour is optional merging to-parameters for row or column are omitted to allow intuitive merging like "Row 4, Columns C-F" 2015-03-12 23:44:15 +01:00
StefanSchmoecker
6958ff2b05 Minor corrections to cellmerging:
ZCL_EXCEL_WORKSHEET->DELETE_MERGE:  Parameters made optional
ZCL_EXCEL_WORKSHEET->SET_MERGE:     ColumnParameters set to "simple" and added Defaultvalues
2015-03-12 23:23:34 +01:00
Ivan
24515b3a0a fix issue #361 #363 #357 by Stefan Schmöcker""
I commit the changes due to an inconsistency in Stefan's repository
2015-03-02 09:46:24 -06:00
StefanSchmoecker
28e93b7895 fixed issue #362 - Error when reading templates with certain fonts 2015-02-28 15:48:16 +01:00
StefanSchmoecker
020637fa12 Corrected issue #355 ( writer not writing strings with leading blanks )
Added Marcus von Cube's addition that allows to write very large files by using a transformation instead of ixml-handling in the string
2015-02-12 22:28:29 +01:00
Łukasz Pęgiel
29c7e3eb7d GF
added handling of gradient fill in reader
2015-01-16 21:14:17 +01:00
Łukasz Pęgiel
c90c6d7e98 Revert "Gradient fill reader"
This reverts commit d5051cfb96.
2015-01-16 21:09:50 +01:00
Łukasz Pęgiel
d5051cfb96 Gradient fill reader
Gradient fill handling added to reader
2015-01-16 21:07:50 +01:00