diff --git a/DWSIM/Controls/TwoDimChartControl.vb b/DWSIM/Controls/TwoDimChartControl.vb index deec70e50..44953b638 100644 --- a/DWSIM/Controls/TwoDimChartControl.vb +++ b/DWSIM/Controls/TwoDimChartControl.vb @@ -7,6 +7,7 @@ Imports DWSIM.CrossPlatform.UI.Controls.ReoGrid Imports OxyPlot Imports OxyPlot.Series Imports System.Linq +Imports System.IO Public Class TwoDimChartControl @@ -159,7 +160,7 @@ Public Class TwoDimChartControl Dim sheet = Spreadsheet.GetWorksheetByName(item.Split("!")(0)) If Not sheet Is Nothing Then #If LINUX Then - Dim data As Object(,) = sheet.GetRangeData(New RangePosition(item.Split("!")(1))) + Dim data As Object(,) = sheet.GetRangeData(New RangePosition(item.Split("!")(1))) #Else Dim data As Object(,) = sheet.GetRangeData(New unvell.ReoGrid.RangePosition(item.Split("!")(1))) #End If @@ -415,7 +416,7 @@ Public Class TwoDimChartControl New List(Of FilePickerAllowedType) From {New FilePickerAllowedType(extension + " File", "*." + extension)}) If handler IsNot Nothing Then - Using stream As New IO.MemoryStream() + Using stream As New MemoryStream() If extension = "PNG" Then Dim exporter = New OxyPlot.WindowsForms.PngExporter() With {.Background = OxyPlot.OxyColors.White, .Width = PlotView1.Width, .Height = PlotView1.Height} exporter.Export(Chart.PlotModel, stream) diff --git a/DWSIM/DWSIM.vbproj b/DWSIM/DWSIM.vbproj index d5f7580e8..2a37f7744 100644 --- a/DWSIM/DWSIM.vbproj +++ b/DWSIM/DWSIM.vbproj @@ -547,9 +547,7 @@ TwoDimChartControl.vb - - UserControl - + ListItem.vb