- Joined
- Jan 18, 2012
- Messages
- 3
- Reaction score
- 0
Hi,
I am trying to physically print letters, envelopes, labels and invoices from an ebay csv file. I can print the whole file to my screen but I can't get to the fields individually to format the printed material I listed above. I have tried using lines and csv.reader. Here are some of the fields I have to work with:
SALES RECORD...USER ID...BUYER FULLNAME...BUYER PHONE NUMBER...BUYER EMAIL...BUYER ADDRESS 1....etc..
I have tried many ways, sometimes I got some data to print. After I get selected fields to the screen then I want to print invoices.
Here's the latest failure:
import csv
infile = csv.reader(open("fileexchange_response_123456789.csv", "rb"))
for 'sales record', 'user id', 'buyer fullname', 'buyer phone number' in reader:
print 'sales record', 'user id', 'buyer fullname', 'buyer phone number'
infile.close()
Any comment would be appreciated.
Thanks, Dave
I am trying to physically print letters, envelopes, labels and invoices from an ebay csv file. I can print the whole file to my screen but I can't get to the fields individually to format the printed material I listed above. I have tried using lines and csv.reader. Here are some of the fields I have to work with:
SALES RECORD...USER ID...BUYER FULLNAME...BUYER PHONE NUMBER...BUYER EMAIL...BUYER ADDRESS 1....etc..
I have tried many ways, sometimes I got some data to print. After I get selected fields to the screen then I want to print invoices.
Here's the latest failure:
import csv
infile = csv.reader(open("fileexchange_response_123456789.csv", "rb"))
for 'sales record', 'user id', 'buyer fullname', 'buyer phone number' in reader:
print 'sales record', 'user id', 'buyer fullname', 'buyer phone number'
infile.close()
Any comment would be appreciated.
Thanks, Dave