Platforms to show: All Mac Windows Linux Cross-Platform

Previous items Next items

HTMLViewer.IENavigatorCookieEnabledMBS as boolean
method, HTMLViewer, MBS REALbasic Win Plugin (WindowsHTMLViewer), class HTMLViewer, Console safe, Plugin version: 7.8, Mac OS X: Does nothing, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Retrieves whether client-side persistent cookies are enabled in the browser.
Notes:
Persistent cookies are those that are stored on the client-side computer.
Example value: "True"

Some examples which use this method:

HTMLViewer.IENavigatorJavaEnabledMBS as boolean
method, HTMLViewer, MBS REALbasic Win Plugin (WindowsHTMLViewer), class HTMLViewer, Console safe, Plugin version: 7.8, Mac OS X: Does nothing, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Returns whether Java is enabled.
Notes: Example value: "True"

Some examples which use this method:

HTMLViewer.IENavigatorOnLineMBS as boolean
method, HTMLViewer, MBS REALbasic Win Plugin (WindowsHTMLViewer), class HTMLViewer, Console safe, Plugin version: 7.8, Mac OS X: Does nothing, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Retrieves a value indicating whether the system is in global offline mode.
Notes:
The user can modify the global offline state by choosing Work Offline from the File menu in Microsoft Internet Explorer version 4.0 or later. This property does not indicate whether the system is connected to the network.

Example value: "True"

Some examples which use this method:

HTMLViewer.IENavigatorUserAgentMBS as string
method, HTMLViewer, MBS REALbasic Win Plugin (WindowsHTMLViewer), class HTMLViewer, Console safe, Plugin version: 7.8, Mac OS X: Does nothing, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Retrieves a string equivalent to the HTTP user-agent request header.
Notes:
The HTTP user-agent request header contains information about compatibility, the browser, and the platform name. For more information about the browser, see the IENavigatorappNameMBS property. For more information about the platform, see the IENavigatorappVersionMBS property.

The IENavigatoruserAgentMBS property dynamically returns a different value depending on the browser and platform versions. For example, Microsoft Internet Explorer 6 returns the following string for Microsoft Windows XP.

Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)

Example value: "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"

Some examples which use this method:

HTMLViewer.IENavigatorUserLanguageMBS as string
method, HTMLViewer, MBS REALbasic Win Plugin (WindowsHTMLViewer), class HTMLViewer, Console safe, Plugin version: 7.8, Mac OS X: Does nothing, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Retrieves the operating system's natural language setting.
Notes: Example value: "de"

Some examples which use this method:

HTMLViewer.IEPrintMBS as boolean
method, HTMLViewer, MBS REALbasic Win Plugin (WindowsHTMLViewer), class HTMLViewer, Console safe, Plugin version: 9.5, Mac OS X: Does nothing, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Opens the normal print dialog for the Internet Explorer.
Notes: Returns false on failure.

Some examples which use this method:

HTMLViewer.IEProtocolMBS as string
method, HTMLViewer, MBS REALbasic Win Plugin (WindowsHTMLViewer), class HTMLViewer, Console safe, Plugin version: 7.8, Mac OS X: Does nothing, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Sets or retrieves the protocol portion of a URL.
Notes: Example value: "HTTP (HyperText Transfer-Protokoll)"

Some examples which use this method:

HTMLViewer.IEReferrerMBS as string
method, HTMLViewer, MBS REALbasic Win Plugin (WindowsHTMLViewer), class HTMLViewer, Console safe, Plugin version: 7.8, Mac OS X: Does nothing, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Gets the URL of the location that referred the user to the current page.
Notes: Example value: "http://www.apple.com/"

Some examples which use this method:

HTMLViewer.IERunJavaScriptMBS(JavaScript as string) as boolean
method, HTMLViewer, MBS REALbasic Win Plugin (WindowsHTMLViewer), class HTMLViewer, Console safe, Plugin version: 7.6, Mac OS X: Does nothing, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Runs a given javascript code.
Example:
// shows current user agent string which the control sends to website
call htmlviewer1.EvaluateJavaScriptMBS("document.title=navigator.userAgent;")
MsgBox htmlviewer1.IETitleMBS

// load a dummy page:
HTMLViewer1.LoadPage "<html><head></head><body></body></html>", nil

// shows an error message because of the navigator having a 6 inside:
call htmlviewer1.IERunJavaScriptMBS("document.title=navig6ator.userAgent;")

// uses try to avoid error message

dim script as string = "document.title=navig6ator.userAgent;"
dim s as string = "try { "+SCRIPT+" } catch(err) {document.title = err.description;}"

