473,386 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to make report from spooled text file?

1
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.
Jan 24 '13 #1
0 1195

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Yellowbird | last post by:
I have an HTML form with a pre-built table containing "standard" column headings (for example, First Name, Last Name, SSN, Hours, etc.). I want a user to be able to enter values into the form and...
4
by: Alessandro | last post by:
Hi. How can I save multiple reports to ONE text file? I've used the OutputTo function, but the result is one text file for each report. I'm not a MS Access programmer and I don't know if I can...
2
by: Ron | last post by:
Hi All Okay, I've got a report that runs perfectly. Designed originally with the report wizard and enhanced with about 8 subreports and other stuff. Works great. However, I also now need to...
0
by: Yunus's Group | last post by:
Yunus's Group May 23, 3:36 pm show options Newsgroups: microsoft.public.dotnet.languages.vb From: "Yunus's Group" <yunusasm...@gmail.com> - Find messages by this author Date: 23 May 2005...
2
by: Cliff72 | last post by:
I'm creating a database that will be uploading some text files into an access table. The problem is that the text files have a header which messes up my import specs. so what i have had to do is to...
2
by: Cliff72 | last post by:
Is there a way in VBA to copy a file from a web server to a local drive? Example: Every morning at 3AM a huge mainframe report is run and a copy of this report is saved as a text file on a web...
0
by: saintor1 | last post by:
Access 97 This error looks to me as secondary. In fact, it bugs when the opening report tries to close a form. If I try to open the report directly, I have a different message, stating that...
5
by: dm3281 | last post by:
Hello, I have a text report from a mainframe that I need to parse. The report has about a 2580 byte header that contains binary information (garbage for the most part); although there are a...
0
by: bdmir | last post by:
Hello, I have a text file(tab delim) with data and I want to create report. Here is the content of text file: HD John Smith j.smith@testmail.com CT service 1 5$ CT service2 1 6$ CT service3 4...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.