mySobek Home   |   Help
Skip Navigation Links.
MISSING BANNER
Code Details >> Tools >> FDA >> FDA_Report_Writer

FDA_Report_Writer Class



Class is used to write the FDA Report data in various formats


Namespace: SobekCM.Tools.FDA
Assembly: SobekCM_Tools (in SobekCM_Tools.dll) Version: 4.10.0.0 (4.10.0)

Syntax

C#
public class FDA_Report_Writer

Examples

Example #1 - Simple code to read a FDA report, save it to the database, and write it to another location
 Copy imageCopy
// Read the report and save it in another location
public void Read_And_Save_Report(string Source, string Destination)
{
    // Try to read the report
    FDA_Report_Data reportData = FDA_Report_Reader.Read(Source);

    // If this appears valid, save to the database
    if (reportData.Report_Type != FDA_Report_Type.INVALID)
    {
        // Try to save to the database
        if ( reportData.Save_To_Database())
        {
             // Since this was successful, delete the old and save the briefer version
             File.Delete( Source );
             FDA_Report_Writer.Write( reportData, Destination );    /// 
        }
    }      
}

Inheritance Hierarchy

System..::..Object
  SobekCM.Tools.FDA..::..FDA_Report_Writer

Constructors

  NameDescription
Public methodFDA_Report_Writer
Initializes a new instance of the FDA_Report_Writer class

Methods

  NameDescription
Public methodStatic memberWrite
Writes the basic information about a FDA ingest report as a valid XML file
Public methodStatic memberWrite_Text
Writes the basic information about a FDA report as a text file

See Also



Version 4.10.0 ( last generated Monday, March 7, 2016 )