| | |
creating pdf files
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Sep 2007
Posts: 28
Reputation:
Solved Threads: 0
Hello!
I have a small problem in asp.net ... I wish to create a pdf file and write text entered into a textbox into it using asp.net. The following lines of code work properly for creating and opening pdf files
The only problem is that one I navigate to the folder and open the pdf file, it displays a message saying that the file is corrupt. I am able to open it normally using notepad, but not using pdf.
Can anyone help me out?????
Thanks a lot in advance!
I have a small problem in asp.net ... I wish to create a pdf file and write text entered into a textbox into it using asp.net. The following lines of code work properly for creating and opening pdf files
asp.net Syntax (Toggle Plain Text)
Dim fs As FileStream = File.Create(Server.MapPath("files/newfile.doc")) Dim sw As New StreamWriter(fs) sw.Write(TextBox1.Text) sw.Close() fs.Close()
The only problem is that one I navigate to the folder and open the pdf file, it displays a message saying that the file is corrupt. I am able to open it normally using notepad, but not using pdf.
Can anyone help me out?????
Thanks a lot in advance!
Last edited by peter_budo; Nov 5th, 2008 at 9:14 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
•
•
Join Date: Aug 2008
Posts: 1,160
Reputation:
Solved Threads: 137
you are creating a file with a pdf extension, not an actual pdf file
you need to use a either a converter or a printer to create the file
i normally use pdf995.com
you need to use a either a converter or a printer to create the file
i normally use pdf995.com
Custom Application & Software Development
www.houseshark.net
www.houseshark.net
•
•
•
•
http://asp-net-whidbey.blogspot.com/...textsharp.html
http://www.developerfusion.com/code/...s-on-fly-in-c/
hope it will help u
For full resources please go to iTextSharp
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
![]() |
Similar Threads
- .pdf file (Windows NT / 2000 / XP)
- creating pdf in php (PHP)
- Freelance MSAccess/PDF Job - USA based (Software Development Job Offers)
- I have a Problem (Java)
- Php With Pdf (PHP)
Other Threads in the ASP.NET Forum
- Previous Thread: Creating .EXE File
- Next Thread: delete a record from sql server database...
| Thread Tools | Search this Thread |
.net 2.0 3.5 ajax alltypeofvideos appliances asp asp.net beginner box browser businesslogiclayer button c# cac checkbox class commonfunctions compatible content contenttype control countryselector courier dataaccesslayer database datagrid datagridview datalist deployment development dgv dialog dropdownlist dropdownmenu dynamic dynamically edit embeddingactivexcontrol fileuploader fill findcontrol flash flv formview gridview gudi iis javascript list listbox login menu microsoft mouse mssql nameisnotdeclared news novell numerical opera order panelmasterpagebuttoncontrols problem radio ratings redirect registration relationaldatabases reportemail schoolproject search security serializesmo.table sessionvariables silverlight smoobjects software sql sql-server sqlserver2005 ssl tracking treeview validatedate validation vb.net videos vista visual-studio visualstudio vs2008 web webapplications webarchitecture webdevelopment webprogramming webservice wizard xsl






