Skip to content

Showcase how to demonstrate printing the contents of web content in a Omnis Studio oBrowser component

Notifications You must be signed in to change notification settings

frogli-omnis/oBrowserPrint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Description

This is a showcase to demonstrate printing web content of a Omnis Studio oBrowser GUI component.

Getting started

Prerequisites

  • Omnis Studio 8.1.7.2 or higher
  • Some basic understanding of Javascript
  • Some knowledge of the Omnis HTML controls. Documentation about the structure and usage of the oBrowser component and Omnis HTML controls can be found in the Omnis Programming Manual.

Installing

Mac

  1. If you did not use custom HTML controls before you als have to set the user HTML control folder in the config.json folder. Otherwise you can skip to the step where you copy the HTML control to Omnis Studio/htmlcontrol folder
  2. Open Finder and goto the folder ~/Library/Application Support/Omnis/Omnis Studio 8.1.7.2/studio
  3. Open de file config.json in a texteditor
  4. Change the property defaultHtmlcontrolsFolderInDataFolder from false to true and save the file.
  5. Copy the HTML control folder printSample to the folder ~/Library/Application Support/Omnis Software/Omnis Studio 8.1.7.2

Implementation of the print function.

There are two ways to do it. For both you need to add some javascript to the webcontent. I am sure this can be done in several ways. Below you can find two simple ways. There actually quite similar.

  1. Implement a print function in the OmnisCallBackObject
  2. Implement a print button in the htm page

The difference between these is that with the first one you have an Omnis pushbutton to invoke the print of the contents. With the latter you have a HTML button which prints the contents. Both have theire (dis)advantages. With both methods it comes down to a javascript command window.print().

About

Showcase how to demonstrate printing the contents of web content in a Omnis Studio oBrowser component

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages