java - Image Export DayPilot Scheduler -
i trying export daypilot scheduler, using code
daypilotscheduler1.datasource = dbgetevents(daypilotscheduler1.startdate, daypilotscheduler1.days);//opens 2 rows daypilotscheduler1.databind(); daypilotscheduler1.cssonly = false; response.clear(); response.contenttype = "image/png"; response.addheader("content-disposition", "attachment;filename=print.png"); daypilotscheduler1.databind(); memorystream img = daypilotscheduler1.export(imageformat.png); img.writeto(response.outputstream); daypilotscheduler1.cssonly = true; response.end();
and dates in exported file dont cover period daypilotscheduler1.startdate
daypilotscheduler1.enddate, dates see on screen, printscreen. can
cause problem?
do this:
daypilotscheduler1.width = unit.percentage(100);
Comments
Post a Comment