Export to PDF

Hi,
cyrakuse, please, try to update file dhtmlxscheduler_pdf.js from attachment.
Could you provide complete demo or link to your scheduler if still doesn’t work?

roleary, the last version of scheduler export supports timeline view.
Please, make sure that your version is the last:
viewtopic.php?f=6&t=20137

The file attached is a demo of the problem.
dhtmlx_Scheduler.zip (1.01 MB)

Hi,
calendrier.sql is empty, could you provide updated package?

here is the calendrier.sql (not empty :laughing: )
calendrier.zip (346 Bytes)

Hi cyrakuse,
please, update file lib/dhtmlx_scheduler/codebase/ext/dhtmlxscheduler_pdf.js from attachment.
dhtmlxscheduler_pdf.zip (3.37 KB)

I’ve udpated this file but i doesn’t change anything. :frowning:

Hi,
have a look at your sample, it works correctly.
Please, make sure that you’ve updated file, try to celar browser cache.
scheduler_export.zip (1.04 MB)

With the use of scheduler.blockTime in a period, it’s impossible to print in some cases.
In week view, if there is 1 or more days that are blocked, the print button do nothing.

Hi,
could you provide sample? It must produce PDF but without showing blocked areas.

Hi,
please try to update dhtmlxscheduler_pdf.js from attachment one more time.
It should fix a problem.
dhtmlxscheduler_pdf.zip (3.37 KB)

It doesn’t change anything.
The print button do nothing.

Could you provide scheduler with a problem one more time? Previous link works correctly for now.

It work correctly now but i haven’t changed anything :open_mouth:

Maybe the previous file was cached by browser.

cyrakuse or radyno, how do you resolve the following error:

SimpleXMLElement::__construct() [simplexmlelement.–construct]: Entity: line 1: parser error : Start tag expected, ‘<’ not found

Many thanks.

To resolve this problem, you have to edit generate.php.

search this line :

$xml = new SimpleXMLElement($xmlString, LIBXML_NOCDATA);

and add this before :

$xmlString = urldecode($xmlString);

That worked great, thank you.

Furthermore, in the views where the time is on the left menu, I get the following output (see attached). This doesn’t look right.


Anyone else have this issue?

Can you provide some demo link or sample of scheduler init for which some output occurs ?

I have just found that the issue occurs with the following code:

[code]
giTimeScaleStep = 15;
giTimeScaleHeight = 21;
/* Grid timescale */
if (giTimeScaleStep != 30){
giTimeScaleHeight = parseInt(giTimeScaleHeight);
giTimeScaleStep = parseInt(giTimeScaleStep);
var dateformat = scheduler.date.date_to_str("%H:%i");

    scheduler.config.hour_size_px=(60/giTimeScaleStep)*giTimeScaleHeight;
    scheduler.templates.hour_scale = function(date){
   	html="";
    for (var i=0; i<60/giTimeScaleStep; i++){
    	html+="<div style='height:21px;line-height:"+giTimeScaleHeight+"px;' title='"+dateformat(date)+"'>"+dateformat(date)+"</div>";
    	date = scheduler.date.add(date,giTimeScaleStep,"minute");
    }
    return html;

}
[/code]

Any idea how to resolve? I can understand why it is happening, it needs a carriage return between the times.