Normal Topic MergeFilePrint problems (Read 494 times)
Cliff
Full Member
***
Offline



Posts: 126
Location: New Hampshire
Joined: May 5th, 2006
MergeFilePrint problems
Mar 11th, 2010 at 3:53pm
Print Post Print Post  
We are using Sesame V.2.5
I have created a table of documents (about 400) that one can select using check boxes.  These are then passed on to a simple routine in a "Print" command button as follows:

if CA0001 0306 = "T" then {MergeFilePrint("Z:\SESAME\DATA\FORMS\CA0001 0306.rtf","rtf","","","","","")}

For whatever reason this will work fine for several days and then stop working unless I delete the instance and reinstall it on another server.  When that iteration fails I then have success moving it back to the original location...

Doesn't make much sense to me at this point...

As always...any and all help is very much appreciated...

Thanks again!

Cliff
  
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: MergeFilePrint problems
Reply #1 - Mar 11th, 2010 at 5:03pm
Print Post Print Post  
Hello Cliff,

One reason MergeFilePrint can fail is if the temporary file is not deleted after the merge is done. Sesame does this automatically but sometimes the operating system will keep it there.

Try adding the following code to your programming and let me know the results.

Code
Select All
If FileExists("temporary.rtf") Then
{
	FileDelete("temporary.rtf")
}
 



-Ray
  

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



Posts: 126
Location: New Hampshire
Joined: May 5th, 2006
Re: MergeFilePrint problems
Reply #2 - Mar 11th, 2010 at 5:10pm
Print Post Print Post  
Bingo!

Thank  you very much!  I can  hardly tell you what a relief it is to know y'all are there to help lend a hand with these things.

Thanks again...

Cliff
  
Back to top
 
IP Logged