Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 7:15 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Creating A Report Document
PostPosted: December 17th, 2008, 12:29 pm 
Offline

Joined: January 23rd, 2007, 12:08 am
Posts: 2
Location: UK
Opus: Opus Professional V8
OS: Windows Vista
System: Dell XPS Intel Core Duo T7250 2GHz - 2GB
From an elearning programme I have designed, I have developed a report output (effectively 5 separate screens), which I need to be able to print to file as one "5-page" document.

How do i do this, without creating 5 separate print commands (one for each page) and then manually merging the result. ta![/b]

Opus Pro XE 5.5


Top
 Profile Visit website  
 
 Post subject:
PostPosted: December 18th, 2008, 7:24 am 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
orienn

Quote:
developed a report output (effectively 5 separate screens)

if I understand correctly, and your 5 report sections are set-up on 5 opus pages... then it is simple.
Create 1 button
Add 5 actions under the 1 Mouse-click trigger. (each action is Print >>> and simply select the Page. ) You will have 5 print actions that will execute in sequence.

Hint. Use a separate Chapter and have the "report screens" there if you want to control the page size for printing. Chapter Properties sets these.

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
 Post subject: Five Pages in ONE file
PostPosted: December 18th, 2008, 2:10 pm 
Offline

Joined: October 25th, 2004, 2:20 pm
Posts: 686
Location: Naperville, Illinois (USA)
Opus: 7.05
OS: Win XP SP3
System: P4 3.2GHz 1GB RAM 2-TB HDs + 4 more
I believe the part he's having problems with is how to take 5 Pages and put them all into one file. If it's all just TEXT, then you could do this:

On each of the 5 Report Pages you'll have to save all the text information to the Clipboard (Actions -> Clipboard -> Copy Object to Clipboard), then you need to do a "Copy Clipboard Text to Variable" for each Page. Save them as Report_1, Report_2, etc.

Create a sixth Variable called "Report_All." With each Page's text captured into its own Variable, you are ready to combine all 5 Variables by using "Programming -> Variables -> Set Variable." Do this five times, once for each Variable, each time saving the new content into Report_All. Remember to tick "Add to existing contents" at the bottom of the screen.

Your next step is "Action -> Storage -> Write to Disk File" in which you write Report_All to a text file like "Report_All.txt." Then the final step is to use "Print -> Print File" where you Print the contents of Report_All.

A variation on this would be to create a hidden Page with a Text Object that contains each of the Page Variables (Report_1, Report_2, etc), then just use the Print -> Print Page command.

This ONLY works with text.

_________________
Fred Harms, Extraordinary Demos
Naperville, Illinois (USA) 630/904-3636
demofred@aol.com


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 52 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group