Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7556653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:54:53+00:00 2026-05-30T11:54:53+00:00

PHPExcel border styles are defined as constants in PHPExcel_Style_Border class. The solid ones are

  • 0

PHPExcel border styles are defined as constants in PHPExcel_Style_Border class. The solid ones are BORDER_THIN, BORDER_MEDIUM and BORDER_THICK. However, the medium and thick ones are way too thick for my needs. Is there a way to manually set the border thickness?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T11:54:55+00:00Added an answer on May 30, 2026 at 11:54 am

    PHPExcel border styles are defined to mimic those available in MS Excel itself
    The ECMA OfficeOpenXML specification (3rd Edition) defines available border styles in the ST_BorderStyle section of the document (section 18.18.3, pages 2671-2673) and defined in the xsd as:

    <xsd:simpleType name="ST_BorderStyle">
        <xsd:restriction base="xsd:string">
        <xsd:enumeration value="none"/>
        <xsd:enumeration value="thin"/>
        <xsd:enumeration value="medium"/>
        <xsd:enumeration value="dashed"/>
        <xsd:enumeration value="dotted"/>
        <xsd:enumeration value="thick"/>
        <xsd:enumeration value="double"/>
        <xsd:enumeration value="hair"/>
        <xsd:enumeration value="mediumDashed"/>
        <xsd:enumeration value="dashDot"/>
        <xsd:enumeration value="mediumDashDot"/>
        <xsd:enumeration value="dashDotDot"/>
        <xsd:enumeration value="mediumDashDotDot"/>
        <xsd:enumeration value="slantDashDot"/>
    </xsd:restriction>
    

    This follows the list of border styles defined for the BIFF file format, and I can’t find any provision for defining custom styling or sizes.

    EDIT

    The Complex Border style simply adds colour information to the formatting

    <xsd:complexType name="CT_Border">
        <xsd:sequence>
            <xsd:element name="start" type="CT_BorderPr" minOccurs="0" maxOccurs="1"/>
            <xsd:element name="end" type="CT_BorderPr" minOccurs="0" maxOccurs="1"/>
            <xsd:element name="top" type="CT_BorderPr" minOccurs="0" maxOccurs="1"/>
            <xsd:element name="bottom" type="CT_BorderPr" minOccurs="0" maxOccurs="1"/>
            <xsd:element name="diagonal" type="CT_BorderPr" minOccurs="0" maxOccurs="1"/>
            <xsd:element name="vertical" type="CT_BorderPr" minOccurs="0" maxOccurs="1"/>
            <xsd:element name="horizontal" type="CT_BorderPr" minOccurs="0" maxOccurs="1"/>
        </xsd:sequence>
        <xsd:attribute name="diagonalUp" type="xsd:boolean" use="optional"/>
        <xsd:attribute name="diagonalDown" type="xsd:boolean" use="optional"/>
        <xsd:attribute name="outline" type="xsd:boolean" use="optional" default="true"/>
    </xsd:complexType>
    <xsd:complexType name="CT_BorderPr">
        <xsd:sequence>
            <xsd:element name="color" type="CT_Color" minOccurs="0" maxOccurs="1"/>
        </xsd:sequence>
        <xsd:attribute name="style" type="ST_BorderStyle" use="optional" default="none"/>
    </xsd:complexType>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using phpexcel class to read .xls, .ods and .xlsx files, I need
I have encountered this error Fatal error: Class 'PHPExcel_Shared_ZipStreamWrapper' not found in \VBOXSVR\ACACIASOFT\apc\spreadsheet\lib\phpexcel\PHPExcel\Autoloader.php on
With PHPExcel , I'm using: $workSheet->fromArray($array) ; To set my data. However, one column
I`m using the PHPExcel class ,to write in an excel file. My question is:
I'm using the PHPExcel lib which it seems to do great jobs, but in
I want to know if PHPExcel can: Create Excel spreadsheets with embeded image. The
How to set cell/column value dynamically using PHPExcel library? I am fetching result set
currently, I used PHPExcel to import excel file, there is a function $cell->getCoordinate(); I
PHPExcel $cell->getColumn() returns 'A', 'B', 'C', ... which is the best way to get
I'm using PHPExcel for transferring data between MySQL DB and Excel 2007 worksheets. It

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.