Table of Contents

Method EscapeHeaderFooterText

Namespace
DocWright.Spreadsheet
Assembly
DocWright.Spreadsheet.dll

EscapeHeaderFooterText(string)

Returns text for a header or footer with every & doubled, so that Excel shows it as written rather than reading it as a code (&P is the page number; && is an ampersand).

public static string EscapeHeaderFooterText(string text)

Parameters

text string

The text.

Returns

string

The text, its ampersands escaped.