Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Complex forms software to replace Delrina FF
Message
De
19/11/2004 09:39:11
 
 
À
17/11/2004 14:36:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00931761
Message ID:
00962960
Vues:
39
Hi again,

Thanks for the heads up on the Reader not displaying the data even though the full version was used to save the data with the pdf - the latest thought here was to buy full versions for the 2 people who do the "final" work on the app and then they could save it, drag it into Notes and then everyone else in the company who might need to open it (about 25 people) could just use the reader....Adobe has surely worked hard to get people to buy their product! Will have to test our Amyuni driver to see if we will have to go that route - or see how much Approval costs for everyone here (but having said that, if we ever start emailing the pdf to a 3rd party where they print it out and send it back, if it is "all Adobe" and they only have the reader, then they still would not see the data...ugh...

Oh, I posted a message in one of the Adobe forums and a couple of people said that the Version 7 product would not be any different from Version 6 in regards to saving data with the pdf - you can comment etc, but no data fields are saved - one guy went on quite a rant about how Adobe should change this so that users who use it for filling out gov't forms can do more than just print or submit via the web - and after thinking about it, he has a point - imagine filling out a 5 page detailed document and then your computer crashes or you just want to save it to come back to later and you find that nothing you typed in is there - that would be time for a rant!

Anyhow, to move on...I was reviewing the code below as the next step and was not exactly sure what the code was trying to accomplish - would you mind giving me a few sentances to describe what you are trying to do - are you firing up Adobe reader in the background and auto-printing the document and then closing Reader and somehow suspending VFP processing the whole time? Here is the code again (or at least the main ExeWait() function (I did not paste the other functions as I figured you probably know this fairly well).

Thanks for your help!
Albert

PROCEDURE ExeWait (lcApp, lcCmdLine, lcdir)

PRIVATE lntimes
lntimes = 0
IF _VFP.AUTOYIELD = .F.
llsetback = .T.
ELSE
llsetback = .F.
ENDIF
_VFP.AUTOYIELD = .T.
PRIVATE lnclosepass
lnclosepass = 0
#DEFINE INFINITE 0xFFFFFFFF
LOCAL lcStartupInfo, lcProcInfo, hProcess, ;
lnPrio, lnIBelieve1
lnIBelieve1 = 1 && Don't remember what that was
lnPrio = 32 && Priority of Process=Normal
lcStartupInfo = CHR(68) + REPLI(CHR(0), 67)
lcProcInfo = REPLI(CHR(0), 16)
IF CreateProcess(0, m.lcApp+" "+m.lcCmdLine+CHR(0), 0,0,;
m.lnIBelieve1, m.lnPrio,;
0, 0, @lcStartupInfo, @lcProcInfo) <> 0
* process and thread handles returned in ProcInfo structure
hProcess = buf2dword(SUBSTR(lcProcInfo, 1,4))
hThread = buf2dword(SUBSTR(lcProcInfo, 5,4))
* waiting until the termination of the program
DOEVENTS
IF !li_acordview && printing only
DO stopadobe
ELSE
DO WHILE .T.
exitcode = 0 && initialize return value to 0
= GetExitCodeProcess(hProcess, @exitcode) && try to obtain process exit code
IF exitcode # 259 && not still busy
EXIT && fall out of loop
ELSE
*--Attempt to close the password window up to 3 times
IF dopass .and. lnclosepass < 3 .AND. PassWin('Password')
= Sleep (1000) && wait 1 seconds
lnclosepass = lnclosepass + 1
ENDIF
ENDIF
= Sleep (100) && wait .1 seconds
ENDDO
ENDIF
= CloseHandle(hThread)
= CloseHandle(hProcess)
ELSE
IF llsetback
_VFP.AUTOYIELD = .F.
ENDIF
RETURN .F.
ENDIF
IF llsetback
_VFP.AUTOYIELD = .F.
ENDIF
RETURN
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform