Export to PDF


#41

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


#42

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


#43

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


#44

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


#45

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


#46

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


#47

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)


#48

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.


#49

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


#50

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


#51

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


#52

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


#53

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


#54

Maybe the previous file was cached by browser.


#55

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.


#56

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);

#57

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.



#58

Anyone else have this issue?


#59

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


#60

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.