Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

excel转图片的时候,由公式生成的表格数据没有转成功 #50

Open
piweeping opened this issue Oct 14, 2020 · 1 comment

Comments

@piweeping
Copy link

ImageOrPrintOptions imageOrPrintOptions = new ImageOrPrintOptions();
SheetRender sheetRender = new SheetRender(worksheet, imageOrPrintOptions);
sheetRender.toImage(0, “picPath“);

有什么方法,在excel转图片的时候,含有公式的表格数据也可以成功转到图片中?

@amjad-sahi
Copy link
Collaborator

amjad-sahi commented Oct 14, 2020

@piweeping,

如果适用于您的需要,请先调用Workbook.calculateFormula()方法,然后再通过SheetRender API将其实例化并呈现为图像格式。

如果仍然发现问题,请提供您的模板Excel文件(您可以通过某些文件共享服务(例如Dropbox,Google驱动器等)共享文件),我们将尽快对其进行检查。

此外,我们会更积极地在Aspsoe.Cells forum中处理客户的查询和问题,因此您可以在此处发布您的问题/查询。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants