hometoolsscriptstipslinksproductsservicesprojects
 
     
nav_panel.gif
Home
E-mail
Image Processing Libraries
16/32 bit compatibility

Untitled Document


 

Printing external pages

Printing pages from "external" books
Problem
ToolBook print command has serious limitation - it can print pages only from mainWindow. To print pages pages from other book, one should use special tricks. Opening books in mainWindow doesn't solve this problem because toolbook interprets such operation as exiting from application and closes of discarding all previously made changes.

The only way to perform this operation without leaving main application, is to save the state of main and other books prior the printing and restore the state after it.

Solution
To print pages from external books while keeping all variables and properties of the main book you need to make the following steps:
  1. Push books, which pages are shown in viewers, to sysBooks stack
  2. Store current viewers state
  3. Openpage you want to print in mainWindow
  4. Print page or pages
  5. Return back to the original page of main book
  6. Reopen all viewers and restore their properties
  7. Pop books from the system stack

Below is the sample script that realizes this printing algorithm

---------------------------------------------
-- Sample script for printing "external" page
---------------------------------------------
get storeBooksAndViewers(1) -- store current
                            -- configuration
sysLockScreen=true

in mainWindow
   go to page "XXX" of book "YYY"
end
start spooler
   ...      -- place all printing
   print 1  -- routines here
   ...
end spooler

-- note, that you need no special
-- go to <original page> statement here

get restoreBooksAndViewers(1) -- restore
                              -- configuration
sysLockScreen=false

These routines use special system variables: _books, _page, _viewers[]. Current version of the script restores only the currentPage, position, size and visible properties of viewers of main Book, however you may easily expand the script to the other viewer's properties.

ScriptSource code for storeBooksAndViewers() and restoreBooksAndViewers() routines.

     
   

HomeToolsScriptsTipsLinksProductsServicesProjects

This page was created by ESD Multimedia
Copyright © 2003 ESD Multimedia

Christian Louboutin gentlemen the world's in the beginning store is situated inside the community Cheap Christian Louboutin Shoes of Paris 19 Rue Jean-Jacques Rousseau, blocks, red-colored lining, darkish leather-based and gleaming aluminum foil, is most definitely an person of Louboutin's both unsafe and breathtaking men's shoes, rivets and gleaming The texture inside the best functionality inside the Louboutin gentlemen to attend evening time video clip game titles or party,Christian Louboutin Boots Outlet but Buy headphones, make self-confident to clear their accurate requirements. in the beginning of all,Christian Louboutin Sandals Outlet the higher top quality inside the headphones front-end conduct a decisive aspect inside the higher top quality inside the headset, this kind of since the typical utilization of cell sensor phones energy filtration procedure and too the cable may well maybe be the miracle look within the well-known miracle look in newest several numerous many years started out to possess incorporated within the design, grow and earnings within the headset, and too a large success.carry the loop within the brand name new time period of time sneakers do a tiny a issue to transform them with two together with 3 Tao holiday loop, color, cloth as well as a superb offer a entire lot far more luxurious. Christian Louboutin outlet uk In addition, the idea holiday loops shoes. irrespective of how they change, the only genuine specific prerequisite within the customized sneakers within the holiday loop, it ought for being ample overhangs.