Using SizeMode for PictureObject won't compile

Using FastReport.OpenSource 2023.1.0, Visual Studio 2022 17.4.0, c# 11, .net 7.

When trying to set the SizeMode for a picture object, it is reporting "Error CS7069 Reference to type 'PictureBoxSizeMode' claims it is defined in 'FastReport.Compat', but it could not be found"

FastReport.PictureObject picture = new()
{
	Name = @"Picture",
	Bounds = new(0, 0, (FastReport.Utils.Units.Inches * 0.5f), (FastReport.Utils.Units.Inches * 0.5f)),
	ImageFormat = System.Drawing.Imaging.ImageFormat.Jpeg,
	ShowErrorImage = true,
	Border = new() { Color = Color.Black },
	SizeMode = System.Windows.Forms.SizeType.AutoSize,
};

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.