Skip to content

Copying styles from one document to another #372

@Dabraleli

Description

@Dabraleli

Hi everyone. I'm trying to imeplement reports generation from template. The problem I encountered is I try to do the following:

auto cell = wks.cell(j, i);
newWks.cell(j, i).value() = cell.value();
newWks.cell(j, i).setCellFormat(cell.cellFormat());

And I get excel corruption error and no styles at all. Template contains only bold/normal text and cell's borders.

Is there any simple way to just copy styles from one document to another?
Also I don't see a possibility to somehow copy merged cell. Is it intended?

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions