DownloadAsBITMAP() public method

Exports lectures to bitmap format.
public DownloadAsBITMAP ( List lectures, string title, System.DateTime created, string linkToInfo, string path, string format ) : System.Web.Mvc.FileResult
lectures List List of lectures.
title string Title displayed at top-left corner of the image.
created System.DateTime Date the timetable was created from config.
linkToInfo string Hyperlink to webpage with additional information.
path string Path to folder where temp files will be created and where Inkspace folder is.
format string Bitmap format to export ie. png jpg pdf
return System.Web.Mvc.FileResult
Exemplo n.º 1
0
        public ActionResult ExportToPNG()
        {
            ImportExport instance = new ImportExport();

            return instance.DownloadAsBITMAP(M.CustomTimetableFields, M.SelectedTimetable.m_timetableInfo.TimetableLabel, M.SelectedTimetable.m_timetableInfo.Created,
                M.SelectedTimetable.m_timetableInfo.LinkToAdditionalInformation, Server.MapPath("~/App_Data/"), "png");
        }