Normal Topic merge to external wp bt no .txt file created? (Read 1122 times)
digimom1962
Junior Member
**
Offline


Natalie Gann

Posts: 92
Location: here
Joined: Nov 26th, 2004
merge to external wp bt no .txt file created?
Jun 24th, 2005 at 10:25pm
Print Post Print Post  
I typed in the sample programing from the original programming manual starting on pg 224.  It goes as far as opening word (yea!) but does not create the customer.txt file it needs to draw on to print, (as far as I can see). I do not even see HOW it is suppose to do that.

I can merge manually but the users can not do that for every ticket or letter.

Maybe I am tired and just missed something but I have gone over it about 50 times and it still eludes me. 

Anyone have mercy?
  

So much time and so little to do . . . strike that, reverse it.
Back to top
YIM YIM  
IP Logged
 
proudpoppy
Full Member
Members
***
Offline


Do What ??

Posts: 420
Location: South Carolina
Joined: Apr 7th, 2004
Re: merge to external wp bt no .txt file created?
Reply #1 - Jun 26th, 2005 at 3:13pm
Print Post Print Post  
  
Back to top
 
IP Logged
 
digimom1962
Junior Member
**
Offline


Natalie Gann

Posts: 92
Location: here
Joined: Nov 26th, 2004
Re: merge to external wp bt no .txt file created?
Reply #2 - Jul 1st, 2005 at 1:45pm
Print Post Print Post  
Thanx alot for the reply. I am only in here once a week so just got the message. I ran several searchs before posting and probably overlooked  the message you gave me the link to because much of the programing appears similar to what I copied out of the book. I will print it and go over it though because Mr. Scott always has good suggestions.

I think I have found a work-around but that still needs to be tested. 

It was just that the manual made it look like just clicking on the merge button created the customer.txt file but, in my case, it did not. I just ran a regular merge to create the file & I think it will be ok from there. Like I said, still need to test.

Grin
  

So much time and so little to do . . . strike that, reverse it.
Back to top
YIM YIM  
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: merge to external wp bt no .txt file created?
Reply #3 - Jul 1st, 2005 at 3:35pm
Print Post Print Post  
Hello Natalie,

If you manually created Customer.txt then the word merge is only going to use the data that was in there when Customer.txt was created. If the Programming could not create the file in the first place then it probably will not be able to write new data out to it.

In your first post you said you did not see how the programming was making the customer.txt file. This is done in two places. Right now we will focus on the first place. The first place is on page 229 of the Sesame 1.0 Programming Manual. This is the code that will run if you choose current record only.

A little over halfway down the page you will see a comment saying
Code
Select All
//Write the header and data lines to the file 



Below that line there is four lines.
Code
Select All
vFileHandle = fileOpen(vDataPath)
fileSeek(vFileHandle, 0)
fileWriteLn(vFileHandle, vHeader + @NewLine() + vData)
fileClose(vFileHandle)  



The First line opens the customer.txt file. If it does not exist it creates it.
The Second line goes to the very beginning of that file.
The Third Line writes out the data for the current record.
The Fourth line closes the file which commits the changes to disk.
Try putting a WriteLN statement under those four lines to see if the code is running. Something like
Code
Select All
Writeln("It is Alive") 



Does the WriteLn window appear with "It is Alive" in it?

-Ray
  

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


Natalie Gann

Posts: 92
Location: here
Joined: Nov 26th, 2004
Re: merge to external wp bt no .txt file created?
Reply #4 - Jul 1st, 2005 at 5:27pm
Print Post Print Post  
Ray - Yes, It is ALIVE!

It may have created the file before but I just could not find it. (I am using letters on the network drive so I may have done something wierd somewhere. I will delete every file named customer.txt and try it again but it could be a while. I only get to play with Sesame about 1/3 of my time here and I have neglected alot today because I thought I was on a roll . . .)

I will check back later. Sorry for the !*@@%$ time lag when I have to run off to do something else. That is part of the problem I guess.


Final question though, HOW does it know to call it "customer.txt", I was wondering if it was just built into Sesame or where the name came from? I guess I was looking for a place to change the name of the file inside the programing.

Thanx again
~Natalie
  

So much time and so little to do . . . strike that, reverse it.
Back to top
YIM YIM  
IP Logged
 
digimom1962
Junior Member
**
Offline


Natalie Gann

Posts: 92
Location: here
Joined: Nov 26th, 2004
Re: merge to external wp bt no .txt file created?
Reply #5 - Jul 1st, 2005 at 5:34pm
Print Post Print Post  
Tongue found it . . . about 2 inches above the lines you just discussed. DUH!

Now to see if I can get it to create the customer.txt file on the network drive...
  

So much time and so little to do . . . strike that, reverse it.
Back to top
YIM YIM  
IP Logged