I am using Aspose.Cells (version: 22.6.1 ) in C#, to Convert from Excel to a Tiff file. but the conversion is not using the whole width available.as you can see the image this is what I have in the CODE:
if you can help me to fit the Excel into the TIFF image all to the right site.
worksheet.PageSetup.TopMargin = 0;
worksheet.PageSetup.BottomMargin = 0;
worksheet.PageSetup.LeftMargin = 0;
worksheet.PageSetup.RightMargin = 0;
Aspose.Cells.Rendering.ImageOrPrintOptions options = new Aspose.Cells.Rendering.ImageOrPrintOptions();
options.IsCellAutoFit = false;
options.HorizontalResolution = 300;
options.VerticalResolution = 300;
options.OnePagePerSheet = false;
options.PrintingPage = default;
options.TiffCompression = ccitt4;
Aspose.Cells.PageSetup pageSetup = worksheet.PageSetup;
pageSetup.PrintGridlines = false;
pageSetup.Order = downthenover;
pageSetup.RightMargin = 0;
pageSetup.FitToPagesWide = 1;
AsposeCells.PNG (7.5 KB)