Normal Topic Printing - Using Word Merge (Read 1672 times)
TJCajun
Junior Member
**
Offline


"Laissez les bons temps
rouler"

Posts: 72
Location: Louisiana
Joined: Nov 25th, 2002
Printing - Using Word Merge
Dec 29th, 2003 at 11:22pm
Print Post Print Post  
Sesame offers several ways to print information.  Here's a quick review of the Word Merge Utility that is supplied with the purchased version of Sesame.   This uses MS Word as the document printing program.

Unzip the files provided by running the Wordmerge.exe file found in the Utilities\WordMerge folder.

Print the 2-page document called Wordmerge Readme.

Find the document called Wordmerge.doc in the files that you generated by unzipping the Wordmerge.exe file above.  This document is some 15 pages, but you can reduce this to about 10 pages if you reduce the quite large margin settings of the document.  Print this document out.

By reading only the 2-page document, and the first 2 pages or so of the 10-page document, I was able to do my first "mail merge" using the sample files, and accomplished this in about 30 minutes total - from the time I expanded the zipped file.

Here's some notes & comments as they pertain to what is discussed in the documents above, and what I did.

My winword.exe file was in a slightly different folder than what is given in the documentation - so verify where your winword.exe file is located, and modify the included batch file (word.bat) accordingly.

As per the 2-page document:  Put the wordmerge.db and wordmerge.dat files in your regular Sesame database folder.  Put word.bat (modified if needed) in your main Sesame folder.  Put the List.txt file (supplied) in your Sesame docs folder.  Also put the 4 sample word-merge documents in your Sesame docs folder.

Run Sesame.  Open the Wordmerge.db database.  Click on Customers in Search/Update.  Access 1 or more records (there are 80 sample records).  BE CAREFUL... if you are not - you may start printing all 80 records.  I suggest looking at the database, and retrieving only 1 record using a known value in the KEY field.  Be sure the Sesame window is large enough so that you can see the "Print Word Merge Letter" button below all the fields.

Click on "Print Word Merge Letter".  A small window opens near the top, with 5 options.  Pick one of the options, but don't pick the 5160 Address Labels option.  The window changes to offer 2 options to print:
  -  ALL Retrieved records
  - THIS record only

Pick  "THIS record only"
Window opens to confirm which document to print and which record(s).  Answer YES.

MS Word opens - I get a window asking to confirm running an SQL command to place data in a document.  I'm running Windows XP Home edition.   Answer YES.

Document appears on screen with merged data.

I clicked on the Printer icon in MS Word

DOCUMENT PRINTED!!!

Extensive information is contained in the remaining pages of the 10-15 page document above, that will help you set this up to meet your needs.  By using MS Word to create your documents you have significant flexibility and power to provide the printed output that you need.

There may be changes that can be made to make this run even more fluently - but I haven't tried to do this yet.

T.J.
  
Back to top
IP Logged
 
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: Printing - Using Word Merge
Reply #1 - Dec 30th, 2003 at 5:43pm
Print Post Print Post  
Ok, Who wrote the sample merge letters?

Whats with the Boz Scaggs,Shocked are you trying to see how old your Sesame user base is or are you just tryinng to make us feel old. Wink

Some of us even remember when Boz Scaggs was a member of The Steve Miller Band.  Now we are talking old. Grin
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: Printing - Using Word Merge
Reply #2 - Dec 30th, 2003 at 9:14pm
Print Post Print Post  
I can use the Word merge feature with

// Fields available for merging
     F[1] = "patientid";        F[2] = "itemextamt";     F[3] = "lastname"
     F[4] = "homephone" ;        F[5] = "workphone";     F[6] = "Homestreet"
     F[7] = "HomeState";        F[8] = "homeZip" ;     F[9] = "homecity"
     F[10]= "Emailhome";        F[11]= "insconameprimary"; F[12]= "insconamesec"
     F[13]= "DateEntered"; F[14]= "cellphone";  F[15]= "insuredemployer"

Successfully only with the fields that are in the primary database I am running the command button logic from.  It does not return the values from fields that are on subforms.

Do I need to specify those fields some special way? Is there something I am overlooking? I have not read anything in the manuals or wordmerge.doc document explaining this.

Thanks
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
billgordon
Junior Member
**
Offline


No personal text

