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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ExcelRW: Formatting borders for a range of cells

Thread ID:

Created:

Updated:

Platform:

Replies:

36983 Nov 14,2005 03:08 PM UTC Nov 15,2005 02:14 PM UTC WinForms 2
loading
Tags: XlsIO
Roberto Obispo
Asked On November 14, 2005 03:08 PM UTC

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 06:58 AM UTC

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 02:14 PM UTC

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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon

;