[Expand]General Information
[Collapse]WinForms Controls
  .NET Core Support
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications, and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Gantt Control
  [Expand]Chart Control
  [Expand]Map Control
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]PDF Viewer
   [Expand]Product Information
   [Expand]Getting Started
   [Expand]Graphical User Interface
    Supported Formats
   [Expand]Developer Guidelines
   [Expand]Data Acquisition
   [Expand]Data Shaping
     How to: Bind a Report to an MDB Database (Runtime Sample)
     How to: Bind a Report to Multiple MDB Data Sources (Runtime Sample)
     How to: Bind a Report to a Dataset Populated from an XML File (Runtime Sample)
     How to: Bind a Report to Multiple List Data Sources (Runtime Sample)
     How to: Bind a Report to an MS SQL Server Database
     How to: Hide Data Tables in the Database Schema
     How to: Calculate a Summary Function
     How to: Create a Calculated Field
     How to: Limit the Data Supplied During Document Editing
     How to: Create a Snap Template (Runtime Sample)
     How to: Sort Data (Runtime Sample)
     How to: Group Data (Runtime Sample)
     How to: Filter Data (Runtime Sample)
     How to: Format Data
     How to: Pass Parameters to a Report
     How to: Pass Parameters to a Report (Runtime Sample)
     How to: Create a Master-Detail Report
     How to: Create a Multi-Column Report
     How to: Create a Side-by-Side Report
     How to: Create a Report with a Chart
     How to: Save, Load, or Export a Report
     How to: Add a Table of Contents to a Report
     How to: Customize the Data Source Wizard
     How to: Programmatically Mark the Data Source as Use for Mail Merge
     How to: Create a Snap Chart Programmatically
     How to: Bind a Report to an Object Data source (Runtime Sample)
  [Expand]TreeMap Control
  [Expand]Sunburst Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

How to: Format Data

This tutorial describes how to format textual data within a Snap document.

The tutorial consists of the following sections.

Expanded Format Data Using a Format String

This section of the document describes how to format dynamic textual data by specifying a format string.

To format report data, do the following.

  1. Select the Snap field that you wish to format. It must be a field displaying textual information (e.g., a Text field or a Row Index field). This will activate the Field tab in the contextual Data Tools toolbar category.
  2. In the Field tab, click the Properties button.
  3. In the invoked drop-down menu, click the ellipsis button for the Format String property.
  4. Specify the required formatting in the invoked FormatString Editor, and click OK to exit the dialog.

Snap supports both standard and custom .NET format strings.

To learn more about formatting values using DevExpress components for Windows Forms, refer to the Formatting Values topic.

To learn how to format the results of automatic summaries, refer to How to: Calculate a Summary Function.

Expanded Parse a Third-Party Text Format

The Text Snap field provides the capability to parse the following text formats.

  • Plain Text - text without formatting;
  • RTF - Rich Text Formatting;
  • DOC - Microsoft® Word® 97 - 2003 document formatting;
  • OpenXML - Microsoft® Word® 2007 or higher document formatting;
  • HTML - HyperText Markup Language markup;
  • MHT - Web archive markup;
  • WordML - XML-based Microsoft® Word® document markup;
  • OpenDocument - XML-based document markup.

To parse a field's formatting within a Snap document, select the field, and in the activated Field tab of the contextual Data Tools toolbar category, expand the Properties drop-down list and set the Text Format property to the required format.

The document will be updated to reflect the specified formatting.

An empty paragraph before the SnList is a part of the field result. When the SnapList is updated, the paragraph content can be lost. This paragraph is marked by a cross to prevent it from editing. Click Show/Hide Paragraph Mark on the Home tab or press Shift+Ctrl+8 to show the cross symbol.

Is this topic helpful?​​​​​​​