Forums     Knowledge Base     OfficeWriter Online     
 
 
This documentation is for
OfficeWriter v3.7.1
ASP/COM Platform

View Docs for Another
Version or Platform

Programmer's Reference > ExcelTemplate > PreserveStrings

PreserveStrings Property

Syntax:

PreserveStrings [= Boolean]

Description:

When an ExcelWriter template data marker is populated with numeric strings, ExcelTemplate will automatically convert the strings to numbers. To preserve a numeric string as a string, set PreserveStrings to true. PreserveStrings is set to False by default.

PreserveStrings is a Read/Write property.

When PreserveStrings is not enabled, data source values like Social Security numbers and zip codes will be converted to numbers and leading zeros will be lost.

Example:

objTemplate.PreserveStrings = True



Copyright 2006 © SoftArtisans, Inc. All Rights Reserved.