OfficeDev / OfficeDev/open-xml-docs

Using sample codes to add a chart to excel make file corrupted

Open
#343 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PowerShell
Stars
110
Forks
73
Avg merge
3d 17h
Merged PRs (30d)
1

Description

I'm using sample code and also my own written codes to add chart (Pie and Bar chart), ruin the excel file, and it throw error during opening.

Image

Im trying to add chart to an excel which is loaded into MemoryStream, and exactly using the sample code.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by obtaining the sample code, the custom chart code, and a minimal workbook or MemoryStream reproduction; none is included in the issue. Reproduce the failure when opening the generated file and compare the Pie and Bar chart cases. Done means identifying whether the sample or its documentation produces a valid, openable workbook and recording the exact correction.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.