Word Mail Merge Help Needed

Postby Otto » Fri Oct 31, 2008 10:08 pm

Hello Michael,


my application is for hotels and they have lots of photos.

I made a short test now and inserted 3 ipg-photos each 2.5 mb.
The rtf file is 120 mb.

But hotels insert much more than 3 pictures and we have more than 20 placeholders.

To overcome this problem I used html format with word < 2007 and the same technique as you descript.

But the users ask “Why can’t we use plain word?”

Now with docx – if you change docx to zip you see that inside a word document all is plain xml there should be
other possibilities.

The same file saved as docx is 700 kB the images are saved a part (folder: media) and only in the size which you show in the document.

This is how a docx looks like:


\testdocx
4.749 document.xml
1.296 fontTable.xml
<DIR> media
1.797 settings.xml
15.771 styles.xml
<DIR> theme
0 txt
260 webSettings.xml
<DIR> _rels

I tried to replace the placeholder inside the xml file. This is what I did:

1. Rename from docx to zip
2. unpack
3. Seek and replace in the document.xml for placeholders
4. Zip again the files and rename back to docx.

It works but I didn’t much tests.


Best regards,
Otto
User avatar
Otto
 
Posts: 6328
Joined: Fri Oct 07, 2005 7:07 pm

Postby PeterHarmes » Mon Dec 01, 2008 4:17 pm

I have just tried my mail merge app on a machine running office/word 2000 and when the document opens i get a Confirm Data Source listbox before the document merges. This only happens on word 2000 - has anyone got any ideas how i can prevent this from appearing?

Thanks in advance

Pete
PeterHarmes
 
Posts: 363
Joined: Wed Feb 15, 2006 2:06 pm
Location: Oxford, England

Postby Otto » Mon Dec 01, 2008 5:50 pm

I thought this is only a problem starting with version 11 (2003).
Maybe this helps:

Code: Select all  Expand view
Registry
HKEY_CURRENT_USER
Software
Microsoft
Office
11.0
Word
Options
insert:
SQLSecurityCheck and set value to 0



Regards,
Otto
User avatar
Otto
 
Posts: 6328
Joined: Fri Oct 07, 2005 7:07 pm

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 89 guests