| | |
creating pdf files
Please support our ASP.NET advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
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,162
Reputation:
Solved Threads: 138
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...
Views: 1137 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for ASP.NET
.net 2.0 activexcontrol advice ajax alltypeofvideos anathor application asp asp.net bc30451 bottomasp.net browser button c# checkbox click commonfunctions confirmationcodegeneration connection css dataaccesslayer database datagridview datagridviewcheckbox datalist deadlock development dgv dropdownlist edit editing expose feedback flash form formatdecimal forms formview google grid gridview hosting iframe iis javascript jquery list listbox login microsoft migration mono mouse mssql multistepregistration news numerical object objects panelmasterpagebuttoncontrols parent problem project radio reportemail richtextbox rotatepage save schoolproject search security services session silverlight smartcard software sql sql-server sqlserver2005 suse textbox theft tracking unauthorized update validation vb.net video videos view virtualdirectory vista visualstudio web webapplications webdevelopemnt webprogramming webservice youareanotmemberofthedebuggerusers