call htmlviewer1.IERunJavaScriptMBS(s)
MsgBox HTMLViewer1.IETitleMBS // shows "navig6ator is undefined"

Notes:
Returns true if the javascript code was sent to the browser.
Returns false on any error.

The IE API does not allow to return values from Javascript. So you need to store your result in window.title and access it later using IETitleMBS.

IERunJavaScriptMBS fails if the htmlviewer is empty. You can load a dummy page like above.

Some examples which use this method:

HTMLViewer.IEScrollHeightMBS as integer
method, HTMLViewer, MBS REALbasic Win Plugin (WindowsHTMLViewer), class HTMLViewer, Console safe, Plugin version: 9.5, Mac OS X: Does nothing, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Queries the height of the html viewer content.
Notes: Returns 0 on any error.
HTMLViewer.IEScrollWidthMBS as integer
method, HTMLViewer, MBS REALbasic Win Plugin (WindowsHTMLViewer), class HTMLViewer, Console safe, Plugin version: 9.5, Mac OS X: Does nothing, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Queries the width of the html viewer content.
Notes: Returns 0 on any error.
HTMLViewer.IESecurityMBS as string
method, HTMLViewer, MBS REALbasic Win Plugin (WindowsHTMLViewer), class HTMLViewer, Console safe, Plugin version: 7.8, Mac OS X: Does nothing, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Retrieves the security state.
Notes: Example value: "Für diesen Dokumententyp gibt es kein Sicherheitszertifikat."

Some examples which use this method:

HTMLViewer.IETextMBS as string
method, HTMLViewer, MBS REALbasic Win Plugin (WindowsHTMLViewer), class HTMLViewer, Console safe, Plugin version: 7.7, Mac OS X: Does nothing, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Returns a copy of the text of the current webpage.
Notes: Returns "" on any error.

Some examples which use this method:

HTMLViewer.IETitleMBS as string
method, HTMLViewer, MBS REALbasic Win Plugin (WindowsHTMLViewer), class HTMLViewer, Console safe, Plugin version: 7.8, Mac OS X: Does nothing, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Sets or gets the title of the document.
Notes:
Example value: "Apple"
(Read and Write computed property)

Some examples which use this method:

HTMLViewer.IEToStringMBS as string
method, HTMLViewer, MBS REALbasic Win Plugin (WindowsHTMLViewer), class HTMLViewer, Console safe, Plugin version: 7.8, Mac OS X: Does nothing, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Retrieves a string representation of the object.
Notes: Example value: "[object]"

Some examples which use this method:

HTMLViewer.IEURLMBS as string
method, HTMLViewer, MBS REALbasic Win Plugin (WindowsHTMLViewer), class HTMLViewer, Console safe, Plugin version: 7.8, Mac OS X: Does nothing, Windows: Works, Linux x86: Does nothing, Feedback.

Function: Sets or gets the URL for the current document.
Notes:
Example value: "http://www.apple.com/"
(Read and Write computed property)

Some examples which use this method:

HTMLViewer.InstallWebFrameLoadDelegateMBS(WebFrameLoadDelegate as WebFrameLoadDelegateMBS)
method, HTMLViewer, MBS REALbasic Cocoa Plugin (HTMLViewerDelegate), class HTMLViewer, Plugin version: 7.5, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Installs a WebFrameLoadDelegateMBS to receive events from htmlviewer control.
Notes: You need to keep a reference to this WebFrameLoadDelegateMBS object in the window where the htmlviewer is inside so the class is not destroyed too early.

Some examples which use this method:

HTMLViewer.InstallWebPolicyDelegateMBS(WebPolicyDelegate as WebPolicyDelegateMBS)
method, HTMLViewer, MBS REALbasic Cocoa Plugin (HTMLViewerDelegate), class HTMLViewer, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Installs a WebPolicyDelegateMBS to receive events from htmlviewer control.
Notes: You need to keep a reference to this WebPolicyDelegateMBS object in the window where the htmlviewer is inside so the class is not destroyed too early.
HTMLViewer.InstallWebResourceLoadDelegateMBS(WebResourceLoadDelegate as WebResourceLoadDelegateMBS)
method, HTMLViewer, MBS REALbasic Cocoa Plugin (HTMLViewerDelegate), class HTMLViewer, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Installs a WebResourceLoadDelegateMBS to receive events from htmlviewer control.
Notes: You need to keep a reference to this WebResourceLoadDelegateMBS object in the window where the htmlviewer is inside so the class is not destroyed too early.
HTMLViewer.InstallWebUIDelegateMBS(WebUIDelegate as WebUIDelegateMBS)
method, HTMLViewer, MBS REALbasic Cocoa Plugin (HTMLViewerDelegate), class HTMLViewer, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Installs a HTMLViewerUIDelegateMBS to receive events from htmlviewer control.
Notes: You need to keep a reference to this HTMLViewerUIDelegateMBS object in the window where the htmlviewer is inside so the class is not destroyed too early.
HTMLViewer.LoadHTMLStringMBS(data as string, mime as string, encoding as string, url as string)
method, HTMLViewer, MBS REALbasic Cocoa Plugin (HTMLViewer), class HTMLViewer, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Loads data as a webpage.
Example:
HTMLViewer1.LoadHTMLStringMBS "<b>test</b>","text/plain","","" // show as plain text
HTMLViewer1.LoadHTMLStringMBS "<b>test</b>","text/html","","" // show as html

