Auguy,
Thank you for your help it works great I never thought of stacking the fields on top of each other and using Print When.
Thanks again for your time
SergeantC
I am working on a report that has a field that can hold up to 80 characters. However, it may hold one half or less.
Assume I have the field width on the report set to 40 characters and the field height set to two lines.
Is there a way to insure the bottom line is filled first and if there is...
Tamar,
Thank you for the information and your time. It is working just as you describe, and apparantly that's notmal.
Again I appreciate your tiem and effort in this. I works both using Word 2003 and 2007.
SergeantC
I used LOCFILE() because my user would not know which document to pick, and there is a 99.9% chance the document file is in VFPs current directory. GETFILE() starts in the current directory and shows the file extensions requested. I can't rely on the user knowing a file name. I just don't know...
I created a new mail merge document from a blank document saved it as a .DOC
From the command line I did the following:
*update EXCEL file used as merge data
SELECT mydata.dbf
SET SAFETY OFF
COPY TO mydata TYPE xl5
RELEASE ALL LIKE o*
LOCAL oWordDoc, oDoc
oWordDoc = LOCFILE(myMergeDoc.doc')...
Thanks,
I'll create a new .DOC from a blank. I messed with this so much over the last week or so I'm not sure, but there is a very good chance the .DOC was based on a Template (.DOT) or even a Word2007 .DOTX.
Thank for your hint, I really appreciate your time and effort
Thank you
Actually I've tried it with the document and with the template and cannot get either to work.I tried just using
oWord=getobject("c:\mypath\mydoc.doc"), made word visible and the document active. From the command line it works, from a .prg file I get not one but two open documents...
Thank you for your response I appreciate your time.
It appears the Excel file has the correct place and the document recgonizes it and its location. If I double cllick on the file name from Microsoft Windows Explorer the document opens, I get an a MS Word dialog box stating
"Opening this...
I'm using VFP9SR2 and trying to do a mail merge 2ith MSWord2003.
My problem is that under code my template will not automatically merge. I have to manually select the Excel Table from the merge tool bar then view the merged data.
If I open it from Word, or double click it from windows...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.