We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

ExcelRW: Formatting borders for a range of cells

Thread ID:

Created:

Updated:

Platform:

Replies:

36983 Nov 14,2005 10:08 AM Nov 15,2005 09:14 AM Windows Forms 2
loading
Tags: XlsIO
Roberto Obispo
Asked On November 14, 2005 10:08 AM

Hi, I''m having some problems formatting a whole range with only the outter borders... I guess I''m missing some very basic concept. Basically, what I''m doing is this, for example: Dim mR As Syncfusion.ExcelRW.IRange mR = sheet.Range(2, 2, 10, 10) mR.Borders.Item(ExcelBordersIndex.EdgeBottom).LineStyle = ExcelLineStyle.Thin mR.Borders.Item(ExcelBordersIndex.EdgeTop).LineStyle = ExcelLineStyle.Thin mR.Borders.Item(ExcelBordersIndex.EdgeLeft).LineStyle = ExcelLineStyle.Thin mR.Borders.Item(ExcelBordersIndex.EdgeRight).LineStyle = ExcelLineStyle.Thin This is setting the borders for every cell in my range, but I only want to set the box-like borders for my whole range, or just the columns borders, etc. What am I missing? Thank you very much Roberto

Administrator [Syncfusion]
Replied On November 15, 2005 01:58 AM

Hi Roberto, I herewith attach a workaround: bordersetting.zip Please take a look and let me know if you have any questions. Thanks for your interest with Syncfusion products. Best Regards, Seetha >Hi, > >I''m having some problems formatting a whole range with only the outter borders... I guess I''m missing some very basic concept. > >Basically, what I''m doing is this, for example: > >Dim mR As Syncfusion.ExcelRW.IRange > >mR = sheet.Range(2, 2, 10, 10) > >mR.Borders.Item(ExcelBordersIndex.EdgeBottom).LineStyle = ExcelLineStyle.Thin >mR.Borders.Item(ExcelBordersIndex.EdgeTop).LineStyle = ExcelLineStyle.Thin >mR.Borders.Item(ExcelBordersIndex.EdgeLeft).LineStyle = ExcelLineStyle.Thin >mR.Borders.Item(ExcelBordersIndex.EdgeRight).LineStyle = ExcelLineStyle.Thin > >This is setting the borders for every cell in my range, but I only want to set the box-like borders for my whole range, or just the columns borders, etc. > >What am I missing? > >Thank you very much > > Roberto

Roberto Obispo
Replied On November 15, 2005 09:14 AM

Thank you very much, that works perfectly. Roberto Obispo

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;