Posts: 61
Joined: Dec 31st, 2003
Re: Printing - Using Word Merge
Reply #3 - Dec 31st, 2003 at 2:15pm
Print Post Print Post  
Quote:
only with the fields that are in the primary database I am running the command button logic from.  It does not return the values from fields that are on subforms.

Do I need to specify those fields some special way?


BOBSCOTT

Have you found a solution yet?
What version of Word are you using?

I have Word from Office XP and it is not even close to the wordmerge directions starting on page 12

This sesame stuff is a lot harder then it looks - hugh
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Printing - Using Word Merge
Reply #4 - Dec 31st, 2003 at 2:50pm
Print Post Print Post  
Robert,

I don't know the WordMerge application very well, but I do know that you'd definitely need to adjust the code to access the subform elements. You can't just reference them by name because:

1. There is no element by that name on the main form. Without using the subform access functions (as you have been doing in other areas), Sesame does not know where to look for these elements.

2. You may have more than one subrecord. Sesame will not just "know" from which subrecord to get the values.

I'm certain that WordMerge can be altered to work with subforms, but it is not going to work without a chunk of code to iterate throught he subrecords.  How that code looks depends on what you are trying to do. It will be different if you want to make one Merge letter with all the subrecords on it, than if you want one Merge letter for each subrecord.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: Printing - Using Word Merge
Reply #5 - Dec 31st, 2003 at 2:54pm
Print Post Print Post  
Quote:
Have you found a solution yet?


No not yet, If Sesame does not already have a mechanism in place I believe (hope) I can think of a number of ways to update fields from the other databases for printing purposes. I have not gotten too caught up in any one feature of Sesame yet. I have been trying to become basically competent with all of Sesames features before I zero in on any particular task. I am figuring that it is best to look at all of Sesames capabilities before I try to re-invent anything it might already do for me.


Quote:
What version of Word are you using?

I have Word from Office XP and it is not even close to the wordmerge directions starting on page 12


I have office XP also running on XP pro. The directory it uses is office10. It is different from the documentation. I have the basics down I think, If you need help let me know I can either post the steps I followed on this forum or E-Mail you with them.

Quote:
This sesame stuff is a lot harder then it looks - hugh


I do not think I would say harder. Sesame just offers so much more. I think like anything new to us, it can be overwhelming at times. I am optimistically hopeful that in time Sesame will be as friendly to us as Q&A has been.

I for one have found the people behind Lantica  are more helpful and are a lot more friendly and caring then Symantec ever was.  Smiley
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
Gordon_M
Member
Members
*
Offline


No personal text

Posts: 12
Location: Washington DC
Joined: Nov 23rd, 2002
Re: Printing - Using Word Merge
Reply #6 - Jan 1st, 2004 at 6:50pm
Print Post Print Post  
[quote author=billgordon
I have Word from Office XP and it is not even close to the wordmerge directions starting on page 12

- hugh [/quote]
I opened the document to p 12 to see what specifically you were referint to. That is where the instructions to create a mail merge letter begin, and that is very dependant on the version of Word.
I find "The easiest way to make additional Word merge documents is to open one of the sample files, edit it, and use File, Save As to give it a new name." (from the README.txt)
Shouldn't matter much what version of Word you have.
  
Back to top
 
IP Logged
 
PeterG
Member
*
Offline


No personal text

Posts: 11
Joined: Jan 19th, 2004
Re: Printing - Using Word Merge
Reply #7 - Jan 27th, 2004 at 9:25am
Print Post Print Post  
If WordMerge isn't easily used with subforms, what's a good way to get subform information (line items and prices) to print on a Word doc (Invoice)?  Thanks
  
Back to top
 
IP Logged
 
Gordon_M
Member
Members
*
Offline


No personal text

Posts: 12
Location: Washington DC
Joined: Nov 23rd, 2002
Re: Printing - Using Word Merge
Reply #8 - Jan 27th, 2004 at 2:18pm
Print Post Print Post  
Quote:
If WordMerge isn't easily used with subforms, what's a good way to get subform information (line items and prices) to print on a Word doc (Invoice)?  Thanks

Peter,
The simplest thing to do is probably to print the form, or create a separate form within Sesame that looks like the invoice with a line item section big enough for your largest list of items. Then print that form. (This assumes correction of the printing problems some users are having with some printers. Release 1.0.1 is due "very, very soon.")
  
Back to top
 
IP Logged