Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Skipping and dups when printing fillable pdfs
Message
De
25/03/2010 14:51:02
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01456159
Message ID:
01457245
Vues:
43
Then I guess it will work. I appreciate your help. I wrote the code as follows:
* Print the pdf.
llprintpdf = thisform.printpdf(lcxfdf)
IF !llprintpdf 
  * Cannot print the file.
	SELECT(lnalias)
	RETURN .f.
ENDIF

* Wait 12 seconds.
WAIT 'Printing the 8655 form...' window timeout 12
WAIT CLEAR 
	 
lnfilehandle = -1
DO while lnfilehandle == -1
   * Are we finished printing?
   * If we're still printing, we won't be able to open the file r/w.
   * If we're done printing, we can open the file r/w and we will get a reference back to it,
   * the file handle.
   	   
   * Try to open the file open read/write.
   lnfilehandle = FOPEN(lcxfdf,12)  
ENDDO 
   
* Close the file and go.
=FCLOSE(lnfilehandle)  
>>The application prints a file.
>>
>> If I try to open a file read/write and its being printed, will I get a handle back
>>lnfilehandle = FOPEN(lcxfdf,12) or will I get -1 back?
>>
>
>I think you should get -1 while it's printed.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform