Click here to Skip to main content
15,912,837 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have this assignment to complete. I have to prepare a job card for a phone repairing company. The job card contains all the info like customer name, receipt# , model, nature of fault/complain etc etc. I can prepare this form in vb.net but there are some problems. Since, this form will be filled by the customer and the sales person, how do i save the all the input data in pdf format everytime the company uses the form to fill an inquiry? Can anyone suggest me what other options should i try or should i stick to vb.net?

Thanks in advance.
Posted
Comments
[no name] 7-Jun-14 8:45am    
Well what did you homework assignment/teacher tell you do do? What were you studying? What did your teacher say when you asked them? Why PDF? Why not a database?
Surajit Das 7-Jun-14 8:51am    
My teacher didnot suggest me anything in particular. She just asked me to do it in whatever platform i find it convenient. She asked me that the form must have the option to input data, then it should have a print option, print preview option, save option. The save option is where i got stuck because she wants me to save in pdf format and not in database.
[no name] 7-Jun-14 18:30pm    
Okay so save the data in a PDF format? What is the problem?
Surajit Das 7-Jun-14 18:34pm    
I cant figure out an option in vb.net to convert a form to pdf format.
[no name] 7-Jun-14 20:22pm    
You don't. You need a library to do it, like http://sourceforge.net/projects/itextsharp/

1 solution

Hi,
I hope you want to show the form information as a pdf which can be printed later. If i'm wrong means please let me know. Please follow the below suggestions:
1. Just store information in DB, when you click the "save" button.
2. Then when you click the "Print" button, pull the data from DB and create pdf dynamically and show to the user.

In order to go with step 2, you need some PDF libraries like iTextSharp, PDF Box etc.

There is second option also exist to achieve your solution. You just use "client" reports or "crystal reports". Where you got the option, to design your report as first with datasource, as per your choice. Then when user click "print", fill the datasource and just show the report in report viewer.

http://msdn.microsoft.com/en-us/library/aa287920(v=vs.71).aspx[^]

This is the most preferred way by professionals. So i also strongly suggest this second option.

Hope this helps!
S Francis
My ASPDotNet Blog
 
Share this answer
 

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