|
-
Jul 18th, 2012, 02:31 AM
#1
Thread Starter
Fanatic Member
Docx conversion.
I am having a word document in 2003 format. i want to convert 2003 document(.doc) to 2010 document(.docx) using vb.net or c-sharp.
So far i surfed, i came to know there is ofc.exe to convert doc to docx, but it supports only for 2007 compatability.
Visual Studio.net 2010
If this post is useful, rate it

-
Jul 18th, 2012, 04:41 AM
#2
Re: Docx conversion.
if you have W2010 installed, you can just automate it to saveAs into the appropriate format
i did not realise 2007 and 2010 had different file format as i have neither
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Jul 18th, 2012, 05:14 AM
#3
Re: Docx conversion.
see this link, i dont knw this wil help u or not
-
Jul 18th, 2012, 05:29 AM
#4
Thread Starter
Fanatic Member
Re: Docx conversion.
 Originally Posted by westconn1
if you have W2010 installed, you can just automate it to saveAs into the appropriate format
Could you please tell how to automate this without user intervention.?
Visual Studio.net 2010
If this post is useful, rate it

-
Jul 18th, 2012, 06:13 AM
#5
Re: Docx conversion.
see the tutorial in the faq thread at the top of this forum
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Jul 18th, 2012, 10:26 AM
#6
Re: Docx conversion.
.Docx is also a 2010 format. If you convert .doc to docx then that will open in Word 2010 without the compatibility mode.
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
-
Jul 18th, 2012, 12:33 PM
#7
Re: Docx conversion.
This faq will do it for you. Just change the file extension and the file type argument and you should be good to go.
http://www.vbforums.com/showthread.php?t=552992
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|