Usina BRAdvPL Guide
Sign in
← All topics
CLASSUnder review

FwXlsxBorderStyle

FwXlsxBorderStyle():Double() -> cStyle

Provides border-style codes for XLSX worksheets.

FwXlsxBorderStyleAdvPL
01 · OVERVIEW

Overview

Static methods available from LIB 20201009. None, Thin, Medium, Dashed and Double are some documented styles. Apply codes through FwPrinterXlsx SetBorder or SetBorderConfig; choosing a style alone does not draw borders without enabling their sides. (Sources: refs. 1–1.)

02 · SYNTAX

Syntax

FwXlsxBorderStyle():Double() -> cStyle

Methods

NoneNo border.FwXlsxBorderStyle():None() -> cStyle
ThinThin line.FwXlsxBorderStyle():Thin() -> cStyle
DoubleTwo parallel lines.FwXlsxBorderStyle():Double() -> cStyle
03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function Ed459()
    Local jBorder := FwXlsxPrinterConfig():MakeBorder()
    // In-memory configuration without file generation.
    jBorder["bottom"] := .T.
    jBorder["style"] := FwXlsxBorderStyle():Double()
    jBorder["border_color"] := "000000"
    ConOut(jBorder["style"])
Return Nil
Expected result

Prepares a black double bottom border for later application. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Colors are hexadecimal RGB without #. MakeBorder defaults to disabled sides and None style.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. TOTVS. FwXlsxBorderStyle. TDN. Accessed on 2026-10-27.
Status
Under review
Page created on
Last reviewed on
Original language
Portuguese
Reviewed by
Usina.BR
0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha