Commit Graph

62 Commits

Author SHA1 Message Date
StefanSchmoecker
0f83a0a758 Issue #377 - support pagebreaks 2015-06-01 14:23:50 +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
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
28e93b7895 fixed issue #362 - Error when reading templates with certain fonts 2015-02-28 15:48:16 +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
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
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
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
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
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
Ivan
c2419f3896 Code Inspector improvements
Change coding issues raised by code inspector.
Still some remain to fix.
2014-03-18 10:34:13 -05:00
alsp80
4310280806 Add extraction of data validations 2014-03-04 22:26:54 +01:00
alsp80
8811d2c755 Add data import of data validations to reader 2014-03-04 16:34:05 +01:00
Ivan
ad22cf7eaf Improved memory usage and readability
Extract the parts for loading the file from application server /
presentation server into two new private methods.
Not only is the code better readable (currently, the very important LOAD
call at the end of the method almost vanishes after all that file
loading code)  - it also saves memory. Currently, when the LOAD message
is processed, not only the EXCEL_DATA xstring, but also BIN_TAB, the
auxiliary table of bytes which is retrieved from GUI_UPLOAD, is kept in
the memory as a redundant copy of the raw data, although during the
parse process it is not needed any more.
2014-02-24 16:04:18 -06:00
Ivan
822f9f75a3 Load file has new importing parameter for sy-batch
In the interface method ZIF_EXCEL_READER~LOAD_FILE, add an optional
import parameter I_FROM_APPLSERVER of type flag with default SY-BATCH,
and use this parameter, instead of SY-BATCH directly, for the decision
whether to load the file from application or from presentation server.
This will make the method more flexible, decoupling the decision "Where
to read the file from" from the circumstance "Am I in batch mode". By
making the parameter optional and using the default value SY-BATCH, all
existing client code will work as before.
2014-02-24 15:31:25 -06:00
Ivan
449e312c87 Suggestion by Rüdiger Plantiko
In methid ZIF_EXCEL_READER~LOAD_FILE, change the import parameter
I_FILENAME from type STRING to the generic type CSEQUENCE, and move it
to a string internally where needed.
This saves the client from having to move a CHAR field to an auxiliary
STRING field, only for not having a "type conflict" when calling the
method.
2014-02-24 15:24:18 -06:00
Ivan
75d100150f Huge file reader by Rüdiger Plantiko
See more details in this blog
http://scn.sap.com/community/abap/blog/2014/01/27/a-way-of-reading-huge-excel-files
2014-02-24 12:11:39 -06:00
Stefan Schmöcker
efedac0571 #284: Added support of reading XLSX-Files where the formulae are not stated explicitly but by reference to another cell holding a reference formula. Thanks to David for supplying the method to shift a formula to another cell.
Enhanced Demoreport 6 to demonstrate how this new method can be used in other circumstances then reading in an EXCEL-sheet


set to test #268:  Changed unit-test to make use of the extended functionality in ZCX_EXCEL

git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@428 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049
2013-08-11 10:43:02 +00:00
Gregor Wolf
c1f6d37498 Issue #194: Replace REGEX to split Column & Row with method from the common class in LOAD_WORKSHEET Method of ZCL_EXCEL_READER_2007.
git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@407 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049
2013-02-25 12:25:39 +00:00
Stefan Schmöcker
9b4aaf829f #235 Extended Readerclass to support templating of repeatable rows/columns, minor fix in zcl_excel_common-method for range-area-breakup
git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@400 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049
2012-12-09 11:06:01 +00:00
Stefan Schmöcker
8a7d689995 issue #235 - Prepared Reader and Writerclass for handling of repeat rows/columns
git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@377 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049
2012-12-02 09:46:47 +00:00
Alessandro Iannacci
c9fff4fa44 #236 Chart creation in a worksheet from ABAP - Temporary version (doesn't work)
git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@372 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049
2012-11-30 17:54:06 +00:00
Stefan Schmöcker
ebc222caeb #230 . Pimp my code: All style-methods in ZCL_EXCEL_READER_2007.slnk have been normalized
git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@366 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049
2012-11-25 22:13:46 +00:00
Stefan Schmöcker
82c6b78f09 issue #234 : We may not ship patched copy of CL_ABAP_ZIP. Removed from trunk and switched coding to dynamic methodcalls.
git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@365 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049
2012-11-18 19:21:01 +00:00
Stefan Schmöcker
3081783b51 #230 . Pimp my code: Some methods in ZCL_EXCEL_READER_2007 have been normalized
set ready to test #234 : Various problems with files created by LibreOffice
set ready to test #186 : Seems to be integrated for some time already
set ready to test #194 : Reading state Hidden, Outlinelevel, Collapsed of rows and columns

