Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fillable PDF Forms in VFP Forms
Message
From
17/08/2004 13:47:49
 
 
To
17/08/2004 12:25:29
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00920112
Message ID:
00933880
Views:
41
Does the pdf viewer allow you to edit the fields when viewing (like Adobe Reader does) once the fields are populated using your method below? In other words, once you stuff the values, if the user edits the values on the pdf form (instead of in your app) then can you capture the changes?

>Ken,
>What I am doing, at this point, is strickly on local machines and peer to peer networks. That aside, I am not using XML or FDF. In Amyumi, each field is an object which can have its text set directly. The code looks something like this:
>
>#DEFINE acCommandToolRunDocument 53776
>#DEFINE acReportStateRun 0
>#DEFINE acReportStateDesign 1
>#DEFINE acReportStateLoading 2
>
>PDFviewer = CREATEOBJECT("PDFCreactiveX.PDFCreactiveX")
>
>cFile=TRIM(vpdf.pdfname ) && get the pdf file and open it
>cfile=ADDBS(oapp.masterexepath)+'pdf\'+cfile
>pdfviewer.Open(cfile,'')
>
>sele pdfstuff
>
>PDFviewer.currentpage = 1
>PDFviewer.reportstate = acReportStateDesign
>
>scan
> * this would be inside a scan of the pdfstuff table for this particular pdf document
> * pdf field name from the pdfstuff table
> cfieldname=ALLTRIM(pdfstuff.fieldname)
> IF VARTYPE(tres) <>'U'
> * res holds the value that we want to print in this field
> PDFviewer.ObjectAttributeStr(cfieldname, "Text", tres)
> endif
>endscan
>
> * when finished with the scan
>PDFviewer.DoCommandTool(acCommandToolRunDocument)
>pdfviewer.ScaleToPrinter = 3
> * print the document to the selected printer
>pdfviewer.Print(this.genericprinter, 1)
>
>This is working fine but we are having some problems with Brother printers. So far we have been able to fix these by installing an HP III driver.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform