I am trying to extract data from PDF file using code stage c#.
I referred the link: https://www.codeproject.com/Articles/14170/Extract-Text-from-PDF-in-C-NET
I designed my code and initialize using this link. But I get following error when tried to run the code.
Error:
Internal : Could not...
Errors are resolved by following:
Add System.dll in external references along with System.Data in namespace imports if we are using collections with C#.
In c#:
If output collection stage is collectionOutput then
Code:
DataTable table = new DataTable();
table.Columns.Add("Number", typeof(int));
for(int i=0; i<5; i++)
{
table.Rows.Add(i);
}
collectionOutput = table;
Note: Add System.dll in external references and System.Data in namespace...
If output collection stage is collectionOutput then
Code:
Dim table As New DataTable
table.Columns.Add("Number", GetType(Integer))
For i As Integer = 1 to 5 Step 1
table.Rows.Add(i)
Next
collectionOutput = table
Hope this works fine. :)
@adebroise the namespace System.Data I included. But the thing is it is working with Visual Basic but not with C#. I use C# to write my code, so I need a namespace or dll to be used to eliminate this particular error.
How to use a collection as input in Code stage while writing in C# Programming language?
Whenever I am using the collection in the code, It is showing the error as some reference missing. May I know which additional reference to be used for this to work apart from inbuilt ones?
I have one...
@cs.andras Thank you. But I am trying to find a solution without using image search. I have an option called "uniform colour" in my wait stage to check whether region has uniform colour or not.
Learning > Surface Automation > "Training Document - Surface Automation Advanced Training(v6)" -...
@adebroise Thank you. I used surface automation guides from the portal. They asked to take different screen shots for male checked and female checked radio buttons. Thats why I used spied using region mode and not win 32 or AA mode. Please find the screenshot of my male checked element.
Thanks Rob,
I identified two radio buttons Male and Female using region mode. Similarly check box of verified using region mode. It is identifying as a button but not radio button or check box. Hence I do not have an attribute name 'Checked?'. How can I identify them such that I get 'Checked?'...
I have 2 different elements. Male - Checked and Male - Unchecked. I am reading this element in Read stage, then selected 'Get Checked'. The flag is returning false in both cases.
Naga
Hi Rob,
This is the same document i am following currently. That is only giving me what regions should i use but did not mention how to read like what steps to do in order to get whether radio button is checked or not.
Regards,
Naga
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.