git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@364 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049
2012-11-18 14:52:01 +00:00
Stefan Schmöcker
abc25ede86 ready to test #232
issue #230 Pimp my code:  ZCL_EXCEL_READER_2007->LOAD_WORKBOOK

git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@363 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049
2012-11-11 09:36:28 +00:00
Stefan Schmöcker
e710844968 #230 Pimp my Code:
ZCL_EXCEL_READER_2007->ZIF_EXCEL_READER~CAN_READ_FILE
ZCL_EXCEL_READER_2007->ZIF_EXCEL_READER~LOAD
ZCL_EXCEL_READER_2007->FILL_STRUCT_FROM_ATTRIBUTES
ZCL_EXCEL_READER_2007->GET_FROM_ZIP_ARCHIVE
ZCL_EXCEL_READER_2007->GET_IXML_FROM_ZIP_ARCHIVE

git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@361 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049
2012-11-07 23:24:34 +00:00
Stefan Schmöcker
c21a49617b #230 - Pimp my Code - ZCL_EXCEL_READER_2007->ZIF_EXCEL_READER~LOAD_FILE
git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@360 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049
2012-11-05 23:13:19 +00:00
Ivan Femia
fda6f0e3eb Ready to test #163
Added range capability to worksheet

git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@358 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049
2012-11-04 22:22:46 +00:00
Stefan Schmöcker
9f65e6f7f8 set ready to test #229: Set active worksheet in readerclass
git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@357 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049
2012-11-04 20:29:40 +00:00
Stefan Schmöcker
70e0a556db Fix issue #222 - Reader was disfunctional if path .\xl\worksheets\_rels\ isn't existing.
git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@347 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049
2012-10-28 10:26:17 +00:00
Stefan Schmöcker
6e902d884b #179 - Add coloring of worksheet tabs ready for testing. Reader & Writer updated
git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@345 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049
2012-10-23 22:23:45 +00:00
Stefan Schmöcker
596b0cd041 #217 - replacing coding not allowed on 7.00 systems
git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@343 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049
2012-10-21 22:20:50 +00:00
Ivan Femia
2d1d7d3bef Ready to test #193 #194 #207
Thanks to Vladimir Scheglov

git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@340 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049
2012-10-14 13:57:34 +00:00
Ivan Femia
3cac5e5501 Ready to test #208
git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@338 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049
2012-10-14 13:19:57 +00:00
Stefan Schmöcker
57dc5ef6dd Ready to test bugfixes for issues #180 and #212
git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@336 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049
2012-10-02 23:18:19 +00:00
Rene Turnheim
cd1f087bd8 Fixed #206 issue; Minor issues resolved because of method calls direct on return values. This is not supported in 7.00.
git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@333 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049
2012-08-29 01:09:48 +00:00
Ivan Femia
485a7e8655 Ready to test #204 #187 #188
git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@328 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049
2012-08-26 16:28:49 +00:00
Ivan Femia
161134a92d Ready to test #195
git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@322 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049
2012-07-16 20:51:35 +00:00
Ivan Femia
e6bf4339a1 Ready to test #163
Ready to test #164

git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@299 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049
2012-04-25 10:08:20 +00:00
Ivan Femia
d98d0f79d1 Fixed #122
Move to protected in order to align to WRITER and allows specific readers.

BTW it is not needed a new class in this case because reader 2007 should work either with Excel 2010.
Maybe it is useful an enhancement to current reader.



git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@271 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049
2012-03-19 22:10:58 +00:00
Gregor Wolf
42a8c8a5b6 ready to test #127 - enhanced ZDEMO_EXCEL15 to test new functionality, thanks to Shahrin Shahrulzaman for this contribution.
git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@245 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049
2012-01-03 17:43:06 +00:00
Ivan Femia
b536dbdfd1 Fix issue #168 by Alexander Budeyev
git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@234 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049
2011-12-26 11:47:38 +00:00
Gregor Wolf
e239953895 Implemented Fix by Shahrin Shahrulzaman to add support for named rages for the Excel 2007 Reader #126
git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@230 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049
2011-12-15 21:32:29 +00:00