Click or drag to resize

RemFileExport Method

Paperwork .Net Kütüphanesi
Sunucudan istemciye dosya transferi için kullanılır.

Namespace:  Paperwork.Connect
Assembly:  Paperwork.Connect (in Paperwork.Connect.dll) Version: 5.0.0.0
Syntax
C#
public a_File Export(
	ObjectID objectId,
	string isRendition,
	string rFormat,
	out int aErrorCode,
	out string aErrorMessage,
	bool forOpen = false
)

Parameters

objectId
Type: ObjectID
İstenen doküman nesne numarası
isRendition
Type: SystemString
Temsil isteniyor mu
rFormat
Type: SystemString
Dosyanın formatı
aErrorCode
Type: SystemInt32
Hata kodu (default 0)
aErrorMessage
Type: SystemString
Hata mesajı (default Boşluk)
forOpen (Optional)
Type: SystemBoolean
Default değeri false alır.

Return Value

Type: a_File

Nesne numarası verilen belgenin içeriğini döner.

DeğerAçıklama
0İşlem Basarılı
Diğerİşlem Başarısız

Examples
C#
public void Export()
{
      ObjectID oid1 = new ObjectID("A100010000000001");
      int err_code = 0;
      string err_message = String.Empty;
      a_File file = p.rFile.Export(oid1, string.Empty, string.Empty, out err_code, out err_message);
      if (err_code != 0)
          throw new Exception(err_message);
      else
         System.IO.File.WriteAllBytes(string.Format(@"c:\{0}.{1}", file.FileName, file.OriginalFormat), file.FileData);
}
                 
See Also