This on-line demo demonstrates the "Export to PDF" feature of
RadScheduler.
The approach is very straightforward - to export the scheduler content to PDF format
simply use the ExportToPdf() server-side method. You can configure the exporting
settings for the scheduler through the
RadScheduler.ExportSettings section.
Also there is additional sub-category (
PDF) dedicated on various configuration
settings for the exported .pdf document.The available properties are:
- FileName - a string specifying the name (without the extension) of
the file that will be created. The file extension is automatically added based on
the method that is used.
- OpenInNewWindow - open the exported scheduler in a new instead of the same
page
There is additional sub-category (
PDF) for the
ExportSettings dedicated
on various configuration settings for the exported .pdf document. Below is a list
of them:
- AllowAdd - Boolean property which determines whether content adding
is allowed
- AllowCopy - Boolean property which determines whether content copying
is allowed
- AllowModify - Boolean property which determines whether content
modifications are allowed
- AllowPrint - Boolean property which determines whether the PDF
document can be printed
- PageTitle - Sets the title of the page
- PageLeftMargin - Sets the left margin for the pages in the PDF
document
- PageRightMargin - Sets the right margin for the pages in the PDF
document
- PageTopMargin - Sets the top margin for the pages in the PDF document
- PageBottomMargin - Sets the bottom margin for the pages in the
PDF document
- PageHeaderMargin - Sets the header margin for the pages in the
PDF document
- PageFooterMargin - Sets the footer margin for the pages in the
PDF document
- PageHeight - Sets the height of the pages in the PDF document
- PageWidth - Sets the width of the pages in the PDF document
- Author - Sets the name of the author of the PDF document
- Keywords - Sets the keywords for the PDF document
- Subject - Sets the subject of the PDF document
- Title - Sets the title of the PDF document
- PaperSize - Enumeration which specifies the paper font size. The
default value is Letter
- Producer - Specifies the producer of the resulting PDF document
- Creator - Specifies the creator of the resulting PDF document
In
Q3 2013 SP1 the following properties were added to the settings:
- AllowPaging - Boolean property which determines whether the
content should be fit into one page or spread across several pages.
- PaperOrientation - Enumeration which specifies the paper orientation. The
default value is Portrait
- StyleSheets - String which specifies a comma separated list of paths
to external stylesheets which be applied to the exported Scheduler.
PDF Export of all the appointments from a specific period
in a simple table layout can easily be achieved by exporting Agenda View of RadScheduler.
Note that in order for the exported scheduler to be styled correctly you
need to set the Skin property of the RadScheduler.
In the demo the Skin property of the RadScheduler is set from the skin of
the StyleSheetManager.
In Q3 2013 SP1 several new features were added to the Export, including support for
applying External Stylesheets and Paging