Normal Topic Temporary.rtf overwrite issues...? (Read 1059 times)
Cliff
Full Member
***
Offline



Posts: 126
Location: New Hampshire
Joined: May 5th, 2006
Temporary.rtf overwrite issues...?
Jun 10th, 2010 at 7:50pm
Print Post Print Post  
With reference to my last post regarding this issue on: 03/11/10

We 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","","","","","")}

We had a problem where the temporary.rtf file would remain available and Sesame would post an error saying so thereby halting the print process.  We fixed that by adding the recommended code:

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

Thank you Ray!  Wink

However, a new problem has cropped up and a in the midst of printing a pop up will halt the print process stating that "temporary.rtf" exists do you want to overwrite the file.  This does not ruin the batch print process but does interrupt it till the user clicks "yes" (by all means, please do and so forth).

As always...any and all help is heartily appreciated...

Thanks you,

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: Temporary.rtf overwrite issues...?
Reply #1 - Jun 10th, 2010 at 9:00pm
Print Post Print Post  
Hello Cliff,

Are there several MergeFilePrint commands in that routine that run one right after another?

-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: Temporary.rtf overwrite issues...?
Reply #2 - Jun 17th, 2010 at 6:32pm
Print Post Print Post  
Hi Ray, yes...that is the case, we have approximately 400 MergeFilePrint docuements that are listed in this single routine and any number of them can be selected.

Sorry about the delay in response to your question I am here on a part time basis...

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: Temporary.rtf overwrite issues...?
Reply #3 - Jun 17th, 2010 at 6:56pm
Print Post Print Post  
Hello Cliff,

It could be a timing issue.  Meaning the document is in the stages of printing and we move on to the next one. As a test try putting a Loiter(1000) statement after each MergeFilePrint() call like such.


Code
Select All
if CA0001 0306 = "T" then {MergeFilePrint("Z:\SESAME\DATA\FORMS\CA0001 0306.rtf","rtf","","","","",""); Loiter(1000);}   



-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: Temporary.rtf overwrite issues...?
Reply #4 - Jun 22nd, 2010 at 5:36pm
Print Post Print Post  
Hi Ray: Thank you kindly.  I'll give this a whirl and feedback with our results...
Again...thanks...
Cliff Normand
  
Back to top
 
IP Logged
 
Cliff
Full Member
***
Offline



Posts: 126
Location: New Hampshire
Joined: May 5th, 2006
Re: Temporary.rtf overwrite issues...?
Reply #5 - Aug 12th, 2010 at 1:09pm
Print Post Print Post  
Hi Ray:
Don't know if you are still viewing this but I made the changes as recommended and no joy.  This isn't a crisis but it is annoying one of the users.  When you have the time...
As always, I certainly do appreciate your help.
Thank you,
Cliff
  
Back to top
 
IP Logged