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.
Syncfusion Feedback

ITextBoxShape - set line to none

Thread ID:

Created:

Updated:

Platform:

Replies:

99521 May 25,2011 05:28 AM May 26,2011 05:06 AM ASP.NET Web Forms (Classic) 3
loading
Tags: XlsIO
Marcus Olsson
Asked On May 25, 2011 05:28 AM

How do I hide the border on ITextBoxShape?

I've tried the following, but nothing happens:

ITextBoxShape tbShape = wb.Worksheets[0].TextBoxes.AddTextBox(3, 2, 480, 576);
tbShape.Line.BackColorIndex = ExcelKnownColors.None;
tbShape.Line.ForeColorIndex = ExcelKnownColors.None;


John Bowlin Bosco K [Syncfusion]
Replied On May 25, 2011 09:10 AM

Hi Marcus,

Thank you very much for your interest in Syncfusion Products.

Essential XlsIO can hide the text box border by using the IShapeLineFormat interface, which is used to modify the border. So, to hide the border of the text box, you can use the below code snippet. Please try this at your end and let us know if this helps you.

[C#]
ITextBoxShape textBox = workbook.Worksheets[0].TextBoxes.AddTextBox(2, 2, 25, 100);
textBox.Line.Visible = false;

To know more about the text box, please navigate to the below link and refer the documentation.
http://help.syncfusion.com/ug_91/Reporting/XlsIO/Windows%20Forms/default.htm?turl=Documents%2Ftextbox.htm

Please let us know if you need any further assistance.

Regards,
Pauline Bosco.


Marcus Olsson
Replied On May 26, 2011 03:08 AM

Actually, setting Visible to false didn't solve my problem.
The border is still there.



John Bowlin Bosco K [Syncfusion]
Replied On May 26, 2011 05:06 AM

Hi Marcus,

Thank you very much for your update.

By setting the visible property, the border of the text box is hidden in the XlsIO generated xls file and it is not hidden in the XlsIO generated xlsx file. We suspect this issue could be a defect and have forwarded to our development team for further analysis. We deeply regret for the inconvenience caused.

Could you please raise the ticket in the Direct Trac Developer Support System with a simplified issue reproducing sample? So that, we can provide you with the patch for this issue, as well as you can take the advantage of the expertise of a dedicated support engineer and a guaranteed response time. We hope you will take advantage of this system as well.

Direct Trac Link:
https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

Please let us know if you need any further assistance.

Regards,
Pauline Bosco


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.

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

;