Skip to content

FormatString Property

Description

Format string.

Property Type

Read-write property.

Syntax (Visual Basic)

Public Property FormatString() As String

Remarks

  • &d: Date in short format (as specified by Regional Settings in Control Panel)
  • &D: Date in long format (as specified by Regional Settings in Control Panel)
  • &t: Time in the format specified by Regional Settings in Control Panel
  • &T: Time in 24-hour format
  • &p: Current page number
  • &P: Total number of pages
  • &b: The text immediately following these characters as centered.
  • &b&b: The text immediately following the first "&b" as centered, and the text following the second "&b" as right-justified.
  • &w: Window title
  • &&: A single ampersand (&)
  • \n: New line marker

See Also

PrintPageHeaderFooter Object


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.