私は、一部のスクリプトを C#.NET で記述できるようにする ABBYY Flexicapture に取り組んでいます。C#.NET を使用したことはありませんが、Java に十分近いので、問題なく使用できます。次のことをmethod
示す宣言があります。
Document:
Property (name: string) : VARIANT
Description: Retrieves the value of a specified property by its name. The returned value can be in the form of a string, a number or time.
Properties names and returned values:
Exported - when the document was exported
ExportedBy - who exported the document
Created - when the document was created
CreatedBy - who created the document
したがって、「Exported By」の値を取得しようとしていますが、次の行のいずれかを試すとエラーが発生します。
string = Document.Property("CreatedBy"); // Returns Error: Cannot implicitly convert type 'object' to 'string'. An explicit conversion exists (are you missing a cast?) (line 95, pos 21)
string = Document.Property(CreatedBy); // Returns Error: Error: The name 'CreatedBy' does not exist in the current context (line 95, pos 39)
string = Document.Property("CreatedBy").Text; //Error: 'object' does not contain a definition for 'Text' (line 95, pos 52
私はVARIANT
以前に使用されたのを見たことがありません、誰かが私にこれを説明できますか. 明らかな構文エラーがありませんか?