I've looked at tutorial 14 in http://www.teechart.net/docs/TeeChartNETTutorials.htm but the command "tChart1.Printer.Print();" is not found in visual studio 2019 version 16.1.3. I want to call Xamarin.Essentials.Share and offer the user to email, text, etc. but I'm not able to find any way to print or export.
What i've tried for export (using tutorial 12 as a guide):
Code: Select all
string fileName = Path.Combine(FileSystem.CacheDirectory, FileName);
//ImageExportFormat exporter = new ImageExportFormat(Chart1.Chart); exporter.FileExtension = ".jpg";
//exporter.Save(streamer, new Image(), Chart1.ChartBounds.Width, Chart1.ChartBounds.Height);
//Steema.TeeChart.Export.DataExport exporter = new DataExport(Chart1);
//Steema.TeeChart.Export.DataExportFormat exportFormat = new ExcelFormat(Chart1);
//Steema.TeeChart.Export.PNGFormat png = new PNGFormat(Chart1);
Steema.TeeChart.Export.ImageExport imageExporter = new ImageExport(Chart1) { PNG = { FileExtension = "png", Height = Chart1.ChartBounds.Height, Width = Chart1.ChartBounds.Width} };
imageExporter.PNG.Save(fileName);