Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0
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 24-Jan-13 8:52am
Sotona325

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 424
1 Nirav Prabtani 298
2 OriginalGriff 199
3 _Amy 165
4 Maciej Los 145
0 OriginalGriff 7,755
1 Sergey Alexandrovich Kryukov 6,951
2 Maciej Los 3,994
3 Peter Leow 3,698
4 CHill60 2,742


Advertise | Privacy | Mobile
Web03 | 2.8.140721.1 | Last Updated 24 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100