[Xerte] Re: Toolkits - printing a certificate - how to?

Julian Tenney Julian.Tenney at nottingham.ac.uk
Tue Jun 28 10:36:02 BST 2011


You'll probably need to look at PrintJob, and build your own, but it's not necessarily for the faint hearted.

I'd try and see if you can pass any parameters into some sort of pdf or other format that is print friendly, even a web page, that you open in a new window:

getURL(http://yourwebserver.com/webpage.htm?name=Jules&score=97, "_blank") then use some javascript in the web page to render the page so it can be printed. Probably better to post the vars into php or something.

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of KnowledgeWare
Sent: 28 June 2011 01:03
To: 'Xerte discussion list'
Subject: [Xerte] Re: Toolkits - printing a certificate - how to?

Hello Paul:

Thanks for this cert print suggestion, I have the print basically working, but when it prints the top half of the 8.5 X 11 paper is solid dark grey with the xerte page sitting in the upper left corner, about 1/6th of page size.

I don't understand the AS 'bframe' bounding box concept.... Do you know if there is a way I can make the xerte page print to the full 8.5 inch on the page (or at least larger than it is now?).

Thanks
RonM2

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Paul Swanson
Sent: Thursday, June 16, 2011 1:00 PM
To: Xerte discussion list
Subject: [Xerte] Re: Toolkits - printing a certificate - how to?

One thing you could do is create a certificate on a page in Xerte, and include a button or other interaction (such as an Event or timed response) to print it. Attach a script icon with printAsBitmapNum(0, "bframe"); to the print button. There are other print options, but printAsBitmapNum worked best for my Desktop Xerte apps. I use that to allow students to print whatever page they are on. If you aren't including anything with alpha transparency, print() might work better than printAsBitmap() or priintAsBitmapNum().

Paul


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110628/4b05faca/attachment.html>


More information about the Xerte mailing list