JRExporterParameter устарел в последних версиях, это не устаревшее решение @stevemac answer
JRPdfExporter exporter = new JRPdfExporter(); exporter.setExporterInput(new SimpleExporterInput(jasperPrint)); exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(outputStream)); SimplePdfExporterConfiguration configuration = new SimplePdfExporterConfiguration(); configuration.setMetadataAuthor("Petter"); //why not set some config as we like exporter.setConfiguration(configuration); exporter.exportReport();
Вы можете попробовать следующее:
foreach (SqlDbType type in Enum.GetValues(typeof(SqlDbType)))
{
..code
}
public readonly List<SqlDbType> Types = new List<SqlDbType>(Enum.GetValues(typeof(SqlDbType)));
– David Walser 13 July 2018 в 07:03Enum.GetValues(typeof(SqlDbType)).Cast<SqlDbType>().ToList()
– vasily.sib 13 July 2018 в 07:06.Cast<Type>()
: D – David Walser 13 July 2018 в 07:07