We are upgrading to FC11 Distributed from 10 and I see now I can attach a .net DLL. I did this and all works well with the script editor set to in c#, the DLL loads and the form pops up just fine. The problem is that I can't seem to get to the batch or document properties when using C# in the abbyy script editor. I need to add properties to the batch based on selections from our custom form that the scan users select.
For instance ActiveBatch.Name entered into the script editor passes validation on vbscript and jscript but no others, it returns the following
Variable ActiveBatch has not been declared
Using the keyword this or me in vb.net fails as well stating Variable this has not been declared
Is there a way to get at the batch and/or document objects using c# or vb.net?
I am trying to avoid installing an activex component on all the stations like we have now for version 10 and having to update it every time we add functionality.
Thanks in Advance
-Willy
For instance ActiveBatch.Name entered into the script editor passes validation on vbscript and jscript but no others, it returns the following
Variable ActiveBatch has not been declared
Using the keyword this or me in vb.net fails as well stating Variable this has not been declared
Is there a way to get at the batch and/or document objects using c# or vb.net?
I am trying to avoid installing an activex component on all the stations like we have now for version 10 and having to update it every time we add functionality.
Thanks in Advance
-Willy
Comments
1 comment
Please try to access script objects you need via ABBYY.ScanStation namespace, as described in FC Scan Station Help, section "Using scripts in ABBYY Scanning Station > Specifics of scripts written in .Net languages", that is:
ABBYY.ScanStation.IBatchItem activeBatch = Workspace.ActiveBatch;
Hope this helps.
Please sign in to leave a comment.