Formatting date column while generating excel using closedxml when columns are dynamic - closedxml

While generating excel from datatable using closedxml how to format date columns when columns are dynamic? that is datatable may not consist date column or if consist then can be on any index?

Related

How to get cel value in table in PDF scanned by Kofax to excel

I am new to Kofax capture and I am working on retrieving data from a basic scanned invoice copy(PDF) with table that contains list of items to index file. The steps followed are as follows:
Created document class and added index field of type table and table columns such as Date as field. Date column value screenshot of PDF is as follows:
During the validation the date field values are all displayed in one field as follows:
Date: 12/01/2018 12/02/2018 12/03/2018 12/04/2018
Also when the values exported to index file are in the above format.
Is there a way to retrieve values in every cell as separate entries or comma separated using kofax capture?
Plain vanilla Kofax Capture (KC) can't extract data organized in tables. KC can extract static data, i.e. simple key-value pairs (e.g. invoice number, invoice date, total amount).
Sure, you could try to extract a column like this:
However, this could lead to potential issues down the line. What if the data isn't always in the same place? What if data continues on subsequent pages? What in your zone is smaller than the entire column? What if there are overlapping texts? What if you want another column with additional data, essentially creating rows, but if there are huge gaps in some columns (as in my screenshot)?
If table extraction is a requirement, you might want to use Kofax Transformation Modules (KTM) which is available as an Add-On to Kofax Capture. KTM has more sophisticated methods of extracting tables that is not limited to individual form layouts.

Extracting rows that meet certain criteria from a worksheet and populating another worksheet dynamically using functions

My first worksheet has smart markers.The column names can be different each time.
Can I populate a fresh worksheet with only those rows that meet a given criteria on one or more of the columns?
Example: If the columns are TYPE and VALUE. Can I add only rows which have TYPE= A to another sheet.
I have tried autofilter but it requires knowing column index and my column names change from time to time.
I am using aspose.cells for java.
I think the best way to cope with your scenario/case is you should filter and extract your desired rows/records in your query (e.g SQL statement) or ResultSet from data source by yourself, so once the Smart Markers are processed, you should have your desired data filled into the cells for your needs.

Mapping database columns to excel spreadsheet

I have a table that contains ~100 columns and I have to generate an excel sheet out of it. The output excel columns are like "Total Actual FY SY-2/SY-1" and I can't have that as my database column for sure.
My question is how can I map database columns to excel columns? How can I know for example if "TotalActualFYSY2SY1" in database should be "Total Actual FY SY-2/SY-1" in excel?
Should I have another table to map the database column names to the excel column names?
I'm not asking for solution in any specific programming language.
(The system is going to be developed using SoftwareAG WebMethods)
There are various solution to this, you can do the same via using alias name in SQL Server for example
SELECT TotalActualFYSY2SY1 AS 'Total Actual FY SY-2/SY-1'
FROM YourTable
This will output your column in desired name. Alias name in SQL is the temporary name to assign to the column or table.
Another way is to fetch rows from SQL Server and change the column name from any programming language itself.

Split the Table into multiple excel files using ssis

There is a table with 5000 records ,I need to split it into 10 excel files with names
Jan_DEpt_Records.xlsx,Feb_Deptname_Records.xlsx etc.How to achieve this with ssis.
Here "Dept" part of the excel name would come from the source table dept column.
It has been understood the use of for each loop and dataflow task inside foreachloop.
You should use conditional splits and in that you can right the cases for the number of records and than pass it to your excels just replace derived columns with the sample excel.insert indentity column on basis of that you can differentiate :

Skip Specific rows from CSV file for the CSV Datasource report generation with JasperReports

I want to create JasperReports reports based on dynamically generated CSV files.
Generated CSV file contain two different column headers. I want to omit the first header details and only need to read values from second header.
Refer the attached image.
I want to skip the first 3 rows and need to read csv from 4th or 5th row onwards.
Please note that I unable to delete first header. How can we perform this requirement to generate such report?
'AMOUNT' datatype is BigDecimal and Based on 'AMOUNT', perform several calculations also.
How can we view reports with iReport with this requirement?