Create a different work folder for each operator and it will fix the problem
Look at getenv()
Believe that is the command as its been awhile
Try it on 2 or 3 users and if it works, like I believe it will, you can
adapt it to the rest.
Set a machine name in their autoexec or however windows does it now.
As an example.
MN = "VBIERSCH"
Then, in your code
Workfolder = Getenv("MN")
Do case
Case workfolder = "VBIERSCH"
Set command
Otherwise
Endcase
Used to run into this problem a lot under citrix, but the fix applies to
many operating systems running foxpro
-----Original Message-----
From: ProFox [mailto:[email protected]] On Behalf Of Jeff Johnson
Sent: Saturday, September 21, 2013 8:48 AM
To: [email protected]
Subject: SET FILTER TO
I have a project that I did not develop, but I am maintaining it. The code
in question does this:
SET FILTER TO invoice = 'the one I want to print'
lcfrx2any = 'FRX2Any'
SET CLASSLIB to &lcfrx2any in frx2any.app alias frx2any lofile =
CREATEOBJECT('frx2any.pdffile') IF TYPE('lofile') = 'O'
loFile.Unlock("my frx2any key")
loFile.cExportFileName = lcfilename
loFile.cSaveFolder = lctempfolder
loFile.lDisplayStatus = .t.
* always go directly to pdf
loFile.nOutPutType = 4
loFile.lTranslateFontStyle = .t.
loFile.nCodePage = 1252
loFile.Save(pr_form)
loFile.Release()
lcreturn = lctempfolder + (lcfilename) + '.pdf'
ELSE
lcreturn = lctempfolder + (lcfilename) + '.pdf' + ' could not be
created'
MESSAGEBOX(lcreturn, 64, 'Print to PDF')
lcreturn = 'CANCEL'
ENDIF
SET FILTER TO
It counts up to 100% and then hangs before going to the next step.
With one user on a test server it goes right to the next step.
On this server there could be as many as 50 users.
Can the SET FILTER TO be the problem, or is frx2any doing something after
the 100%?
TIA
--
Jeff
---------------
Jeff Johnson
[email protected]
(623) 582-0323
www.san-dc.com
www.arelationshipmanager.com
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.