CSV data per line in a row into PDF's - csv

Anyone know how do i create a multiple pdfs that having a data per row in csv, I'm having this idea to create a receipt of pdf per clients but the data of clients is inside of csv per row. anyone have a idea? thank you so much for your reply.
data in csv per row into pdf's for clients receipt.

Related

Program to help split and manage 2,000 column excel

I am building a web application that will run off of data that is produced for the public by a governmental agency. The issue is that the csv file that houses the data I need is a 2,000 column beast of a file. The file is what it is, I need to find the best way to take it and modify it. I know I need to break this data up into much smaller tables within MySQL, but I'm struggling with the best way to do this. I need to make this as easy as possible to replicate for next year when the data file is produced again (and every year after). I've searched for programs to help, and everything I've seen deals with a huge amount of rows, not columns. Has anyone else dealt with this problem before? Any ideas? I've spent the last week color coding columns in excel and moving data to new tabs, but this is time consuming, will be super difficult to replicate and I worry it leaves me open for copy and paste errors. I'm at a complete loss here!
Thank you in advance!
I suggest that you use functions in excel to give every column an automatic name "column1", "column2", "column3", etc.
After that import the entire csv file into MySQL.
Decide on which columns you want to group together into separate tables. This is the longest step and no program can help you manage this part.
Query your massive SQL table to get just the columns you want for each group. Export these queries to CSV and then import them as new tables in your database.
At the end, if you want, query all the columns you didn't put into separate groups. Make this a new table in the database and delete the original table to save on storage space.
Does this government csv file get updated and republished in the same format every time? If so you'll need to write a script to do all of the above automatically.

SSIS csv import - issue with data

I've got an audit log for PowerBI we are trying to import into our data warehouse. Issue is we can't break the rows up to be under the correct headings with how it is currently formatted. Below is a photo of how it is downloaded. The main issue is that every row doesn't have the same column headers in it. E.g. ItemName isn't in the last two rows of our data.
Downloaded Data:
Example of data not under correct columns

How to work with Unstructured Excel Column/Header names which are spread across multiple rows using R

There is an excel sheet http://www.censusindia.gov.in/2011census/C-series/C08.html
Please refer to the Excel sheet For row "India" for Column "C-08".
I want to analyse these data in R.However , the Excel Headers or column names are unstructured .Some headers are located in the first row, others are located in either the 2nd,3rd, or 4th row. Beneath the 4th row is the first subset of data we want to generate graphs from, there are multiple subsets as you go down the excel sheet. Each of these subsets is separated by an empty row. The excel sheet isn't in a format that can be analysed in R.
Please suggest some solution to the issue .
Thank you so much in advance!!

Database with CSV's

Hi guys I'm currently trying to create a database for a business which works with unit sensor data. A company has multiple monitoring units which has multiple sensors, each sensor spits out CSV files every hour or so.
Im trying to relate this data to a company, so clients can view their sensors when they enter the site. Im currently just importing csv scripts into custom tables (by custom i mean just custom headers), obviously the table can only be as big as the CSV table (needs to be the same amount of rows). But the issue i am having is trying to link the csv data to the company? The CSV's don't have id numbers so i cant use keys to link tables.
Here is my Schema: https://puu.sh/wRnPs/eff7a60b5b.png
Here is a CSV example: https://puu.sh/wRoPA/09b3146d40.png
Any ideas would be greatly appreciated i have done a lot of research and can't seem to find a solution!

Add PDF to database

I hope you can help me. In my database (supermarket) I have a table for orders and other for order_details and I would like to add the PDF of each invoice (associated to the order_number) to the database. Is this possible in mySQL? How can I do it?
You could store the PDF in an orders directory and insert the link into the db so when it is sent to the customer it would provide the link to the invoice
There are three possible ways I can think of to go about this.
Method 1.
Have a directory in which all the pdfs are stored. Give each PDF a name that is the order number found in the database.
Method 2.
Store the PDFs in a directory like method 1, but in your database store a file path to the PDF as a varchar. eg: /orderPdfs/124.pdf
Method 3.
Create a BLOB column in your order table and store the PDFs in this field.
Information on how to do this with PHP can be found in the answer to this post: How to store .pdf files into MySQL as BLOBs using PHP?