Notes:
data: The data to use for the main page of the document.
mime: The MIME type of the data. e.g. "text/html"
textencoding: The encoding of the data.
url: The base URL to apply to relative URLs within the document.

All parameters can be empty if needed.
Using "text/plain" mime type you can show source code of website.

Like a most Webkit Methods this one can not be called from a thread.

See also:

Some examples which use this method:

HTMLViewer.LoadHTMLStringMBS(text as string, url as string)
method, HTMLViewer, MBS REALbasic Cocoa Plugin (HTMLViewer), class HTMLViewer, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Loads a html page from a string.
Example:
HTMLViewer1.LoadHTMLStringMBS("<p>Hello <a href = ""realbasic/"">realbasic</a></p>", "http://www.monkeybreadsoftware.de/")

Notes:
html: The string to use for the main page of the document.
url: The base URL to apply to relative URLs within the document. (optional)

Like most Webkit Methods this one can not be called from a thread.

See also:

Some examples which use this method:

HTMLViewer.LoadRequest(request as NSURLRequestMBS)
method, HTMLViewer, MBS REALbasic Cocoa Plugin (HTMLViewer), class HTMLViewer, Console safe, Plugin version: 9.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Loads the given url request.
Notes: Like most Webkit Methods this one can not be called from a thread.
HTMLViewer.LoadURLMBS(url as string)
method, HTMLViewer, MBS REALbasic Cocoa Plugin (HTMLViewer), class HTMLViewer, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Loads the url.
Example:
htmlviewer1.LoadURLMBS "http://www.monkeybreadsoftware.de"

Notes:
Like most Webkit Methods this one can not be called from a thread.
Internally this calls LoadRequest with a NSURLRequest based on the given URL.

See also:

Some examples which use this method:

HTMLViewer.LoadURLMBS(url as string, CachePolicy as integer, TimeOut as double)
method, HTMLViewer, MBS REALbasic Cocoa Plugin (HTMLViewer), class HTMLViewer, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: htmlviewer1.LoadURLMBS "http://www.monkeybreadsoftware.de", 1, 2.0
Notes:
The timeout interval is in seconds.

Constants for the CachePolicy parameter:
const UseProtocolCachePolicy= 0Specifies that the caching logic defined in the protocol implementation, if any, is used for a particular URL load request. This is the default policy for URL load requests.
const ReloadIgnoringCacheData= 1Specifies that the data for the URL load should be loaded from the originating source. No existing cache data should be used to satisfy a URL load request.
const ReturnCacheDataElseLoad= 2Specifies that the existing cached data should be used to satisfy the request, regardless of its age or expiration date. If there is no existing data in the cache corresponding the request, the data is loaded from the originating source.
const ReturnCacheDataDontLoad= 3Specifies that the existing cache data should be used to satisfy a request, regardless of its age or expiration date. If there is no existing data in the cache corresponding to a URL load request, no attempt is made to load the data from the originating source, and the load is considered to have failed. This constant specifies a behavior that is similar to an “offline” mode.

Like most Webkit Methods this one can not be called from a thread.
Internally this calls LoadRequest with a NSURLRequest based on the given URL.

See also:

Some examples which use this method:

HTMLViewer.mainFrameMBS as WebFrameMBS
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class HTMLViewer, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The main webframe currently displayed.
Example:
// get the current page url:

MsgBox HTMLViewer1.mainFrameMBS.dataSource.request.URL

// get the html data of the current page:

MsgBox HTMLViewer1.mainFrameMBS.dataSource.data

Notes: Nil if no is present.

Some examples which use this method:

