Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Open a Word document in a Form
Message
From
30/04/1998 02:47:43
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00095853
Message ID:
00095873
Views:
26
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform