Currently, if I want to see what the device info settings for an extension like the PDF are, I need to open the documentation - Telerik Reporting Configuring the Output Formats PDF Device Information Settings - Telerik Reporting, then copy the setting that I wish to use in my code.
It would be easier and safer if the device information settings for each format were exposed as a public enum/class. On that note, it would also be easier if the available formats were exposed as well, instead of manually typing them. For example:
public static classTelerikDeviceInfoSetting
{
public static class PDF
{
public const string DOCUMENTTITLE = "DocumentTitle";
public const string DOCUMENTAUTHOR = "DocumentAuthor";
public const string DOCUMENTSUBJECT = "DocumentSubject";
public const string DOCUMENTPRODUCER = "DocumentProducer";
public const string DOCUMENTCREATOR = "DocumentCreator";
}
public static class XLSX
{
public const string USENATIVEPAGEHEADER = "UseNativePageHeader";
public const string USENATIVEPAGEFOOTER = "UseNativePageFooter";
public const string SHOWGRIDLINES = "ShowGridlines";
}
}
public static class TelerikRenderingExtension
{
public const string PDF = "PDF";
public const string XLSX = "XLSX";
}