We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How To Remove Extra Space coming Inside the Image after converting Excel to image

Hi Support ,
I am using the Aspose.Cell and The Aspose.Words.
I have create a Workbook dynamically in first step and save it to the disk.
than i am Converting the first worksheet from that workbook into the image and then Inserting that image into the word document the problem , comes here after the insertion of the image ,with the selected column and rows there is comes some extra space.
i am sharing the sample doc here with these post please review it and give me the suggestion…

Hi,

Thanks for your posting and using Aspose.Cells.

Please set the worksheet margins to 0 before getting the worksheet image.

C#

//Set all margins as 0
worksheet.PageSetup.LeftMargin = 0;
worksheet.PageSetup.RightMargin = 0;
worksheet.PageSetup.TopMargin = 0;
worksheet.PageSetup.BottomMargin = 0;

Please see the following documentation article, it exports range of cells to image and it sets the margins to 0 and there is no white space appears around the image.