Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Skipping and dups when printing fillable pdfs
Message
 
 
To
22/03/2010 13:36:32
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:
01456211
Views:
87
You should check if operation completed successfully
lnBytesWritten = STRTOFILE(lcstring, trim(goapp.cpathshared) + "w2\" + ALLTRIM(lcyear) + '\8655out.xfdf', 0)

IF lnBytesWritten = 0
  * Cannot write to the file
  * Do whatever
  ...
ENDIF
>No. Here's the code.
>
>* Update the xfdf file.
>lccurdir = CURDIR()
>CD trim(goapp.cpathshared) + "w2\" + ALLTRIM(lcyear)
>DELETE file '8655out.xfdf'
>CD &lccurdir
>
>STRTOFILE(lcstring, trim(goapp.cpathshared) + "w2\" + ALLTRIM(lcyear) + '\8655out.xfdf', 0)
>
>lcxfdf = trim(goapp.cpathshared) + "w2\" + ALLTRIM(lcyear) + '\8655out.xfdf'
>
>* Print the populated form.
>SET CONSOLE OFF
>SET HEADINGS OFF
>
>thisform.printpdf(lcxfdf)
>
>* Wait 10 seconds.
> WAIT 'Printing the 8655 form...' window timeout 10
> WAIT CLEAR
>
>SET HEADINGS ON
>SET CONSOLE ON
>
>
>>When you write back to the .xfdf file, do you check if operation completed successfully or failed?
>>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform