Commit Graph

299 Commits

Author SHA1 Message Date
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
Ivan
5d4864eab8 Merge branch 'master' of https://github.com/ivanfemia/abap2xlsx 2015-01-12 14:55:36 -06:00
Ivan
24c5fca308 Update slinkees
Update of all the slinkees files with the latest version of SAPLink to
simplify merge of pull request
2015-01-12 14:55:28 -06:00
Ivan
f744db4704 Merge pull request #352 from fidley/#323-EXCEL-CONVERTER
#323 excel converter
2015-01-10 14:01:08 -06:00
Łukasz Pęgiel
7f54d62f88 Revert "Writer + Demo Programs"
This reverts commit cbcd9bab13.
2015-01-10 18:58:17 +01:00
Łukasz Pęgiel
fdec5a1476 ZCL_EXCEL_CONVERTER
Allowed to used objects which inherits from cl_gui_alv_grid
2015-01-10 18:52:14 +01:00
Ivan
b384c9df55 Update version attribute
New daily build will be released soon
2015-01-09 18:12:09 -06:00
Ivan
fde89c9625 Several Fixes and Include Pull Request #350
Added the pull request #350 "Gradient Fill -> writer + demo programs 2 &
34" manually
Fixed ZEXCEL_DEMO report, bug after fix #345
Excel common has a bug, right now I used a quick and really dirty
solution
2015-01-09 18:07:01 -06:00
Łukasz Pęgiel
cbcd9bab13 Writer + Demo Programs
Gradient fill handling for writer + Demo programs 2 & 34.
2015-01-06 21:41:38 +01:00
StefanSchmoecker
bca9254026 Fixed issue #349 - writer_xlsm not supporting template charts
Class ZCL_EXCEL_READER_2007:   Added new method called before creating the stream from the internal zip-represenation to allow child classes to write own data here
Class ZCL_EXCEL_WRITER_XLSM:   Reverted redefinition of method "CREATE" and put the vba-relevant coding into the new method just provided in ZCL_EXCEL_READER_2007.slnk
Class ZCL_EXCEL_READER_2007:   Inheritance: Added functionality to allow creation of childclasses from ZCL_EXCEL as well if needed
Interface ZIF_EXCEL_READER:    Inheritance: Added the new optional parameters to allow childclassed from ZCL_EXCEL to be created when reading an excel file
2015-01-06 12:06:19 +01:00
StefanSchmoecker
600ac8a159 Fixed issue #348: Referenced formulae truncated
CLASS ZCL_EXCEL_COMMON : Extended length of internal field - now we'd really need huuuuuuuge formulae before we truncate ( was afraid to switch to string, no time to analyze if that is feasible )
CLASS ZCL_EXCEL_STYLE_COLOR: Added a method to allow creating rgb-colors with integer input instead of hex-input for the colors
Report ZDEMO_EXCEL37:  Added line to create output when using alternate writerclass ( was buggy after my extension of the report ), added code to save .xlsm templates as .xlsm when downloading, added set-get-parameter for better handling
2015-01-05 13:46:41 +01:00
StefanSchmoecker
7fdba5e3a4 issue #346 - Reader not reading outlines correctly:
READER:  Now reads outlines and sorts them into the new way to represent outlines
WRITER:  TYPO - one active line was commented out falsely
2015-01-03 19:16:14 +01:00
StefanSchmoecker
72a336253d issue #346 2nd part, #278
Changes:
ZCL_EXCEL_WORKSHEET:  New attributes to hold row-outline information
ZCL_EXCEL_WORKSHEET_ROWDIMENSI:  Look at those row-outline information.  Modified methods that refer to outlining
ZCL_EXCEL_WRITER_2007:  Respect new outlining informatino by using the modified methods from rowdimensi,  Also corrected an error that occurs if we have leading or trailing empty rows but information stored in rowdimensions
ZDEMO_EXCEL12:  Modified Demoreport 12 to demonstrate new outlining method
2015-01-03 14:50:25 +01:00
StefanSchmoecker
90e805c9bf Issues #346,#154, #195: Problems when there is information in row_dimension but no cell content in that row 2015-01-03 10:27:54 +01:00
StefanSchmoecker
f60604601a #345: Dump on small page margins corrected
#258:  Added dummy default emailaddress to ZDEMO_EXCEL_OUTPUTOPT_INCL
Enhanced Demoreport 37 to pass information about uncaught exceptios when needed
2014-12-31 11:48:08 +01:00
StefanSchmoecker
ae05df3842 issue #344 - Added missing exception-class in method definition 2014-12-31 10:24:09 +01:00
StefanSchmoecker
e5c352c6d5 Fixes for issues: 339,340,343
Allow inheritance to support testing of modified classes w/o having to change the original or to allow customer-specific variations
Changed objects:  
  ZCL_EXCEL_READER_2007: Added try-catch block to allow reading excelsheets with textfields ( ignore textfields - just read the rest )
  ZCL_EXCEL_READER_2007: Added support of reading hyperlinks
  ZCL_EXCEL_WRITER_2007: Corrected method CREATE_XL_SHEET_RELS to not look at internal hyperlinks
  ZCL_EXCEL:  Allow inheritance to test changes on subobjects w/o changing original ( needed for issue 343 for class ZCL_EXCEL_WORKSHEET )
  ZCL_EXCEL_WORKSHEET: Allow inheritance, Changed row-dimensions to hashtable, added tabletype for this, changed method GET_ROW_DIMENSION to use hashtable
  ZCL_EXCEL_WRITER_XLSM: Allow inheritance
  ZDEMO_EXCEL_OUTPUTOPT_INCL:  Changed default to "Display", Allow using any writerclass that inherits from ZCL_EXCEL_WRITER_2007
  ZDEMO_EXCEL37:  Allow passthrough of .xlsm files as well.  Allow using any reader or writerclass that inherits from the ZCL_EXCEL_READER_2007 or ZCL_EXCEL_WRITER_2007
  ZDEMO_EXCEL41:  Test inheritance - demo for inherited ZCL_EXCEL or ZCL_EXCEL_WORKSHEET
2014-12-29 17:20:09 +01:00
Ivan
6282d79d9e Updated version 2014-12-26 12:41:50 -06:00
Ivan
01739b8676 Merge pull request #333 from oliver-huetkoeper/master
Ignore merged cells when calculating column width
2014-12-26 12:26:35 -06:00
Ivan
a44a9f4305 Merge pull request #337 from HannesRempel/master
backwards compatibility
2014-12-26 12:23:20 -06:00
Ivan
5068ded2fc Fix issue #295
Thanks to Marco Remondini
2014-12-26 12:10:54 -06:00
Ivan
2838c93a1a Fix issue #336
Now column buffer uses always lowercase strings
2014-12-26 11:45:28 -06:00
oliver-huetkoeper
3cfb536b02 Add test method for is_cell_in_range 2014-11-14 09:32:08 +01:00
Hannes Rempel
23858bdf03 backwards compatibility 2014-10-29 13:30:48 +01:00
Gh14Cc10
27b3467a8e Fix issue #329 - attribute indexed of bgcolor
Fix issue #329 - Wrong initial value (check) for attribute indexed of
bgcolor. Needed new daily build
2014-10-17 10:44:26 +02:00
Gh14Cc10
bed9584513 Fix issue #326 - Leading Blanks are not shown
Fix issue #326 - Leading Blanks are not shown
Daily build needed from TIR
2014-10-15 12:16:03 +02:00
oliver-huetkoeper
248ed862d4 Add method to check if a cell is within a range 2014-10-02 08:28:47 +02:00
oliver-huetkoeper
21a63fd96e Ignore merged cells when calculating column width
When calculating column width cells that are merged should be ignored. This is MS Excel behavior and should be handled similar in ABAP2XLSX.
2014-10-02 08:10:42 +02:00
oliver-huetkoeper
c31528604e Add method to check if a cell is merged 2014-10-02 08:05:55 +02:00
Ivan
f1e73cd29e Using constant for versioning and moving to version 7.0.1
What's new?
Added versioning management
2014-09-29 22:41:42 -05:00
Gh14Cc10
fc13acd974 Added ABAP2XLSX Version in the Excel properties - missing file
Added ABAP2XLSX Version in the Excel properties - missing file
2014-09-29 18:38:08 +02:00
Gh14Cc10
e50da3a3fa Added ABAP2XLSX Version in the Excel properties - missing file
Added ABAP2XLSX Version in the Excel properties - missing file
2014-09-29 18:31:56 +02:00
Gh14Cc10
6c8c15ab9e Added ABAP2XLSX Version in the Excel properties
Added ABAP2XLSX Version in the Excel properties
2014-09-29 17:30:10 +02:00
Gregor Wolf
ae56d3749b Fix issue #332 strlen used directly in expression should not be used to keep support for AS ABAP < 7.02
Additional fix for #331
2014-09-13 18:35:28 +02:00
Gregor Wolf
8e8dd7145d Fix issue #331 - replace pragma ##NO_HANDLER with "#EC NO_HANDLER 2014-09-11 19:45:48 +02:00
Ivan
03fda13182 Autofilter switch on table object
Addithe possibility to deactivate autofilter on table object.
See DEMO3
2014-08-27 14:24:44 -05:00
Ivan
59fe79ecfe Merge pull request #328 from oliver-huetkoeper/patch-1
Get style id from mapping table (column style)
2014-08-27 13:52:09 -05:00
Ivan
4229e98726 Enhancing DEMO7
Adding ColorScale and DataBar conditional formatting examples
2014-08-27 12:29:46 -05:00
Ivan
9b5cf42123 Fix issue #330
Adding ColorScale Conditional formatting
2014-08-27 11:23:28 -05:00
oliver-huetkoeper
a19bd1d984 Get style id from mapping table (column style)
Global mapping table styles_mapping should be used for column styles as well. It is already used for other styles.
2014-08-20 10:51:55 +02:00
Rüdiger Plantiko
31021ebe95 Update ZCL_EXCEL_READER_2007.slnk
- Switched back to language 'E'
2014-07-05 17:09:06 +02:00
Rüdiger Plantiko
976bedb120 Reader Refact & INCOMPATIBLE remove CAN_READ_FILE
1. Removed interface method ZOF_EXCEL_READER~CAN_READ_FILE
As was suggested in the comments, the method ZIF_EXCEL_READER~CAN_READ_FILE is superfluous, as the exception ZCX_EXCEL in LOAD( ) / LOAD_FILE( ) already gives this information. 

This is an incompatible change! But it's unlikely that this method is used by many clients, as it didn't to anything useful. Also, the demo programs don't use it.

2. Switched the zip archive reader creation from the former "on demand" creation to a one-time creation in the LOAD method. Necessary for the next point:

3. Removed private attribute EXCEL2007 (which kept the input XSTRING): After generation of the zip archive, these data are not necessary any more.

4. Factored out Stefan Schmöcker's "alternate zip" concept into a local subclass: The object "zip" refers to a local class - which is either a proxy to CL_ABAP_ZIP, or creates a zip object of dynamic type and calls its GET method of a class dynamically (the "alternate zip" case).

Depending on the answer of my question 

https://github.com/ivanfemia/abap2xlsx/issues/232#issuecomment-42115340

this abstraction could be removed in a forthcoming commit as soon as it has been clarified that CL_ABAP_ZIP works as expected in all cases.

5. Further cleaning.- Removed some comments like "ToDo: Comment this" if necessary, and also some misleading comments which gave unwanted attention to a certain defect (issue 234) and the circumstances of that defect, thereby obfuscating the far more general nature of the commented code.
2014-05-07 15:19:00 +02:00