473,395 Members | 1,440 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Programmatically convert a Word doc to PDF

Hi, I'm new here.

Is there any commercial .NET extensions which allow me to convert a simple word doc to PDF file?

Thanks for any helps :)
May 9 '07 #1
3 4146
Atran
319 100+
Hi, I'm new here.

Is there any commercial .NET extensions which allow me to convert a simple word doc to PDF file?

Thanks for any helps :)
I do not sure because I not try this way, see this code:

System.IO.File.Copy("C:\test.doc", "C:\copyofTest.pdf");

Hope to help.
May 9 '07 #2
I do not sure because I not try this way, see this code:

System.IO.File.Copy("C:\test.doc", "C:\copyofTest.pdf");

Hope to help.
hmm... I dont think it will work. The only thing this line of code does is the create a identical copy of the original file but with a different file name
May 10 '07 #3
Hi, I would like to suggest Aspose.Words. The code is pretty simple:

Expand|Select|Wrap|Line Numbers
  1. Document doc = new Document("in.doc");
  2. doc.SaveToPdf("out.pdf");
Jan 14 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Jim | last post by:
I have a 24-bit colour BMP which I need to convert to 16 colours, the palette is correct and converts fine via Paint manually, how can I talk to paint or programmatically convert this bitmap. ...
4
by: Dominic | last post by:
Hi guys, In .NET, how can I convert a HTML file to TIFF efficiently? One possible way is that I can first use word automatation to load the HTML up and then print it to TIFF. Is that right?...
4
by: Thomas Jespersen | last post by:
Hello I want to create a MSI file programmatically. Do you know of any third party .NET component which can help me with that? I'm going to use it like a self extracting zip. So it is not...
2
by: Christopher Beltran | last post by:
I am currently trying to replace certain strings, not single characters, with other strings inside a word document which is then sent to a browser as a binary file. Right now, I read in the word...
2
by: Michael Meckelein | last post by:
Hi all! I have a table like Table myTable = new Table(); Now, I want to publish the table as part of a webpage and as part of a word document. I tried to convert the table, but the compiler...
6
by: Adam Right | last post by:
Hi, I am developing a project which uses "Microsoft Word Interop". There may be a case in which the end-user may not have Microsoft Office or Office Interops. So i do not want to add a com...
2
by: Dennis | last post by:
Looking for a method to programmatically convert (using vB) a Word doc to it's ASCII equivalent. I understand I'll lose all formatting, and that's okay Anyone out there have ideas Thaks ...
4
by: | last post by:
Hi all, I want to create a method that does the following: 1) Programmatically instantiate a new XmlDataSource control 2) For each file in a named directory, make a "FileSystemItem" element 3)...
4
by: nothix9 | last post by:
Hello guys, Ive been working this for 2 days, I am required to position a string using drawstring but the problem is its dynamic and changes depending on the database or source. A quick fix I thought...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.