Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
brechtsanders committed Mar 19, 2016
1 parent c803bc3 commit bcae592
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
2016-03-18 Brecht Sanders https://github.com/brechtsanders/

* optimized code for writing cell data
* added with parameter to xlsxiowrite_add_column()
* added witdh parameter to xlsxiowrite_add_column()
* added column with detection and xlsxiowrite_set_detection_rows()
* added xlsxiowrite_set_row_height()

0.1.3

Expand Down
2 changes: 1 addition & 1 deletion examples/example_xlsxio_write.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ int main (int argc, char* argv[])
return 1;
}
//set row height
//xlsxiowrite_set_row_height(handle, 1);
//how many rows to buffer to detect column widths
xlsxiowrite_set_detection_rows(handle, 10);
//write column names
Expand All @@ -30,7 +31,6 @@ int main (int argc, char* argv[])
//write data
int i;
for (i = 0; i < 1000; i++) {
xlsxiowrite_set_row_height(handle, i);
xlsxiowrite_add_cell_string(handle, "Test");
xlsxiowrite_add_cell_string(handle, "A b c d e f\nnew line");
xlsxiowrite_add_cell_string(handle, "&% <test> \"'");
Expand Down
2 changes: 1 addition & 1 deletion include/xlsxio_write.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ DLL_EXPORT_XLSXIO int xlsxiowrite_close (xlsxiowriter handle);
*/
DLL_EXPORT_XLSXIO void xlsxiowrite_set_detection_rows (xlsxiowriter handle, size_t rows);

/*! \brief specify the row height to use from this point forward
/*! \brief specify the row height to use for the current and next rows
* \param handle write handle for .xlsx object
* \param height row height (in text lines), zero for unspecified
* Must be called before the first call to any xlsxiowrite_add_ function of the current row
Expand Down
2 changes: 1 addition & 1 deletion lib/xlsxio_write.c
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ void write_cell_data (xlsxiowriter handle, const char* rowattr, const char* pref
void flush_buffer (xlsxiowriter handle)
{
//default to row height of 1 line
fprintf(handle->pipe_write, "<sheetFormatPr defaultRowHeight=\"%.6G\" customHeight=\"1\"/>", (double)12.75);
//fprintf(handle->pipe_write, "<sheetFormatPr defaultRowHeight=\"%.6G\" customHeight=\"1\"/>", (double)12.75);
//write column information
if (handle->columninfo) {
int col = 0;
Expand Down

0 comments on commit bcae592

Please sign in to comment.