Comments (3)
A workaround on this is getting all the column widths + row heights in 2 lists
and then when i copy the sheet i set the widths from the list i have. It works quite well for now.
Also another thing i notice, when i have a formula which divides by 0 or empty cell(i get warning on ms excel) the formula is not saved when i saveAs()
the file.
Why is that?
from qtxlsxwriter.
Hi, Thanks for your feedback.
For the first issue, the source code can be found in https://github.com/dbzhang800/QtXlsxWriter/blob/master/src/xlsx/xlsxworksheet.cpp#L191 . As you can see, we only copy cells and merges information at present.
For the second issue, sorry, I'm not catch up with you. Maybe you can give a small example.
from qtxlsxwriter.
Hey, thanks for your reply.
I see, well i guess i can just use the method i describe above and it's all fine.
On the second part; I have an template excel file which has some formating etc. i need but it's empty from data, i just save it under a different file name and on that file i start filling it with sheets and data from my application(the template has cell colors, and formating etc so i need to copy it without losing it).
The template file has some formulas but because all the cells are empty i get error from a specific formula on excel that i divide by 0, no problem, but that specific only formula is not saved when i save my template with the SaveAs()
function, but all others, some additions and multiplications are saved just fine. It's not really a big issue for me, i store all the formulas in lists and then i write them on the new file again on top, i'm just asking out of curiosity :)
To make it more simple:
create 2 formulas on two cells, one that divides by a value of a cell, but make that cell empty so it's division by 0(notice excel displays the warning "DIV/0) and one with adding 2 cell values. Then open it with qxlsx and saveAs with another file name and see that only the addition formula will be saved not the division. Weird..
from qtxlsxwriter.
Related Issues (20)
- How to write data in batches HOT 1
- 如何设置纸张方向的横向和纵向? HOT 1
- how to use CellRange with import and export together
- Save to pdf
- examples Chart::CT_Line
- How to setup Qtxlsxwriter
- Very good
- Building QtXlsxWriter with Qt using android kit HOT 1
- How to delete row or column
- Ask for a new release (0.3.1) with the LICENSE file HOT 4
- Unable to determine byte order HOT 2
- mingw32-make error HOT 1
- Save with protection On and password
- How put the color in chart with Xlsx
- Build in mingw32
- 这个库有一些bug
- why Workbook::copySheet always returns false ?
- 使用库后,VS报已在****.exe 中执行断点指令(__debugbreak()语句或类似调用)。
- 如何冻结sheet的前几行?
- Error when delete sheet
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 qtxlsxwriter.