Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Duplex Printing Using OLE and Word 97
Message
From
23/04/1998 13:17:08
Regine Rosewich
Aurum Ges.F.Untern.Ber.U.Integration Mbh
Freiamt, Germany
 
 
To
23/04/1998 13:05:24
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00094300
Message ID:
00094361
Views:
22
>Regine,
>
>Thanks for the response. I should have said that this application is in VFP 5.0a. If VFP 5.0a uses dot files, I'm not aware of it and would need some additional help with it.
>
>Thanks,
>Randy
>
>>>I have a 2 page Word document that my user wants printed front and back. I have searched the MSDN library, Knowledge Base, and every other resource I could think of. It seems that I remember seeing a thread on UT once about this, but I couldn't find it either. Any help would be greatly appreciated.
>>>
>>>TIA
>>>
>>>Randy
>>
>>Hi Randy,
>>
>>as far as I know, you have to make use of a *.dot file that is customized to use the duplex facility of a printer. The use of the printer is customized in the page-setup of the *.dot file
>>
>>Regine

Hi again Randy,

the following code is the starting sequence of a method I use to write data to WORD97 with my VFP5.0a. The *.dot file this method uses (here called format_name) either comes with a PARAMETERS statement or is extracted from a table. As you can use exactly the VisualBasic for WORD97 commands in VFP5.0a, it is very easy to integrate WORD into VFP applications.

lcDotFile = lcDirDotFiles + format_name + ".dot"
oword = CREATEOBJECT("Word.Application")
lcDotFile = lcDirDotFiles + format_name + ".dot"
WITH oword
.Documents.ADD(lcDotFile)
.
ENDWITH

Good Luck
********************************
VFP, VB, VC++ Programmers
Makers of the ==>TheMiL<== engine
for intra- and internet data processing
********************************
Previous
Reply
Map
View

Click here to load this message in the networking platform