HTMLViewer.makeTextLargerMBS
method, HTMLViewer, MBS REALbasic Cocoa Plugin (HTMLViewer), class HTMLViewer, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Increases the text size in the webview.
Example:
HTMLViewer1.LoadPage "<p>Hello</p>", nil
HTMLViewer1.makeTextLargerMBS

HTMLViewer.makeTextSmallerMBS
method, HTMLViewer, MBS REALbasic Cocoa Plugin (HTMLViewer), class HTMLViewer, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Decreases the text size in the webview.
Example:
HTMLViewer1.LoadPage "<p>Hello</p>", nil
HTMLViewer1.makeTextSmallerMBS

HTMLViewer.mediaStyleMBS as String
method, HTMLViewer, MBS REALbasic Cocoa Plugin (HTMLViewer), class HTMLViewer, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The value to use for the CSS media property.
Example:
htmlviewer1.mediaStyleMBS="print"

Notes:
Set or get the media style for the WebView. The mediaStyle will override the normal value of the CSS media property. Setting the value to nil will restore the normal value.
(Read and Write computed property)
HTMLViewer.PageSetupDialogMBS(sheetTarget as window=nil) as boolean
method, HTMLViewer, MBS REALbasic Cocoa Plugin (HTMLViewerPrint), class HTMLViewer, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Shows a page setup sheet.
Notes:
If sheetTarget is nil a modal dialog is shown and the function returns after the user clicked one of the buttons to close the dialog.
If sheetTarget is a valid window reference this window will show a sheet and the function returns while the sheet waits for mouseclicks.

Returns true on success.

Some examples which use this method:

HTMLViewer.PreferencesIdentifierMBS as string
method, HTMLViewer, MBS REALbasic Cocoa Plugin (HTMLViewer), class HTMLViewer, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The string to use a prefix for storing values for this WebView in the user defaults database.
Example:
MsgBox HTMLViewer1.PreferencesIdentifierMBS

Notes:
If the WebPreferences for this WebView are stored in the user defaults database, the string set in this method will be used a key prefix.
(Read and Write computed property)
HTMLViewer.preferencesMBS as WebPreferencesMBS
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class HTMLViewer, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The preferences for this htmlviewer.
Example:
HTMLViewer1.preferencesMBS.defaultFontSize = 10
HTMLViewer1.Loadpage "<p>Hello</p>", nil

Notes:
Nil on failure.
(Read and Write computed property)

Some examples which use this method:

HTMLViewer.PrintDialogMBS(sheetTarget as window=nil, PDFFile as folderitem=nil) as boolean
method, HTMLViewer, MBS REALbasic Cocoa Plugin (HTMLViewerPrint), class HTMLViewer, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Show the print sheet and allows the user to print the web content.
Notes:
If sheetTarget is nil a modal dialog is shown and the function returns after the user clicked one of the buttons to close the dialog.
If sheetTarget is a valid window reference this window will show a sheet and the function returns while the sheet waits for mouseclicks.

If PDFFile is not nil, printing is redirected to a PDF file.

Returns true on success.

Some examples which use this method:

HTMLViewer.PrintDialogVisibleMBS as boolean
method, HTMLViewer, MBS REALbasic Cocoa Plugin (HTMLViewerPrint), class HTMLViewer, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Whether a printing sheet is visible.
Notes:
Used with the PageSetupDialog and the PrintDialog methods.
Returns true when a dialog is visible and false when not.
HTMLViewer.PrintingEndMBS
method, HTMLViewer, MBS REALbasic Cocoa Plugin (HTMLViewerPrint), class HTMLViewer, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Releases memory from the printing code.
Notes: First call PrintingStartMBS with your page size, then call several times PrintingPageMBS and finally call PrintingEndMBS.

Some examples which use this method:

HTMLViewer.PrintingPageMBS(index as integer) as string
method, HTMLViewer, MBS REALbasic Cocoa Plugin (HTMLViewerPrint), class HTMLViewer, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Returns the given page as string.
Notes:
On any error the string is empty.
The string contains an one page PDF document.

First call PrintingStartMBS with your page size, then call several times PrintingPageMBS and finally call PrintingEndMBS.

You may want to set
  HTMLViewer.preferencesMBS.shouldPrintBackgrounds = true
  HTMLViewer.preferencesMBS.allowsAnimatedImageLooping = true
to get a print which includes backgrounds and animated images.

Some examples which use this method:

