dotnetcore / dotnetcore/Magicodes.IE

SeparateByRow 与 SeparateBySheet 组合使用,sheet name 不是预期的名称

Open
#383 0 comments 0 reactions 0 assignees View on GitHub
area-excel bug
Dominant language
C#
Stars
2.2k
Forks
495
PR merge metrics
No merged PRs in 30d

Description

### Expected behaviour
SeparateByRow 与 SeparateBySheet 可以组合使用,sheet 名称按预期结果排列
``


for (int i = 0; i < userList.Count; i++)
{
exporter.Append(data1,userList[i].name);

exporter.SeparateByRow();

exporter.AppendHeaders();

exporter.Append(data2);

exporter.SeparateBySheet();

}

exporter.ExportAppendData(path);

``

### Actual behaviour
Tell us what happens instead. Provide a log message if relevant.
![1d174e3653d749bc75ca490ad14e689](https://user-images.githubusercontent.com/13534647/156866614-33b26f26-df55-41a6-9839-00aba8cb095b.png)

### I'm seeing this behaviour on
_Remove this hint: these checkboxes can be checked like this: [x]_

- [x ] Magicodes.IE.Excel
- [ ] Magicodes.IE.Pdf
- [ ] Magicodes.IE.Word
- [ ] Magicodes.IE.Csv
- [ ] Magicodes.IE.Html
- [ ] Magicodes.IE.AspNetCore

#### package versions
Example: Magicodes.IE.Excel 2.2.2, Magicodes.IE.Pdf 1.0

### So how can we reproduce this?
_Remove this hint: Pick one of these - use the Preview feature of this editor to get a sense which option we like best_

#### Awesome :star::star::star::star::star:
Provide a (link to a) minimal demo app showing the faulty behaviour.

#### Sweet :star::star::star::star:
Provide a concise code sample which can upload attachments.

#### Good :star::star::star:
Provide your own app and instructions how to reproduce the issue.

#### Meh :star::star:
Provide a code sample with a bunch of magic parameters which I need to interpolate by guessing to reconstruct the actual runtime code.

#### Worst :poop:
Say the source code can't be disclosed and refuse to provide any of the above. Expect this issue to be closed by a bunch of angry aliens :alien::alien::alien::alien::alien: that will hunt you down and :fire: your :computer:. You've been warned. :fire_engine:

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.