TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Afzal Hussain
NA
3
1.5k
How to create a PDF file from FORMATTED text file
Jun 3 2011 12:48 AM
i need to write a service which has to perform the following task:
-read text file from specific folder automatically and generate pdf files for each customer data.(this text file generated by another system on daily basis with current date as its file name.
-this text file contain orders and orders detail of different customer. (and data is also FORMATTED)
e.g.
order-detail02062011.txt
<!--
Customer Number:001 Customer Name: Roland Peter
Address: Washington Date : 02-06-2011
Order Detail
Item No. Description Quantity Price
000988 XYZ 100 $90,0000
000888 ABC 500 $50,0000
Total 700 $140,000
-->
<!--
Customer Number:002 Customer Name: Jhon Bravo
Address: NewYork Date : 02-06-2011
Order Detail
Item No. Description Quantity Price
000988 XYZ 100 $70,0000
000888 ABC 500 $50,0000
Total 700 $120,000
-->
-this text file has specific starting and end delimeters which shows the start and end of orders for each customer.
-i need to loop through this file for every customer order and create a separte pdf file from this data.
-these pdf files will be saved by customer reference number.
Any body can give me some idea how I will start this task, as I have some grey area in my mind that how I can generate these pdf files from .txt file.
Reply
Answers (
2
)
Form closing?
how to set error provide on prompt.