Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900