how to develop an utitlity to compare two different files in c# - utility

As i got task to make an utility in windows forms which can compare the data of jSON file and EXCEL sheet and put a validate button . So as we click on the validate button we should get result in pass / fail manner in the form of excel sheet after the data of both file is compared. So plese help me out
POST DATA VALIDATOR

Related

Pulling all info from open Access subform into excel

We are using a access front end that is being developed externally. It displays a form that contains numerous points of data and a few subforms.
I am trying to code a excel sheet that would pull data from various places in the currently open form.
I have gotten as far as to be able to access all the points of data in the main form and the first line in the subforms using the following code (In this example, the "pnum", is the left most field displayed in the subform):
Set objacc = GetObject("xxxxx\Database.accdb").Application
Debug.Print objacc.Forms("mainform").Controls("main subform").Controls("Pnumber")
This works and gets me the value of the very first element named "Pnumber" in the main subform.
However, the way the subform is formulated, it can have anywhere between 1 and 30+ "Pnumber" fields.
I need a way to pull everything that the currently visible (filtered down) subform contains regardless of how many lines there are.
Thanks!
If I were the developer of that Access application, and you asked me for this feature, I would code an API for you to automate getting the right data.
One approach I can think of in this particular case would be to populate some temporary tables, on request from Excel VBA, and have Excel use the Access database file as an external source of data. Or Access could be coded to push the right data into the open Excel worksheet.
The way you would get access to the data in its current state in the form (filtered, sorted, etc.) would probably be best through the RecordsetClone property of that (sub)form. At least that's what I imagine I would use to implement that feature.

Export data from PDF forms to Excel

I have a .pdf form I have created in Adobe Acrobat XI Pro. The form will be distributed and individuals will complete the form and email me a copy at various times.
I need to get the information from the form into an Excel spreadsheet as I receive the forms back.
Is that possible?
Direct answer: "Yes"
A bit more verbose answer: There are several possibilities.
a) Use the "Merge Data Files into Spreadsheet" function, which can be found in the Forms pane in the Tools panel of Acrobat XI (and in the Moreā€¦ dropdown in the Prepare Forms Tool in Acrobat DC). There you specify from which files you want to extract the data, and Acrobat creates an according table.
This is quick and easy, and can process a whole batch of files, but it has the issue that you have no control over the fields you want to export and their order.
b) Use the doc.exportAsText() method on the forms; this will create a tab-delimited file, which you then can merge into your spreadsheet. This would be file per file, but you could create an Action which does run on a whole folder.
c) Use some logic to assemble a tab-delimited text, and create and then export a Data Object (which would be a tab-delimited file, as in case b). This gives you maximum control, and you can even export "calculated" data, which does not exist as such in the form, and/or have full control over the format of an exported field contents. This too is file per file, and could be turned into an Action.

To print PASS/FAIL status in excel , after coded UI tests

I am using Coded UI for testing.
I have a set of 5 fields to be validated in one page.
I have added assert and record methods and all that is working fine.
Is it possible to import an excel file with field level validations and mark Pass/Fail status in that excel sheet through Coded UI?
Like, the test result should be printed in the last column of the excel sheet across each of the fields.
Is that possible?
Yes it is possible.
Here's how to read from excel:
http://msdn.microsoft.com/en-us/library/ee624082.aspx
And here are some links to help write to excel:
Writing to an existing Excel File using c#
http://msdn.microsoft.com/en-us/library/dd264733.aspx
http://www.codeproject.com/Tips/613782/Read-and-Write-Excel-File-Dynamically

How to export Reports in Microsoft Access in a specific manner

I have a client that reads their reports in Microsoft access...the woe is she tries to export the report to an excel file by right clicking on the report and going to export->Excel
This works, but the labels are not in the right order etc... in the report they are right..but in the exported file they need more data (or she wants more). I have to say I am perplexed how to somehow intercept the export and write my own xls file out based on the query that generated the report... or some other way? Maybe another report that is generated that is for the sole purpose of exporting that has the columns in the final xls file the way she wants...I am not a guru at this just know enough to be dangerous so I am not sure what the best method to attack this is and get it where the exported report as an excel file has the columns she wants.
You have two options one is more efficient and one more flexible:
More efficient:
Write the query to a CSV file file using IO statements
More flexible:
Build the Excel file cell by cell using an Excel object. Of course you can use loops and make it generic so it will work with any query passed as a parameter

Load Excel with Check box (form control) using SSIS

I have to load unstructured excel file into temp table , think of it as a survey form with check boxes (form control) .
My problem is check box value does not come if I covert excel into CSV or any another format.
Can I use SSIS to load this excel file or How can load this file so that check box value is also captured.
In general, you can obtain the value of the checkbox by referring to the cell in the Cell Link property of the control. (See the Office documentation for details on determining that cell reference.)
However, it sounds like that's not set in your case. If so, you're not going to be able to access that checkbox through the SSIS Excel connection manager. You'll have to write code to walk through the Excel object model and get the value that way.

Resources