Information générale
Catégorie:
COM/DCOM et OLE Automation
If FRX is not what you wish, then you could use Word Automation inserting and formatting text from fields as needed. Something like:
oWord = CREATEOBJECT("Word.Application")
oWord.documents.add()
with oWord.activedocument.content
lnstart=.Range.Start
.insertafter(table.field)
lnend=.Range.End
with .RANGE(lnstart,lnend).FONT
.NAME = "Courier New"
.bold = .T.
.SIZE = 14
endwith
....
>Hi all
>
>I would like to write a letter in Word from VFP. In VFP data I have the required fields filled in. From these fields I have to wrap it in standard text and create a letter from it. Please note: This is not mail merge and the user should be able to modify the file as required after the basic creation is made.
>
>I have studied FRX2Word but it relies on FRXs. I just want to send text to word (maybe using .dot files for basic layout that the user might want) and specify that the text being sent is Bold, Underline, Centered, etc.
>
>Please advise.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement