KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Printing the contents of a 4D Live Window plug-in area
PRODUCT: 4D Web 2.0 Pack | VERSION: 2004.5 | PLATFORM: Mac & Win
Published On: March 20, 2007

PLEASE NOTE: This Tech Tip applies to 4D Web 2.0 Pack version 1.0

Currently you cannot print a 4D Live Window plug-in area embedded in a 4D form. It is, however, possible to print the contents of the plug-in area.

One way to save the contents of a 4D Live Window plug-in area is to use the 4D Live Window plug-in method Web_GetContent. This saves the content of 4D Live Window plug-in area as a BLOB. At that point the BLOB can be saved to a document, and then it can be printed out from there.

Note that the "content" of the 4D Live Window plug-in area will be the HTML page that is being viewed. If this HTML page uses relative URLs (to images, stylesheets, frames, etc.) the in formation those URLs point to will not be available when printing the document. In this case use the 4D Live Window command Web_GetURL to get the URL from the plug-in area and pass it to the 4D command Open Web URL. This command hands the URL off to the operating system. In the case of a http URL, the OS will open the URL the default Web browser and the page can be printed from there.

Documentation for the 4D Live Window plug-in:
http://www.4d.com/support/documentation.html

Open Web URL:
http://www.4d.com/docs/CMU/CMU00673.HTM