Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Open a Word document in a Form
Message
De
30/04/1998 02:47:43
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00095853
Message ID:
00095873
Vues:
27
>Cetin,
> thanks for advice, I look always but there are only examples to create a NEW document in a form. Can you send me a simple code how to open an existing Word document and show it in a form (without using a general fields).
> Thanks in advance, Boris
Boris,
Without any use (temporary cursor) of gen fields and opening in a VFP form rather than Word own window is rather complicated (if I ever could do it). Instead I use a oleboundcontrol bound to a gen field in a cursor :
* A button click
create cursor tcHolder (wdoc g)
append blank
append general wdoc from myexistingdoc link
thisform.addobject("oWdocument","OleBoundControl")
with thisform.oWdocument
  .controlsource="tcHolder.oWdoc"
  .top = 1
  .left = 1
  .height = thisform.height - 2
  .width  = thisform.width - 2
  .visible = .t.
endwith
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