On 03/03/2011 11:25 PM, Terry Badger wrote: > Hussein, > Indeed using rtf does cause the macro to run correctly and I don't lose > any images. > The downside is the cell formatting clips text even with the > -rtf.target=MSWord plus I have an image scaling problem. So I think I am > stuck handling each document by hand. > Well at least I understand the problem better and when you make > improvements to the docx creation you might want to use this as a test. > Dorothy, Dave and Jan, > I could not get the macro to run reliably to get all of the images but > can make a hand process work so that is what I will do. The last couple > of days have not been as much fun as I hoped but I thought you would > find this interesting. > Terry >
Thank you for this information and sorry for the inconvenience. Next major release of XFC, v4.5, has been slightly delayed and is now planned for this summer. > ------------------------------------------------------------------------ > *From:* Hussein Shafie <[email protected]> > *To:* Terry Badger <[email protected]> > *Cc:* "[email protected]" <[email protected]> > *Sent:* Thu, March 3, 2011 2:19:08 PM > *Subject:* Re: [XFC] XMLmind XSL-FO Converter v4.2p1 > > On 03/03/2011 06:11 PM, Terry Badger wrote: >> Thank you for taking a look. I think you will find everything in the >> zip. Here is what I did: >> >> 1. loaded up 4.4.2 and ran 3 xsl-fo files through renderx (all > validate) >> 2. then through 4.4.2 to get the docx files. See >> create-docx-from-fo.txt for DOS command line. >> 3. I opened each file with Word 2010 on C: drive where they were >> created (could not see images on stick) >> 4. Files looked good with all images so I added a couple of spaces >> and did a save as adding word-saved to the file name. >> 5. So now I have 6 docx files 3 that are XMLmind and 3 that are Word >> and ran a simple macro shown in docx2doc.txt to get out the doc >> files. Note the doc files that started from the XML mind files are >> missing the images. If I open a docx XMLmind file in Word >> individually and do a save as to doc I get a good file. With >> hundreds of files I would rather use a macro. >> >> Thank you for your thoughts on this one. >> > > You say: > > a. Files (generated by XFC) looked good with all images. > b. If I open a docx XMLmind file in Word individually and do a save as > to doc I get a good file. > > The problem occurs only when you convert a docx XMLmind file to .doc > using the docx2doc.txt macro. > > First of all, what you did seems to prove that Word when invoked by a > macro does not have the same behavior as Word used as a desktop application! > > We admit that the way we create images in a .docx file is a bit outdated > in respect with the latest OOXML specs and that we may change this in a > future release. This change *may* have the side-effect to solve your > problem. > > In constrast, the way we create images in RTF and WordprocessingML is > fully compliant with the specs of these formats. Therefore, as a > workaround, I suggest that you change your toolchain to generate RTF > rather than .docx and then convert this RTF to .doc. *May* *be* this > will solve the problem. If you do this and solve your problem, please be > kind enough to inform us of this fact. > > > >> Terry Badger >> >> >> ------------------------------------------------------------------------ >> *From:* Hussein Shafie <[email protected] <mailto:[email protected]>> >> *To:* Terry Badger <[email protected] > <mailto:[email protected]>> >> *Cc:* "[email protected] <mailto:[email protected]>" > <[email protected] <mailto:[email protected]>> >> *Sent:* Thu, March 3, 2011 10:56:40 AM >> *Subject:* Re: [XFC] XMLmind XSL-FO Converter v4.2p1 >> >> On 03/03/2011 02:58 PM, Terry Badger wrote: >>> I have been using your converter for some time with reasonable success. >>> Normally I create my files on C: and then open in Word and hand convert >>> to doc format. I find that if I put the file on my thumb and open it >>> that the images don't come up. Also if I try to run a VB macro to covert >>> a bunch of files and stay on C; drive sometimes I get the images and >>> sometimes not. >> >> I cannot reproduce this problem. >> >> * Using XFC v4.4.2/Java 1.6/Windows XP, I've created an RTF file >> containing a few PNG images on C:\xxx\yyy. >> * I've opened this file in MS-Word 2007 and saved it as a .doc. >> * I've copied the .doc to an USB Pen Drive. >> * I've opened the .doc stored on the USB Pen Drive using MS-Word 2000 on >> another machine. >> >> Everything worked fine for me. (Strangely MS-Word 2000 takes a couple of >> seconds to display an image. That is, it first displays the page and >> then, the first time the page is displayed, it takes 1 or 2 second to >> display the image it contains.) >> >> In order to be able to help you, we need to reproduce the problem here >> at XMLmind. So please send us all the information listed here: >> http://www.xmlmind.com/foconverter/support.html#xfc_support_policy >> >> >> >>> I wonder if any of this problem would be in the file that >>> the converter provides me? Also I wonder if there are later versions of >>> this program that my license entitles me to that might help? >> >> You don't have access to latest releases since September 17, 2009. >> Therefore the last version your are entitled to use is v4.3.1 (April 21, >> 2009). See http://www.xmlmind.com/foconverter/changes.html >> >> I suggest that you first give latest release --v4.4.2-- of XMLmind >> XSL-FO Converter (free) Personal Edition a try. See >> http://www.xmlmind.com/foconverter/downloadperso.shtml >> >> If it does not work with Personal Edition v4.4.2, then it is unlikely >> that it will work with Professional Edition v4.3.1. >> >> >> >> >> >> -- >> XMLmind FO Converter Support List >> [email protected] <mailto:[email protected]> >> http://www.xmlmind.com/mailman/listinfo/xfc-support > > > > > > -- > XMLmind FO Converter Support List > [email protected] > http://www.xmlmind.com/mailman/listinfo/xfc-support -- XMLmind FO Converter Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xfc-support

