<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="02/20/2026 19:27:10" ReportInfo.Modified="06/06/2026 23:50:49" ReportInfo.CreatorVersion="1.0.5.0">
  <ScriptText>using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Windows.Forms;
using System.Drawing;
using System.Data;
using System.IO;
using FastReport;
using FastReport.Data;
using FastReport.Dialog;
using FastReport.Barcode;
using FastReport.Table;
using FastReport.Utils;

namespace FastReport
{
  public class ReportScript
  {
		private void SetImageFrom64(string text64)
		{
			Image image;
			
			if (text64 == &quot;&quot;)
			{
				Picture1.Image = null;
				return;
			}
				
			byte[] bytes = Convert.FromBase64String(text64);
			  			
	    using (MemoryStream ms = new MemoryStream(bytes))
	    {
	        image = Image.FromStream(ms);
	    }
			
			Picture1.Image = image;
		}
  
    private void Data1_AfterData(object sender, EventArgs e)
    {
			string base64 =(string) Report.GetColumnValue(&quot;JSON.item.image&quot;);
      SetImageFrom64(base64);
    }
	}
}
</ScriptText>
  <Dictionary>
    <JsonDataSourceConnection Name="main" ConnectionString="[encoded data, 4999 characters]">
      <JsonTableDataSource Name="JSON" DataType="FastReport.Utils.Json.JsonArray" Enabled="true" TableName="JSON">
        <Column Name="index" DataType="System.Int32"/>
        <Column Name="item" DataType="FastReport.JsonBase">
          <Column Name="name" DataType="System.String"/>
          <Column Name="color" DataType="System.String"/>
          <Column Name="price" DataType="System.String"/>
          <Column Name="image" DataType="System.String"/>
        </Column>
        <Column Name="array" DataType="FastReport.JsonBase"/>
      </JsonTableDataSource>
    </JsonDataSourceConnection>
  </Dictionary>
  <ReportPage Name="Page1" PaperHeight="150" TopMargin="2.4999998" Watermark.Font="Arial, 60pt" LastPageSource="256" FirstPageSource="256" Duplex="Default">
    <ReportTitleBand Name="ReportTitle1" Width="718.2" Height="25.64">
      <TextObject Name="Text8" Width="265" Height="25" Text="Grocery Report" Font="Arial, 15pt, style=Bold" TextFill.Color="0, 65, 254"/>
    </ReportTitleBand>
    <PageHeaderBand Name="PageHeader1" Top="41.8" Width="718.2" Height="21.41">
      <TextObject Name="Text4" Top="1.22" Width="95" Height="17" Text="Name" Font="Arial, 9pt, style=Bold"/>
      <TextObject Name="Text5" Left="128.5" Top="1.22" Width="95" Height="17" Text="Color" Font="Arial, 9pt, style=Bold"/>
      <TextObject Name="Text6" Left="238.11" Top="1.22" Width="95" Height="17" Text="Price" Font="Arial, 9pt, style=Bold"/>
      <TextObject Name="Text7" Left="351.5" Top="1.22" Width="95" Height="17" Text="Image" Font="Arial, 9pt, style=Bold"/>
    </PageHeaderBand>
    <DataBand Name="Data1" Top="74.15" Width="718.2" Height="30" AfterDataEvent="Data1_AfterData" DataSource="JSON">
      <TextObject Name="Text1" Top="7.56" Width="101" Height="21" Text="[JSON.item.name]" Font="Arial, 9pt"/>
      <TextObject Name="Text2" Left="127.92" Top="8.53" Width="100" Height="20" Text="[JSON.item.color]" Font="Arial, 9pt"/>
      <TextObject Name="Text3" Left="239" Top="8.53" Width="100" Height="20" Text="[JSON.item.price]" Font="Arial, 9pt"/>
      <PictureObject Name="Picture1" Left="359.12" Top="7.56" Width="22.61" Height="22.44" SizeMode="Normal"/>
    </DataBand>
    <PageFooterBand Name="PageFooter1" Top="153.75" Width="718.2" Height="29.93">
      <TextObject Name="Text9" Left="468.66" Top="7.56" Width="241.73" Height="15" Text="Example of using C# for data manipulation" Font="Arial, 9pt"/>
    </PageFooterBand>
  </ReportPage>
</Report>
