Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Skipping and dups when printing fillable pdfs
Message
From
25/03/2010 14:51:02
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01456159
Message ID:
01457245
Views:
42
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform