Активные отчеты МЕТОД НЕ НАЙДЕН: GrapeCity.ActiveReports.Document.Drawing.ImageC#

Место общения программистов C#
Anonymous
Активные отчеты МЕТОД НЕ НАЙДЕН: GrapeCity.ActiveReports.Document.Drawing.Image

Сообщение Anonymous »

У меня возникла проблема при использовании

Код: Выделить всё

GrapeCity.ActiveReports.SectionReportModel.Picture() объект. Пишет, что метод не найден.
//Create Dynamic pictureBox for Sketch
var pictureModel = new GrapeCity.ActiveReports.SectionReportModel.Picture()
{
Height = ConvertPixelToInch(img.Height),
Width = ConvertPixelToInch(img.Width),
Image = img,
Location = new PointF(Math.Abs(3.75f - ConvertPixelToInch(img.Width) / 2), 0.12f), // Align in the Center
SizeMode = GrapeCity.ActiveReports.SectionReportModel.SizeModes.Zoom
};
Выдает ошибку:

Код: Выделить всё

System.MissingMethodException: 'Method not found: 'GrapeCity.ActiveReports.Document.Drawing.Image GrapeCity.ActiveReports.Document.Drawing.Image.op_Implicit(System.Drawing.Image)'.'
В чем может быть проблема?
Я пытаюсь создать объект изображения, а затем добавить его в свой отчет.

Подробнее здесь: https://stackoverflow.com/questions/791 ... wing-image

Вернуться в «C#»