SimpleXMLElement error - exporting Scheduler to PDF

I’ve made sure, attached file is updated :slight_smile:
It includes the follow code:

function colsWidth(width) {
			var r = 0;
			var els = scheduler._els.dhx_cal_header[0].childNodes[0].childNodes;
			for (var i = 0; i < els.length; i++) {
				var w = parseFloat(els[i].style.width);
				if (width > w)
					width -= (w+1),r+=(w+1);
				else
					break;
			}
			return { width: r, cols: i };
		}

which was added.
Please, make sure that you’ve updated exectly the same file which is used in sample.

Hello,

I opened the file and the function is there. I’m sorry, but I still have the same results…

???

I’ve sent you details in a PM.

The pdf export for weekly calendar with step 30 shows the time on the y-axis together without any space between the time (00:0000:30). Please see the attachment. Is there any way to have either space or ‘-’ between the times ex 00:00 - 00.30


Unfortunately this is expected result. Export works only for default scales. If you are using HTML to form a custom scale - it will not be recognized during pdf export.