Methods
Input parameter
The ExportToMemory method of the FRDocument object receives a pointer to this interface as an input parameter.Samples
C# code
C# code
C# code
public class FileWriter : FREngine.IFileWriter
{
public FileWriter( string _resultsPath )
{
resultsPath = _resultsPath;
}
public void Open( string fileName, ref int bufferSize )
{
string resultsFilePath = resultsPath + fileName;
stream = new FileStream( resultsFilePath, FileMode.Create );
}
public void Write( byte[] data )
{
stream.Write( data, 0, data.Length);
}
public void Close()
{
stream.Close();
}
private string resultsPath;
private FileStream stream;
}
Was this page helpful?