convert Ms Word to PDF
-
Hi.. I'm actually trying to do a project on converting Ms word into PDF and storing them in SQL server database. The problem is that i would like to the conversion without using third party software. However, i can't find the codes or snippets in vb.net. Appreciate any help on this matter. Thx
-
Hi.. I'm actually trying to do a project on converting Ms word into PDF and storing them in SQL server database. The problem is that i would like to the conversion without using third party software. However, i can't find the codes or snippets in vb.net. Appreciate any help on this matter. Thx
Sorry. You're going to use third party software to convert to PDF. There are no snippets anywhere on how to do this because of the complexity involved. The only free solutions are going to be PDF printer drivers that create a .PDF file that you can then read as binary data and send to a large field in an SQL database. Search http://SourceForge.net to find some open source projects that do this. You'll quickly see why you haven't found any .NET code snippets... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
Sorry. You're going to use third party software to convert to PDF. There are no snippets anywhere on how to do this because of the complexity involved. The only free solutions are going to be PDF printer drivers that create a .PDF file that you can then read as binary data and send to a large field in an SQL database. Search http://SourceForge.net to find some open source projects that do this. You'll quickly see why you haven't found any .NET code snippets... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
Actually, there is a way to convert text files to PDF format, and I guess by using VBA to convert the WORD document to text, you could then convert it to PDF. I can't post the open source code on this site because I am not sure where I got it from and therefore I do not want to infringe on publishing notices (I have the author, but no website). Get in contact with me and I will send a ZIP file from my code library. I've used it to create simple text reports and it works great! Also, if you have time on your hands, you could read up on the PDF file format. Adobe has a 518 page reference that explains how to do build it. You can get a copy of this file from: http://www.wotsit.org/
-
Actually, there is a way to convert text files to PDF format, and I guess by using VBA to convert the WORD document to text, you could then convert it to PDF. I can't post the open source code on this site because I am not sure where I got it from and therefore I do not want to infringe on publishing notices (I have the author, but no website). Get in contact with me and I will send a ZIP file from my code library. I've used it to create simple text reports and it works great! Also, if you have time on your hands, you could read up on the PDF file format. Adobe has a 518 page reference that explains how to do build it. You can get a copy of this file from: http://www.wotsit.org/
I found the website where you can access the code. http://www.vb-helper.com/howto\_write\_pdf\_report.html
-
I found the website where you can access the code. http://www.vb-helper.com/howto\_write\_pdf\_report.html
-
Hi.. I'm actually trying to do a project on converting Ms word into PDF and storing them in SQL server database. The problem is that i would like to the conversion without using third party software. However, i can't find the codes or snippets in vb.net. Appreciate any help on this matter. Thx
Hi, I would like to share an idea with you. I never do it but I think it might work of something go smooth with the following step. 1. Install the adobe acrobat writer. So when you need to convert any file (ex. Ms word) you have to go to File menu and Print… sub menu and choose Adobe Acrobat Writer from the select printer name and save it in a proper place. 2. Create your VB6 or VB.NET application that could connect to the SQL server database. 3. Write the code in appropriate procedure to select the source file (ex. Ms Word file) and then call for the Print Dialog box (using the common dialog control or common dialog API). 4. After select the acrobat writer from the printer name and press then it will prompt you to save the file into the specific place. Then save it and write the code to return the path and file name of the file that you save in acrobat and return that string to store in the database. This method could make your database file require small amount of disk space and easy to access the file from your application. If any one have any comment about this solution please correct it in order to share our knowledge and idea to each other. Roath Kanel APO-CEDC Save Children Norway-Cambodia Office
-
Hi, I would like to share an idea with you. I never do it but I think it might work of something go smooth with the following step. 1. Install the adobe acrobat writer. So when you need to convert any file (ex. Ms word) you have to go to File menu and Print… sub menu and choose Adobe Acrobat Writer from the select printer name and save it in a proper place. 2. Create your VB6 or VB.NET application that could connect to the SQL server database. 3. Write the code in appropriate procedure to select the source file (ex. Ms Word file) and then call for the Print Dialog box (using the common dialog control or common dialog API). 4. After select the acrobat writer from the printer name and press then it will prompt you to save the file into the specific place. Then save it and write the code to return the path and file name of the file that you save in acrobat and return that string to store in the database. This method could make your database file require small amount of disk space and easy to access the file from your application. If any one have any comment about this solution please correct it in order to share our knowledge and idea to each other. Roath Kanel APO-CEDC Save Children Norway-Cambodia Office