January 24th, 2013, 03:00 PM
How to make report from spooled text file?
I need to create WinForms application that reads spooled text file and prints reports (invoice) in PDF or on paper.I was thinking to use reportviewer control and .rdlc report.My biggest problem is that i don't know what is the best way to get strings from spooled file to report.Strings in the spooled file are in the fixed positions except the items we sell, their number will vary and i will get dozens of invoices in one file.I can get the file into datatable via tableadapter in which(datatable) every line is in one row -something like this..
Invoice Number -row1
Customer Code - row2
Customer Adress line1 Date Warehouse -row3
Customer Adress line2 Ship. Method SomeOtherDate -row4
Nr. of Item ItemName amount taxes ItemPrice -row5
Some text Totals -rowN
I'm new to this, so my question is: what is the best way to do this? (to extract and bind the data for printing)Thank you for your help.