General XMetaL Discussion
JH December 17, 2009 at 6:32 pm
xmetal and data extractionDecember 17, 2009 at 6:32 pmParticipants 0Replies 1Last Activity 13 years, 1 month ago
I have an application form in microsoft word and would like to extract the fields to analyse the data (in SPSS). Can xmetal do this? Can I load an existing form in xmetal from WOrd or would I have to receate it? The form has about 500 fields some text, some numeric.
Joe HayDerek Read December 17, 2009 at 8:10 pm
Reply to: xmetal and data extractionDecember 17, 2009 at 8:10 pm
Are you asking if you can use a form created for use with Word inside XMetaL?
You can't do this directly as the forms XMetaL Author and XMAX support (either as dialogs or embedded within XML documents) are proprietary “XFT” forms (= XMetaL Forms Toolkit) that are created with the form design tool that comes with XMetaL Developer.
There is a long shot that you could reuse these, but I doubt it.
An XFT form can host ActiveX controls, so for example, you can embed the “webbrowser control” version of Internet Explorer, the Windows “calendar control” or any other Microsoft or proper 3rd party ActiveX control that has a GUI inside an XFT form. So, if there is a way to run your form via some ActiveX control (perhaps part of Word or Office) then it might be possible to embed that control into an XFT form and have the control render your Word form.
It is also possible to host ActiveX controls directly within an XML document inside XMetaL in a similar way. The limiting factor here (again) is that you would need to have an ActiveX control capable of rendering your Word form.
Having said that, both of these solutions would only get you as far as rendering the form. How it would interact with XMetaL would require additional coding (if possible). Your form would probably need to be rewritten to either interact with the XFT it is embedded within (which in turn can interact with the XML document via XMetaL APIs) or directly through XMetaL APIs.
- You must be logged in to reply to this topic.