Click here to Skip to main content
13,143,774 members (26,585 online)
Rate this:
Please Sign up or sign in to vote.
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 24-Jan-13 8:52am

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.170915.1 | Last Updated 24 Jan 2013
Copyright © CodeProject, 1999-2017
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