Save an image to the project folder

  1. last week

    I'm setting up a report in BKS where I display a GWS chart, I have this chart in an imagewell, I wanted to save it in a folder that would be the default BKS image lookup folder, so I can include it in the report json

    My question is how to save this image which is in an imagewell in a project folder, and is it a web project?

    I got what I wanted in the following way

    dim p As Picture = gwChart.Image 
    dim f as FolderItem = SpecialFolder.Desktop.Child("TempImage.jpg")'dim f As FolderItem = SpecialFolder.Desktop
    
    p.Save(f, p.SaveAsPNG)
  2. Emile S

    Jan 10 Europe (France, Strasbourg)
    Edited last week

    ImageWell.Image is where you store the Picture, so use it to export it to disk.

  3. I got what I wanted in the following way

    dim p As Picture = gwChart.Image 
    dim f as FolderItem = SpecialFolder.Desktop.Child("TempImage.jpg")'dim f As FolderItem = SpecialFolder.Desktop
    
    p.Save(f, p.SaveAsPNG)

or Sign Up to reply!