Hi,

I am developing a windows application in which I have exported data from
dataset to an Excel.  I need to adjust the text to fit within the cells
without using wordwrap.

I have tried the following codes,however it does not work out.

excelSheet.Cells.CurrentRegion.Columns.AutoFit();

excelSheet.Cells.EntireColumn.AutoFit();

Can anyone help me out in accomplish this?

Regards,

karthizen





-- 
Thanks & Regards,
Karthikeyan

Reply via email to