summaryrefslogtreecommitdiffhomepage
path: root/examples
AgeCommit message (Collapse)Author
2019-12-20Add option to protect against formula injection attacks (#34)Gabriel Morcote
Caxlsx used to treat cell values beginning with an equal sign as formula by default. This can be dangerous if the input data is user generated or coming from other untrusted sources (see https://www.owasp.org/index.php/CSV_Injection for details). This commit adds a new option `escape_formulas` that can be used with `#add_row` and on instances of `Cell`. If set to true, cell values beginning with an equal sign are treated as normal strings (and will be displayed literally by Excel and co.)
2018-02-22chore(examples): include examples for customized locking and single print ↵randym
area specification with defined names
2018-02-15chore(examples): do more crazy in the data_validation examplerandym
2018-02-15chore(examples): update data validation example to show raw list validationrandym
2015-07-04Merge branch 'example' of https://github.com/shifakhan/axlsx into ↵Jonathan Tron
shifakhan-example
2015-07-04Add test, fix example with tab color generation and fix a but due to a typoJonathan Tron
2015-07-04Merge branch 'worksheet_tab_colour' of https://github.com/shifakhan/axlsx ↵Jonathan Tron
into shifakhan-worksheet_tab_colour
2015-07-03Remove lowercase extension testmarc
It is no longer needed because now detection is though mime type
2015-07-03Validates whether an image is acceptable through mime typemarc
image/jpeg, image/png & image/gif are considered the allowed mime types for an image. mimemagic gem is added as dependency in order to do the checking. Added tests to check against three supported mime types. A fake jpg fixture (created with 'touch' command) has been added to test that extension is no longer used.
2015-05-23Option to change tab colorshifakhan
2015-05-04Added example of conditional formatting to match text in cellsshifakhan
2015-03-14Merge pull request #367 from axelson/patch-1Jurriaan Pruis
Add usage information to row_column_style example
2014-12-23Add usage information to row_column_style exampleJason Axelson
2014-10-15Added an example of row heightRishi
An example for changing the row height was missing. I thought it would make sense to have this in example as well. I needed the option and I have to look at the code to how to do it. I think it would help others.
2014-08-01Add example and test for auto filters on multiple worksheet (refs #338)Jonathan Tron
2014-03-06Fix conditional_formatting example filegeruhl
- change profitable hex color code to a legal 6 digit # (428751 = green) - "wb" and "sheet" are not created in this example, change to "book" and "ws"
2014-03-01Implemented RichText (multiple text runs)Jurriaan Pruis
and added multiline autowidth for both RichText and normal strings
2013-09-30Fix image anchor swapping and update readme.Randy Morgan
2013-09-30add name attribute to cell to create defined names for a single cell. ↵Randy Morgan
https://github.com/randym/axlsx/issues/241
2013-09-29Adds examples for hiding sheets and workbook viewRandy Morgan
These examples show using hidden and very hidden to manage worksheet visibility as well as using the active_tab attribute of a workbook#view in order to specify which tab should be showing when the sheet is opened.
2013-09-27Fix example.rbpatorash
2013-09-27smooth line for line chartpatorash
2013-09-26extended examples and smooth lines for line chartRandy Morgan
2013-09-13Fixes for anchor swapping when adding images. - Two -> One swap still pending.Randy Morgan
2013-09-13Page Breaks - round oneRandy Morgan
This sets up the basic col and row break creation and serialization. You can specify either a string reference like "C7" or provide an Axlsx::Cell instance to specify the break point. Serialization is working cleanly but excel does not automatically render those breaks yet. You need to switch to page preview mode.
2013-08-17add uppercase file for image file checking testsRandy Morgan
2013-07-12WIP single/dual anchors for imagesRandy Morgan
2013-06-23added sparse array transposition with blocks for rows/cols switching and ↵Randy Morgan
some docs updates for release prep
2013-04-28Show whitespace preservation in basic worksheet example.Randy Morgan
2013-04-28Updated mbcs example to use Arial Unicode MSRandy Morgan
This font may not be avilalbe in all renderes.
2013-04-28Refactored and renamed space preservationRandy Morgan
preserve_spaces has been moved to the workbook and renamed xml_space as that provides a good reference for people trying to figure out what it does, and let's the author specify space preservation for serializations using the shared strings table as well as the default inline serialization in cells.
2013-04-18Added colors to examples for chartsRandy Morgan
Colors are required by OpenOffice, and LibreOffice, and syntactically correct regardless so we should be putting them in.
2013-04-04Added support for specifying between/notBetween formula in an array.Noel Peden
2013-03-17Fixed LineChart and refactored chart axes managementRandy Morgan
2013-03-16First run at 'hidden' comments WIPRandy Morgan
The xml is genrated correcty, but the comment still shows until it is selected once in the excel ui - so I must be missing something.
2013-02-04Completed missing docs and pre-release prepRandy Morgan
2013-01-10update outline_level_rows and outline_level_columns example.Randy Morgan
2012-12-15Added methods to simplify outlining with specsRandy Morgan
worksheet#outline_rows worksheet#outline_columns
2012-12-14Added formula_values options and specs for sheet format pr.Randy Morgan
This lets cache formula values and specify the default row height so that iOS and Max OSX previews render properly
2012-12-04Created ios preview exampleRandy Morgan
This shows that shared_strings are required. Formula parsing is still outstanding. https://github.com/randym/axlsx/issues/149
2012-11-28Added example of overriding data typesRandy Morgan
2012-11-27Merge pull request #148 from alexrothenberg/pivot_tableRandy Morgan (@morgan_randy)
Create a simple Pivot Table
2012-11-27Merge pull request #147 from raiis/masterRandy Morgan (@morgan_randy)
Different left/right border style
2012-11-28Better way hot to override borders style.raiis
2012-11-27Can configure a pivot table when creating itAlex Rothenberg
see examples/pivot_table.rb wb.add_worksheet(:name => "Data Sheet") do |sheet| sheet.add_row ['Month', 'Year', 'Type', 'Sales', 'Region'] 30.times { sheet.add_row [month, year, type, sales, region] } sheet.add_pivot_table 'G4:L17', "A1:E31" do |pivot_table| pivot_table.rows = ['Month', 'Year'] pivot_table.columns = ['Type'] pivot_table.data = ['Sales'] pivot_table.pages = ['Region'] end end
2012-11-27Create a simple Pivot TableAlex Rothenberg
* an example can be run with `ruby examples/pivot_table.rb` * right now you cannot set options on the pivot table to make it useful (coming soon...)
2012-11-26Added individual border override options.raiis
2012-11-25moved sheet view example into examples.rbRandy Morgan
2012-11-25Cleaned up examples directoryRandy Morgan
2012-11-25Cleaned up gemspec and removed pdf export exampleRandy Morgan