Anyone have code to set margins(top,left,right,bottom) using excel interop and vb.net. I think it must be part of the worksheet object but maybe the workbook object. Having a tough time finding an example. Thanks in advance.
Anyone have code to set margins(top,left,right,bottom) using excel interop and vb.net. I think it
Share
I found it its part of the worksheet object…
i.e.
xlWorkSheet.PageSetup.TopMargin=0.5