Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy content from A.Doc to B.Doc
Message
From
01/09/2008 02:30:17
 
 
To
01/09/2008 02:18:57
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01343743
Message ID:
01343745
Views:
16
>Hi everyone,
>
>My program as below, but got error.
>
>WORD_FILE = CREATEOBJECT("Word.application")
>WITH WORD_FILE
> .DOCUMENTS.OPEN( ( "C:\A.DOC" )
> MMCONTENT = .DOCUMENTS.CONTENT < ERROR
> .DOCUMENTS.CLOSE()
> .DOCUMENTS.OPEN( ( "C:\B.DOC" )
> .DOCUMENTS.CONTENT = MMCONTENT
> .DOCUMENTS.SAVE()
>ENDWITH
>
>Why i got error in .DOCUMENTS.CONTENT ???

Documents is a container.
MMCONTENT	= .Documents(1).content
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform