search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Problems exporting schedule as image

Asked by Pete
4 months ago.

Version: DayPilotPro-2018.1.3644

Whenever I try to export the schedule as a image, it comes up with an error. Originally thought it might be because of the size of the schedule, but does exactly the same thing on a tiny one. Screenshots show what I am trying to export and the error that appears.

Thanks

Comment posted by Dan Letecky [DayPilot]
4 months ago.

Pete,

Did you make any changes to the project? This error indicates that the image used for the tree node icon is not in a supported format (Image.FromStream() supports BMP, GIF, JPEG, PNG, and TIFF).

Comment posted by Pete
4 months ago.

I was, but I have changed it over to the "vanilla" version of the same version number and it does the same thing.

Comment posted by Dan Letecky [DayPilot]
4 months ago.

Did you try the original signed DLL or a project recompiled from the original sources?

The stack trace points to a method that loads embedded resources from the dll (the icon image). I'm not able to reproduce the issue using the original DLL. Are you able to reproduce the problem in the demo?

https://aspnet.daypilot.org/demo/Scheduler/ImageExport.aspx

Comment posted by Pete
4 months ago.

I am using the original project within my solution and using that compiled project. I have not modified that project at all.

Answer posted by Dan Letecky [DayPilot]
4 months ago.

It looks like the image files might got corrupted during the build process. You can download the correct images files here:

https://aspnet.daypilot.org/files/temp/ResourcesImages.zip

The archive contains three files:

  • TreeImageCollapse.png
  • TreeImageExpand.png
  • TreeImageNoChildren.png

You'll need to copy them to Resources/Images directory of the project (overwrite the existing files).

The next official build will include the correct files.

Comment posted by Pete
4 months ago.

Brilliant ... all works now. Thanks

Comment posted by Dan Letecky [DayPilot]
4 months ago.

Great, thanks for the update!

New Reply
This reply is
Your name (optional):