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

When we need to generate a Excel file with a logo file the library throws a null pointer #26

Open
pablo-gago opened this issue Aug 29, 2022 · 0 comments

Comments

@pablo-gago
Copy link
Contributor

Describe the bug
As is the same code to generate a pdf and generate an excel file. The PDF file is generated with a logo image. But when the Excel file is generated the library throws an exception (java.io.FileNotFoundException: img\ics.png (The system cannot find the path specified)).

This exception is throwed by SummarySheetTemplate in the method addTitle when try get logo path file.

image

The same code generating pdf is working fine.

To Reproduce
Steps to reproduce the behavior:

  1. In method buildHeaderConfiguration add logo path (.logoPath("img/ics.png")
    image
  2. Execute a test to create a excel file with logopath
  3. Exception java.io.FileNotFoundException: img\ics.png (The system cannot find the path specified)

Expected behavior
Generate a Excel file without issues.

Screenshots

  • PDF
    image

Desktop (please complete the following information):

  • Version 1.8.2

Additional context

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

1 participant