Skip to content

Commit

Permalink
Mail Merge
Browse files Browse the repository at this point in the history
  • Loading branch information
KonduruKeerthi committed Jul 24, 2024
1 parent 4650826 commit b505837
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>Generate_Barcode_labels</RootNamespace>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
using Syncfusion.Pdf.Graphics;
using System;
using System.Data;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;

namespace Generate_Barcode_labels
Expand Down Expand Up @@ -58,11 +56,8 @@ private static Stream GenerateBarcodeImage(string barcodeText)
barcode.BarHeight = 45;
barcode.Text = barcodeText;
//Convert the barcode to image
Image barcodeImage = barcode.ToImage(new System.Drawing.SizeF(145, 45));
//Converts image to stream
MemoryStream stream = new MemoryStream();
barcodeImage.Save(stream, ImageFormat.Png);
return stream;
Stream imageStream = barcode.ToImage(new Syncfusion.Drawing.SizeF(145, 45));
return imageStream;
}

/// <summary>
Expand Down

0 comments on commit b505837

Please sign in to comment.