C# Class EA.Iws.DocumentGeneration.DocumentHelper

Datei anzeigen Open project: EnvironmentAgency/prsd-iws

Public Methods

Method 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

Method Description
GetDocumentDirectory ( ) : string

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

Method Details

ReadDocumentStreamShared() public static method

public static ReadDocumentStreamShared ( string fileName ) : MemoryStream
fileName string
return System.IO.MemoryStream

ToFormattedContact() public static method

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).
return string