I need to get the image from a specific sheet range (B2:D24, for example)
I have the code:
- Code: Select all
Dim ofd As New OpenFileDialog
Dim workbook As New Workbook()
Dim sheet As Worksheet
Dim sImg As String = GetAppPath() & "\imgActual.jpg"
ofd.ShowDialog()
workbook.LoadFromFile(ofd.FileName)
sheet = workbook.Worksheets(0)
sheet.SaveToImage(sImg)
PB.Load(sImg)
But I don't get the image I need.
Is that possible?
Many Thanks!