Using wordbasic in X# / VO application
Posted: Wed Oct 16, 2019 5:40 am
Hello again,
In my VO app I have used Wordbasic to generate some simple reports for the user in a new Word doc.
I would like to provide the same functionality in my X# application when converted, but can't figure out how to include the Wordbasic library in my project, and then reference it.
I found some docs from MS regarding C#, but 2 days trying to figure this out is making me crazy.
https://docs.microsoft.com/en-us/dotnet ... erty-value
Can anyone please list the steps involved in getting Wordbasic into the X# app and using it?
Maybe there is a better / different way...
In VO I declare it in the window class where I want it: PROTECT oWord AS wordbasic
And then simple stuff in the method.
SELF:oWord:=Wordbasic{}
IF !SELF:oWord:fInit
WarningBox{SELF,"Can't start MS-Word!","If Word is installed on this computer try opening it manually and try again."}:show()
RETURN NIL
ENDIF
SELF:oWord:FileNewDefault()
SELF:oWord:AppShow()
...<etc...>
Thanks!
Jonathan
In my VO app I have used Wordbasic to generate some simple reports for the user in a new Word doc.
I would like to provide the same functionality in my X# application when converted, but can't figure out how to include the Wordbasic library in my project, and then reference it.
I found some docs from MS regarding C#, but 2 days trying to figure this out is making me crazy.
https://docs.microsoft.com/en-us/dotnet ... erty-value
Can anyone please list the steps involved in getting Wordbasic into the X# app and using it?
Maybe there is a better / different way...
In VO I declare it in the window class where I want it: PROTECT oWord AS wordbasic
And then simple stuff in the method.
SELF:oWord:=Wordbasic{}
IF !SELF:oWord:fInit
WarningBox{SELF,"Can't start MS-Word!","If Word is installed on this computer try opening it manually and try again."}:show()
RETURN NIL
ENDIF
SELF:oWord:FileNewDefault()
SELF:oWord:AppShow()
...<etc...>
Thanks!
Jonathan