Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print Word Document
Message
De
23/03/1998 04:38:30
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
22/03/1998 00:04:47
Haji Rashidi Haji Abd Hathi
Information Techonology & State Store
Bandar Seri Begawan, Brunei
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00086240
Message ID:
00086318
Vues:
22
>Is there a way to print a word document within Visual Foxpro from the data entry form ?
>
>The Visual Foxpro should pass some of the data being entered to the word document.
>
>Thanks in advanced.
>
>Regards
>Haji Rashidi

This is the basic word printing.
oWord=createobject("word.basic")
WITH oWord
    .filenew(cTemplateDoc)
    .FILEPRINT(1,1,0,cFileToprint,,,,,,,,1,,)  && Print a ready file
    .fileexit(2)        && Close word - no save
endwith
release oWord
And another :
oWord=createobject("word.basic")
WITH oWord
    .filenewdefault()
    .insert("Some text ...")
    .fileprint()
    .fileexit(2)        && Close word - no save
endwith
release oWord
For more detailed examples and mailmerge, see KB\FAQ\Win32api section, "interacting word using word basic".
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform