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

Events background color in exported PNG image

Asked by GC
8 years ago.

Hi,

when I download or export a PNG/SVG image from Daypilot Scheduler Javascript, events background color is always white.
Is it a bug? I noted that also in the Demo (http://javascript.daypilot.org/demo/scheduler/exportpng.html)

Best regards

Comment posted by Anonymous
8 years ago.

this is how i do it. hope that helps..

go to DayPilotScheduler1_BeforeEventRender

If (DayPilotScheduler1.IsExport) Then

e.BackgroundColor = "black"
e.FontColor = "black"

Comment posted by Anonymous
8 years ago.

im not sure if you can call this method from javascript

Comment posted by GC
8 years ago.

Thanks for your reply but I cannot call such method.
Furthermore the main problem is that my scheduler is very colorful and the colors represent different type of events.
Do you have any other suggestion please?

Thanks in advance
Best regards

Answer posted by Dan Letecky [DayPilot]
8 years ago.

This was a bug which is now fixed (since build 2100):
http://javascript.daypilot.org/daypilot-pro-for-javascript-8-2-sp4/

Let me know if the issue persists.

Comment posted by GC
8 years ago.

Hi Dan,

Thanks for your reply but I still have problem..in the downloaded image, the event backgrounds are white.
In onBeforeEventRender I use cssClass in order to set event colors: could this be the problem?

Let me know if you need further informations

Best regards

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.