Platforms to show: All Mac Windows Linux Cross-Platform
Back to IEDocumentMBS class.
IEDocumentMBS.CallFunction(FunctionName as string, paramArray params as variant) as variant
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 20.0 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Returns result as variant.
You can pass as many parameters as needed.
Our plugin converts Xojo data types to JavaScript data types like boolean, number, text or NULL. This could be extended in future to convert arrays, too.
FunctionName should be the name of a global function defined in JavaScript.
See also:
IEDocumentMBS.CallFunction(FunctionName as string, params() as variant) as variant
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 20.0 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Returns result as variant.
You can pass parameters for the function as array.
Our plugin converts Xojo data types to JavaScript data types like boolean, number, text or NULL. This could be extended in future to convert arrays, too.
FunctionName should be the name of a global function defined in JavaScript.
See also:
IEDocumentMBS.Constructor(DesktopHTMLViewer as DesktopHTMLViewer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 22.0 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
For browser based on Internet Explorer on Windows.
Raises exception on failure.
See also:
IEDocumentMBS.Constructor(HTMLViewer as HTMLViewer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 20.0 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
For browser based on Internet Explorer on Windows.
Raises exception on failure.
See also:
IEDocumentMBS.ContinueFindText(text as string, count as integer, flags as integer, selectText as boolean) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 20.0 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Parameters are the same as for IEFindTextMBS.
IEDocumentMBS.DrawToHDC(HDC as Ptr, PrinterName as string = "")
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 20.0 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
As of Windows Internet Explorer 9, this method is deprecated and should not be used.
Returns true on success and false on failure.
With some printers, running DrawToDC may cause problems. You can ensure that DrawToDC works properly on all printers by running SetDocumentPrinter method first, and then passing the modified device context to DrawToDC. The plugin calls SetDocumentPrinter for you when you provide a printer name.
IEDocumentMBS.Evaluate(expression as string) as variant
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 20.0 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
In contrast to IEWindowMBS.RunJavaScript this function returns the result on Windows, but needs IE 9 or newer.
Our plugin converts Xojo data types to JavaScript data types like boolean, number, text or NULL. This could be extended in future to convert arrays, too.
IEDocumentMBS.FindText(text as string, count as integer, flags as integer, selectText as boolean) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 20.0 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
text: the string that specifies the text to find.
count: long that specifies the number of characters to search from the starting point of the range. A positive integer indicates a forward search; a negative integer indicates a backward search.
Flags: integer that specifies one or more of the following flags to indicate the type of search:
0 | Default. Match partial words. |
1 | Match backwards. |
2 | Match whole words only. |
4 | Match case. |
131072 | Match bytes. |
536870912 | Match diacritical marks. |
1073741824 | Match Kashida character. |
2147483648 | Match AlefHamza character. |
Returns true: The search text was found.
Returns false: The search text was not found.
IEDocumentMBS.Frames as IEWindowMBS()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 21.0 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
MBS Plugin will return the window objects for each frame as an array.
IEDocumentMBS.GetTextArea(FormName as String, FieldName as String) as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 20.0 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
FormName can be "" to look for any field with given name.
Raises exception if field is not found.
Returns text from textarea.
IEDocumentMBS.HTMLText as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 20.0 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Improved in plugin version 12.2 to return better HTML text. This is the html generated from current web content and not the page we originally loaded. So this works with Editable property.
Returns "" on any error.
IEDocumentMBS.Image as picture
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 20.0 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
You may want to resize the htmlviewer to get a picture without scrollbars. (See example projects)
You may need to call ClearFocus as it seems like if the focus is on the htmlviewer it does not draw itself in our picture.
IEDocumentMBS.LoadHTML(HTMLText as string)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 20.0 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Does not use a temp file like Xojo's built in method.
Returns true on success.
On Windows you may need to reset webviewer before or load "about:blank" to initialize the webviewer by Xojo (or Xojo).
IEDocumentMBS.PrintPreview as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 20.0 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Returns true on success. Returns false if function is not supported.
The function returns directly while the preview dialog is still running.
IEDocumentMBS.Reload(Force as boolean = false)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 20.0 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Boolean that specifies one of the following possible values:
False: Default. Reloads the document from the cache.
True: Reloads the document from the server.
IEDocumentMBS.SetTextArea(FormName as String, FieldName as String, Value as String) as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 20.0 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
FormName can be "" to look for any field with given name.
Raises exception if field is not found.
Returns true if text is set or false on failure.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | HTMLViewer Win | MBS Win Plugin | 20.0 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
Asks Internet Explorer for a selection of the whole document and asks selection about the text content.
Returns "" on any error.
The items on this page are in the following plugins: MBS Win Plugin.