Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   Crossplatform   Server (Not)   Client   Components   Old   Guides
New in version: 5.0   5.1   5.2   5.3   5.4   6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1    Statistic  

WebView.Screenshot

Takes a screenshot of the area used by the webviewer.

Component: WebView
Version: 3.0
Mac OS X: Yes
Windows: Yes
Server: No
FileMaker Cloud: No

MBS( "WebView.Screenshot"; WebViewerRef { ; ImageType; Filename } )

Parameters

Parameter Description Example value
WebViewerRef Either the Web Viewer Object Name or the Web Viewer ID as returned by "WebView.FindByName" function.
ImageType Optional
The type of image to return. Either JPEG, PNG, GIF or BMP. Default is JPEG.
"JPEG"
Filename Optional
The filename to use for the picture. Default is "image" with the extension matching the image type.
"test.jpg"

Result

Returns image for storing in container.

Description

Takes a screenshot of the area used by the webviewer.
The plugin offers several methods. WebView.RenderImage works fine on Mac, but not always on Windows. WebView.RenderPDF is Mac only. So especially for websites with flash or other content which can't be printed, the screenshot method is the best one.
(older versions before 5.2 would have an unused extra parameter before ImageType)
Windows only supports JPEG as type.

Examples

Store screenshot in container:

Set Variable [$image; Value:MBS("WebView.Screenshot"; "web")]
Set Field [Anlagen::My Container; $image]

See also


WebView.RunJavaScriptReturnTitle   -   WebView.SearchText

Feedback: Report problem or ask question.




Links
MBS Realbasic Plugins - Pfarrgemeinde Messdiener Nickenich