Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fillable PDF Forms in VFP Forms
Message
De
17/08/2004 13:47:49
 
 
À
17/08/2004 12:25:29
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00920112
Message ID:
00933880
Vues:
40
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"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform