Comments (3)
I would love to be able to write bools directly with
sheet.write(row, col, true)
.
I 100% meant to do that but somehow forgot. I've pushed an update to main with support added.
Excel should have some kind of representation for logic, maybe just the text TRUE and FALSE, but potentially some better values or cell types.
It has a boolean TRUE/FALSE
type which can be written with worksheet.write_boolean()
(link) and now write()
.
Thanks for the prompt.
from rust_xlsxwriter.
Example:
use rust_xlsxwriter::{Workbook, XlsxError};
fn main() -> Result<(), XlsxError> {
let mut workbook = Workbook::new();
// Add a worksheet to the workbook.
let worksheet = workbook.add_worksheet();
worksheet.write(0, 0, true)?;
worksheet.write(1, 0, false)?;
workbook.save("worksheet.xlsx")?;
Ok(())
}
Output:
from rust_xlsxwriter.
Perfect, thank you so much!
from rust_xlsxwriter.
Related Issues (20)
- Bug: clone HOT 8
- feature request: rename `rust_xlsxwriter` into `excelwriter` HOT 10
- Bug: issue with serde `skip_serializing_if` HOT 3
- Is it possible to add a custom XlsxError HOT 4
- Bug: `Result<T, E>` serialization not working HOT 1
- Bug: `value_format` annotation not working with `chrono::NaiveDate` HOT 9
- Bug: serialized fields are not skipped correctly
- question: Use formatting without workbook HOT 1
- Is it possible for us to add comments to cells? HOT 3
- feature request: <Prevent cell from overflowing into next (empty) cell> HOT 1
- Feature request: set a cell 's background color HOT 2
- Feature request: utility::validate_sheetname visibility HOT 5
- feature request: <Update polars to version 0.37> HOT 6
- Bug: `IntoExcelData::write_with_format` should have a free lifetime for `format` argument HOT 3
- feature request: Add the ability to return a Workbook by reading an xlsx file HOT 1
- Bug: Line breaks "\n" behaves strangely HOT 3
- question: Is it normal that "23/07/2023" renders "'23/07/2023"? HOT 8
- Bug: header_format and table_default are incompatible HOT 6
- feature request: <Implement the URLs in images feature>
- Bug: Incorrect adjustment of column widths in autofit method with autofilter headers HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust_xlsxwriter.