| | |
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 activexcontrol advice ajax alltypeofvideos asp asp.net bc30451 bottomasp.net browser businesslogiclayer button c# c#gridviewcolumn checkbox child click commonfunctions compatible confirmationcodegeneration content contenttype courier css dataaccesslayer database datagrid datagridview datagridviewcheckbox datalist deadlock development dgv dropdownlist dropdownmenu edit expose feedback flash flv form formatdecimal forms formview gridview homeedition iframe iis javascript jquery listbox login menu microsoft mono mouse mssql multistepregistration news numerical objects order panelmasterpagebuttoncontrols parent radio ratings reportemail rotatepage save schoolproject search security serializesmo.table silverlight smartcard software sql-server sqlserver2005 suse textbox tracking typeof unauthorized validation vb.net video videos virtualdirectory vista visual-studio visualstudio web webapplications webarchitecture webdevelopemnt webprogramming webservice xml youareanotmemberofthedebuggerusers






