Normal Topic [Solved] Must Hard-Code Filenames in Word Merge? (Read 966 times)
nateboone
Junior Member
**
Offline



Posts: 54
Joined: Dec 19th, 2006
[Solved] Must Hard-Code Filenames in Word Merge?
Dec 16th, 2007 at 2:16am
Print Post Print Post  
It appears that to use Word Merge I need to hard-code all my word document file names into the programming, which is relatively inflexible.  Since I will be regularly changing the word files I am going to be printing from, are there any bright ideas about how to do this without reprogramming each time?

Thanks!
« Last Edit: Dec 18th, 2007 at 1:11am by Hammer »  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Must Hard-Code Filenames in Word Merge?
Reply #1 - Dec 16th, 2007 at 2:37am
Print Post Print Post  
Variables?
Picklists?

There are a number of options, but we need you to be a bit more specific. How do you want to specify which files to use?
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
nateboone
Junior Member
**
Offline



Posts: 54
Joined: Dec 19th, 2006
Re: Must Hard-Code Filenames in Word Merge?
Reply #2 - Dec 16th, 2007 at 4:52am
Print Post Print Post  
I'm sorry, but I'm not really sure...

Basically I'm looking for the simplest way to modify the Word Merge list of documents that I am importing the Sesame info into.

Is there anyway to do this without having to go into Sesame Designer?

Can I set up programming to automatically recognize the contents of C:/Sesame/Docs (or my equivalent path) and simply list all of those documents in that folder as potential documents to merge into?

I seasonally try to help my parents by trying to toy with any programming challenges they have with Sesame, so I don't really know what I'm doing, but they will really be at a loss if I don't simplify it as much as possible for them when I leave.
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Must Hard-Code Filenames in Word Merge?
Reply #3 - Dec 16th, 2007 at 1:53pm
Print Post Print Post  
Yes, you can do these things. Are you using 1.x or 2.0?
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
nateboone
Junior Member
**
Offline



Posts: 54
Joined: Dec 19th, 2006
Re: Must Hard-Code Filenames in Word Merge?
Reply #4 - Dec 16th, 2007 at 8:57pm
Print Post Print Post  
I'm using 2.0  Smiley
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Must Hard-Code Filenames in Word Merge?
Reply #5 - Dec 17th, 2007 at 6:53pm
Print Post Print Post  
Check out the Operating System commands on page 114 of the 2.0 Sesame Programming Guide. You can use these to list the files in a directory to manage yourself or you can show a file dialog so the user can pick a document.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
nateboone
Junior Member
**
Offline



Posts: 54
Joined: Dec 19th, 2006
Re: Must Hard-Code Filenames in Word Merge?
Reply #6 - Dec 18th, 2007 at 1:08am
Print Post Print Post  
Thanks!

@LocalListDirectory works like a charm in this specific application, so that it will list the contents of a folder potential Word Merge documents rather than hard-coding it.  It's very possible that I'm working with a version of Word Merge that is not the most updated, but ya'll should think about incorporating this into the standard programming if you haven't already.
  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: [Solved] Must Hard-Code Filenames in Word Merg
Reply #7 - Dec 18th, 2007 at 2:17pm
Print Post Print Post  
I believe you have an older version of the WordMerge programming. The version of WordMerge that is shipped with Sesame 2 uses the Dir command to list all the Doc files in a particular directory so that the Doc names do not have to be hardcoded. So in a way something like what you are doing has already been implemented.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged