C# Class EA.Iws.DocumentGeneration.DocumentHelper

Afficher le fichier Open project: EnvironmentAgency/prsd-iws

Méthodes publiques

Méthode Description
ReadDocumentStreamShared ( string fileName ) : MemoryStream
ToFormattedContact ( this contactNumber ) : string

Formats Telephone and Fax number for merge document. Ensures non empty numbers starts with + sign. Country code and number is separated by space.

Private Methods

Méthode Description
GetDocumentDirectory ( ) : string

Gets the location of the document templates assuming they have been compiled to the bin.

Method Details

ReadDocumentStreamShared() public static méthode

public static ReadDocumentStreamShared ( string fileName ) : MemoryStream
fileName string
Résultat System.IO.MemoryStream

ToFormattedContact() public static méthode

Formats Telephone and Fax number for merge document. Ensures non empty numbers starts with + sign. Country code and number is separated by space.
public static ToFormattedContact ( this contactNumber ) : string
contactNumber this Telephone or Fax number (Country code and number separated by - sign).
Résultat string