![]() |
#1
|
|||
|
|||
![]()
I tried to write a simple VBS to open a .doc file and save it as .docx, and did the same from Menu items in Word. File size and XML contents in both cases are different. So it is a bug in saveas API or is there something missing ? I tried something like:
objDoc.SaveAs objFSO.BuildPath( outputDirectory, objFSO.GetBaseName( objFile ) & ".docx" ), wdFormatDocument Is there anything missing in the saveas method to avoid this issue? Is there any way to make both files exactly match? |
#2
|
||||
|
||||
![]()
What elements of the xml files differ?
The metadata may well be different in your testing eg save date/time so it is important to determine whether the differences are actually important.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#3
|
|||
|
|||
![]()
The difference is not metadata. There are a lot of missing runs in the xml converted from the VBS and some bookmarks. Surprisingly, when I open both files using Word there is no difference. But I care only about the xml, I need them to match.
|
![]() |
Tags |
doc2docx, saveas, vbs |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
ptmuldoon | Word VBA | 7 | 03-09-2015 05:38 PM |
wordapp.ActiveDocument.SaveAs Not Working | KSReynolds | Mail Merge | 1 | 07-18-2014 04:03 PM |
![]() |
steveneashcraft | Word VBA | 15 | 05-09-2014 07:01 AM |
![]() |
jillapass | Word VBA | 7 | 03-30-2012 03:24 PM |
![]() |
tinfanide | Excel Programming | 4 | 11-05-2011 01:40 AM |