HTMLViewer.PrintingStartMBS(width as single, height as single) as integer
method, HTMLViewer, MBS REALbasic Cocoa Plugin (HTMLViewerPrint), class HTMLViewer, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Starts the printing code.
Example:
dim i,c as integer
dim f as FolderItem
dim s as string
dim b as BinaryStream

  HTMLViewer1.preferencesMBS.shouldPrintBackgrounds = true // with backgrounds
  HTMLViewer1.preferencesMBS.allowsAnimatedImageLooping = true // and with animated images

c=HTMLViewer1.PrintingStartMBS(800,600)
i=0
while i<c
s=HTMLViewer1.PrintingPageMBS(i)

f=SpecialFolder.Desktop.Child("Page "+str(i+1)+".pdf")
b=f.CreateBinaryFile("")
if b<>nil then
b.Write s
b.Close
end if
i=i+1
wend

HTMLViewer1.PrintingEndMBS

MsgBox str(c)+" pages printed."

Notes:
First call PrintingStartMBS with your page size, then call several times PrintingPageMBS and finally call PrintingEndMBS.

Only one print job can be processed at the same time as they use all the same global properties.

Returns the number of pages to be printed.

Some examples which use this method:

HTMLViewer.PrintMBS(PDFFile as folderitem=nil) as boolean
method, HTMLViewer, MBS REALbasic Cocoa Plugin (HTMLViewerPrint), class HTMLViewer, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Prints the web content without a dialog.
Notes:
If PDFFile is not nil, printing is redirected to a PDF file.
Returns true on success.
HTMLViewer.ReloadMBS
method, HTMLViewer, MBS REALbasic Cocoa Plugin (HTMLViewer), class HTMLViewer, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Reloads the current page.
Example:
HTMLViewer1.ReloadMBS

HTMLViewer.RenderDocumentToEPSMBS as String
method, HTMLViewer, MBS REALbasic Cocoa Plugin (HTMLViewer), class HTMLViewer, Console safe, Plugin version: 7.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Returns the content of the view as a EPS file's data.
Example:
dim f as FolderItem
dim b as BinaryStream

// create a new pdf with current content of view
f=SpecialFolder.Desktop.Child("test.eps")
b=f.CreateBinaryFile("")
b.Write theHTMLViewer.RenderDocumentToEPSMBS
b.Close

f.Launch // show the pdf in preview

Notes:
Returns "" on any error.
Will resize the eps page to match the size of the website.
HTMLViewer.RenderDocumentToPDFMBS as String
method, HTMLViewer, MBS REALbasic Cocoa Plugin (HTMLViewer), class HTMLViewer, Console safe, Plugin version: 7.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Returns the content of the view as a PDF file's data.
Example:
dim f as FolderItem
dim b as BinaryStream

// create a new pdf with current content of view
f=SpecialFolder.Desktop.Child("test.pdf")
b=f.CreateBinaryFile("")
b.Write theHTMLViewer.RenderDocumentToPDFMBS
b.Close

f.Launch // show the pdf in preview

Notes:
Returns "" on any error.
Will resize the pdf page to match the size of the website.
HTMLViewer.RenderEPSMBS as String
method, HTMLViewer, MBS REALbasic Cocoa Plugin (HTMLViewer), class HTMLViewer, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Returns the content of the view as a EPS file's data.
Example:
dim f as FolderItem
dim b as BinaryStream

// create a new pdf with current content of view
f=SpecialFolder.Desktop.Child("test.eps")
b=f.CreateBinaryFile("")
b.Write theHTMLViewer.RenderEPSMBS
b.Close

f.Launch // show the pdf in preview

Notes:
Returns "" on any error.
If there is a scrollbar, it will be included.
For nice printouts, use the webview/htmlviewer printmbs method.
HTMLViewer.RenderPDFMBS as String
method, HTMLViewer, MBS REALbasic Cocoa Plugin (HTMLViewer), class HTMLViewer, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Returns the content of the view as a PDF file's data.
Example:
dim f as FolderItem
dim b as BinaryStream

// create a new pdf with current content of view
f=SpecialFolder.Desktop.Child("test.pdf")
b=f.CreateBinaryFile("")
b.Write theHTMLViewer.RenderPDFMBS
b.Close

f.Launch // show the pdf in preview

Notes:
Returns "" on any error.
If there is a scrollbar, it will be included.
For nice printouts, use the webview/htmlviewer printmbs method.

Previous items

The items on this page are in the following plugins: MBS REALbasic Cocoa Plugin, MBS REALbasic CocoaBase Plugin, MBS REALbasic Win Plugin.




Links
MBS Realbasic PDF Plugins - Pfarrgemeinde Ministranten Nickenich