Hi,
I try to use something like this:
xlSheet.Shapes.AddPicture(FilePathAndName, 1, 1, 20, 20, 100, 100);
but problem with 2 last parameters, because my pictures have different size.
Which method may i use to export pictures without declare width and height?
(original size)
0
Comments
to put it in function:
xlSheet.Shapes.AddPicture(FilePathAndName, 1, 1, 20, 20, WIDTH, HEIGHT)
Where XlsBuf is Record of (Excel Buffer).
In Excel Buffer I create Function "ExportPicture":
Where XlWrkSht is Excel Automation.
This method requred to determine this parameters (Param6 - WIDTH, Param7 - Height), but my pictures have very different sizes and I need auto-scale
I have a customized report in the series 50000,
the report prints a image in classic.
The export to excel functionality is completed.
How could i get the same image that is printing for classic, in the excel sheet
I have described above, all the necessary code.
In "Excel Buffer" (table) I create Function "ExportPicture" (with 7 parameters):
XlWrkSht.Shapes.AddPicture(FilePathAndName, Param2, Param3, Param4, Param5, Param6, Param7);
In the report I call this function:
XlsBuf.ExportPicture(FilePath, 1, 1, 0, 493, 370, 250);